Symptom
Downloading results from a SharePoint site query fails partly through the export with the following error: “The content can no longer be saved to the export location. Please ensure that it is available and has sufficient space.”
Cause
This problem was caused by an authentication context switch when attempting to download an InfoPath Form. In this case the Download Manager (ddmanager.exe) needed a different set of credentials, when downloading the form XML file and failed during the process.
Below is the data that demonstrates this issue.
The following is from Fiddler that displays a GET request for file “Mobile%20Phone.xml”, then a 302 redirect to the FormServer location.
1 2 3 4 5 6 7 8 9 10 11 |
<span style="color: black"><span style="font-family: Courier New;font-size: 9pt"># Result Protocol Host URL Body Caching Content-Type Process Comments Custom </span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 9pt">3188 <span style="background-color: yellow">302</span> HTTPS portal.contoso.com <span style="background-color: yellow">/sites/it/DeviceElectionForm/Mobile%20Phone.xml</span> 268 text/html; charset=UTF-8 ddmanager:16176 [#3421]</span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 9pt">3189 <span style="background-color: lime">302</span> HTTPS portal.contoso.com <span style="background-color: lime">/sites/it/_layouts/15/FormServer.aspx?XmlLocation=/sites/it/MyCustomForm/Mobile%20Phone.xml</span> 230 ddmanager:16176 [#3422] </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 9pt">3190 <span style="background-color: fuchsia">200</span> HTTPS portal.contoso.com <span style="background-color: fuchsia">/sites/it/_layouts/FormServer.aspx?XmlLocation=/sites/it/MyCustomForm/Mobile%20Phone.xml</span> 52,702 private text/html; charset=utf-8 ddmanager:16176 [#3423] </span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 9pt">3192 <span style="background-color: yellow">401</span> HTTPS portal.contoso.com <span style="background-color: yellow">/docs/eDiscovery/Contoso/_vti_bin/client.svc/ProcessQuery</span> 16 text/plain; charset=utf-8 ddmanager:16176 [#3425] </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 9pt">3194 <span style="background-color: lime">200</span> HTTPS portal.contoso.com /<span style="background-color: lime">docs/eDiscovery/Contoso/_vti_bin/client.svc/ProcessQuery</span> 156 private application/json; charset=utf-8 ddmanager:16176 [#3427]</span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> |
As a result of connecting to the Form Server, a new authentication attempt was made to the InfoPath Service and a new cookie was set.
Example:
1 2 3 4 5 6 |
<span style="color: black"><span style="font-family: Courier New;font-size: 12pt">Set-Cookie: _InfoPath_Sentinel=1; path=/</span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 12pt">Set-Cookie: _InfoPath_CanaryValueAGDGY5QQJELPCRVKY7AHEL2ZDV4S6L3TNF2GK4ZPNF2C6RDFOZUWGZKFNRSWG5DJN5XEM33SNUXUM33SNVZS65DFNVYGYYLUMUXHQ43OFJSEYZSWPFYTOM3FNQ4GQ3LDMJDDMU3UJZUFQ5CXMVYHOZSWMRIDKNJWIZKGYUCZMZTHO=izP1+walR/Pot5rgHGhAPaAT+7JmPc9SmDxul0xB28j/drucVscDCx9/bLapjqriSIvb32vU9RJjvk6Ag+Gygw==|636299581752872813; path=/; secure; HttpOnly</span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> <span style="color: black"><span style="font-family: Courier New;font-size: 12pt">SPRequestGuid: dd10f09d-2889-005f-7c5c-36f217b4f7ba</span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> |
After this occurred, the Process Query failed with a 401, authentication was required, and the Download Manager subsequently stopped with error, “The Content can no longer be saved to the export location. Please ensure that it is available and has sufficient space“.
As a result of this failure, inside this InfoPath Form, we are handling an error stating that cross-domain access is required to use this Form.
Example:
1 2 |
<span style="color: black"><span style="font-family: Courier New;font-size: 9pt">function UserAgentInfo() {} UserAgentInfo.strBrowser = 0;UserAgentInfo.strBrowserType = 0;UserAgentInfo.intBrowserRmj = 0;var g_objHasFormPostedBack_FormControl=false;var g_objCurrentFormData_FormControl = [[[4,"An error occurred querying a data source.","An error occurred while trying to connect to a Web service.","5566","dd10f09d-2889-005f-7c5c-36f217b4f7ba"],[4,"An error occurred querying a data source.","An error occurred while trying to connect to a Web service.","5566","dd10f09d-2889-005f-7c5c-36f217b4f7ba"],[4,"An error occurred querying a data source.","<span style="background-color: lime">A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions</span>.\r\n\r\nIf this form template is published to a SharePoint document library, cross-domain access for user form templates must be enabled under InfoPath Forms Services in SharePoint Central Administration, and the data connection settings must be stored in a UDC file in a data connection library in the same site collection.\r\n\r\nIf this is an administrator-approved form template, the security level of the form must be set to full trust, or the data connection settings must be stored in a UDC file by using the Manage data connection files option under InfoPath Forms Services in SharePoint Central Administration.","6932","dd10f09d-2889-005f-7c5c-36f217b4f7ba"]]</span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> |
As stated this is error handling in the form, but does hint that a different authentication policy is required.
With that said, we found the following error inside the download manager error log.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><?xml version="1.0" encoding="UTF-8"?></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Errors xmlns:xsd="<a href="https://na01.safelinks.protection.outlook.com/?url=http://www.w3.org/2001/XMLSchema&data=02%7c01%7cMike.Lee%40microsoft.com%7c9713662e03b14d00597508d497ad8dcb%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636300219058982123&sdata=ZLAOSSrhHSJPg/OmAtnN1gakS97kQXBlLQ2Fdsm%2BrNU%3D&reserved=0"><span style="color: #0563c1;text-decoration: underline">http://www.w3.org/2001/XMLSchema</span></a>" xmlns:xsi="<a href="https://na01.safelinks.protection.outlook.com/?url=http://www.w3.org/2001/XMLSchema-instance&data=02%7c01%7cMike.Lee%40microsoft.com%7c9713662e03b14d00597508d497ad8dcb%7c72f988bf86f141af91ab2d7cd011db47%7c1%7c0%7c636300219058992127&sdata=KlBvQ%2BlmXmirkqpBuc5Y7FRe4xqyfR%2BEDvGd1mv1v80%3D&reserved=0"><span style="color: #0563c1;text-decoration: underline">http://www.w3.org/2001/XMLSchema-instance</span></a>"></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><ErrorRecord></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Source></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Id><span style="color: #0563c1">https://portal.contoso.com</Id<span style="color: black">></span></span></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Name>DakInfo</Name></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><ServerSourceId>1</ServerSourceId></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><SourceFilter>((((Author:"John Doe" OR Author:"Jane Doe" OR CreatedBy:"John Doe" OR CreatedBy:"Jane Doe" OR "John Doe" OR "Jane Doe"))) AND Path:"<a href="https://portal.daktronics.lan/"><span style="color: #0563c1;text-decoration: underline">https://portal.contoso.com</span></a>")</SourceFilter></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Type>SharePoint</Type></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Custodians/></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"></Source></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Errors></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Error></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Time>2017-05-09T15:12:06.2524869-05:00</Time></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><Step>Prepare</Step></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><ErrorType>UnableToRetrieveSearchFaults</ErrorType></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"><DiagnosticMessage><span style="background-color: lime">Attempted to perform an unauthorized operation</span>.</DiagnosticMessage></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"></Error></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"></Errors></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"></ErrorRecord></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span><span style="color: black"><span style="font-family: Courier New;font-size: 12pt"></Errors></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> |
Resolution
To workaround this issue, we excluded the connection to the FormServer from Download Manager by adding new SourceFilter within the Download Manager Configuration.
Example:
1 2 3 |
<span style="color: black"><span style="font-family: Courier New;font-size: 12pt">((((Author:"John Doe" OR Author:"Jane Doe" OR CreatedBy:"John Doe" OR CreatedBy:"Jane Doe" OR "John Doe" OR "Jane Doe"))) AND (Path:<a href="https://portal.contoso.com/"><span style="color: blue;text-decoration: underline">https://portal.contoso.com</span></a> <span style="background-color: yellow">AND Path NOT "<a href="https://portal.contoso.com/sites/it/DeviceElectionForm%2a"></a></span><span style="color: #0563c1"><span style="text-decoration: underline">https://portal.contoso.com/sites/it/MyCustomForm*</span><span style="color: black">")</span></span></span><span style="font-family: Segoe UI;font-size: 11pt"> </span></span> |
More Information
eDiscovery in SharePoint
https://dev.office.com/sharepoint/docs/general-development/ediscovery-in-sharepoint