Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过SSRS和XML数据源从包含空格的SharePoint库中检索文件_Sharepoint_Reporting Services_Dynamics Crm_Caml - Fatal编程技术网

无法通过SSRS和XML数据源从包含空格的SharePoint库中检索文件

无法通过SSRS和XML数据源从包含空格的SharePoint库中检索文件,sharepoint,reporting-services,dynamics-crm,caml,Sharepoint,Reporting Services,Dynamics Crm,Caml,我正在尝试通过SSRS和XML数据源从sharepoint检索文件 这是我目前正在使用的: <Query> <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction> <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems"&

我正在尝试通过SSRS和XML数据源从sharepoint检索文件

这是我目前正在使用的:

<Query>
   <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
   <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
      <Parameters>
         <Parameter Name="listName">
            <DefaultValue>account</DefaultValue>
         </Parameter>

         <Parameter Name="queryOptions" Type="xml">
          <DefaultValue>
            <QueryOptions>
             <Folder>account/testfolder</Folder>
            </QueryOptions>
          </DefaultValue>
         </Parameter> 
      </Parameters> 
   </Method>
</Query>

http://schemas.microsoft.com/sharepoint/soap/GetListItems
账户
帐户/测试文件夹
但是,我可以从帐户下的testfolder中检索所有文件(这很好!)。如果我创建这样的查询:

<Query>
   <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
   <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
      <Parameters>
         <Parameter Name="listName">
            <DefaultValue>Invoice City</DefaultValue>
         </Parameter>

         <Parameter Name="queryOptions" Type="xml">
          <DefaultValue>
            <QueryOptions>
             <Folder>Invoice City/testfolder</Folder>
            </QueryOptions>
          </DefaultValue>
         </Parameter> 
      </Parameters> 
   </Method>
</Query>

http://schemas.microsoft.com/sharepoint/soap/GetListItems
发票城市
发票城市/测试文件夹
第二次,我在库名称(发票城市)中添加了空格,它只是返回了发票城市库中的所有内容(文件夹和文件)

我只想让文件夹名不带空格,但我使用CRM文档,它会自动创建文件夹作为实体名(发票城市)

我试过把文件夹名放在引号里,还有10亿次转义字符和其他的尝试。我希望它能够工作,因为web服务只需要一个字符串


还有其他人遇到过这个问题吗?非常感谢您的帮助。

解决了问题!它最终与空间没有任何关系(尽管我认为可能是这样)

我使用的是库名而不是路径名。。因此,对于修复:

     <Parameter Name="queryOptions" Type="xml">
      <DefaultValue>
        <QueryOptions>
         <Folder>**new_invoicecity**/testfolder</Folder>
        </QueryOptions>
      </DefaultValue>
     </Parameter> 

**新发票城市**/testfolder

请将此作为答案发布,并将其标记为已接受,以便其他有相同问题的人更容易找到并认真对待。