Salesforce

Content Porter import of large packages fails with the error "An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel."

« Go Back

Information

 
Article TypeSolution Article
Scope/EnvironmentSDL Tridion Sites 9.x, SDL Web 8.5 Content Porter
Symptoms/Context
Using SDL Tridion Sites  9.x/SDL Web 8.5 and Content Porter leads to an error trying to import large files into the system.  From the import log:
 
[Critical] System.ServiceModel.CommunicationException: An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel. ---> System.Net.WebException: The request was aborted: The request was canceled.
at System.Net.HttpWebRequest.GetResponse()

Made all the changes as discussed here:

Content Porter - Tridion.ContentManager.ImportExport.Packaging.OpenPackageException on large file

 
Resolution
On the system where you have installed the ContentPorter client installed, open the file system.servicemodel.bindings.config.   The out of the box StreamUpload bindings are as such:
 
<!-- ImportExport_StreamUpload binding -->
<binding name="ImportExport_streamUpload_basicHttpBinding_http" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" allowCookies="true">
<security mode="None" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_http_basicAuth" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" allowCookies="true">
<security mode="None" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_https" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" allowCookies="true">
<security mode="Transport" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_https_basicAuth" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" allowCookies="true">
<security mode="Transport" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>

This needs to be changed so that it includes a sendTimeout as such:
 
<!-- ImportExport_StreamUpload binding -->
<binding name="ImportExport_streamUpload_basicHttpBinding_http" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" sendTimeout="00:30:00" allowCookies="true">
<security mode="None" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_http_basicAuth" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" sendTimeout="00:30:00" allowCookies="true">
<security mode="None" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_https" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" sendTimeout="00:30:00" allowCookies="true">
<security mode="Transport" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
<binding name="ImportExport_streamUpload_basicHttpBinding_https_basicAuth" maxReceivedMessageSize="2147483648" transferMode="StreamedRequest" messageEncoding="Mtom" receiveTimeout="00:30:00" sendTimeout="00:30:00" allowCookies="true">
<security mode="Transport" />
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
</binding>
Root Cause
The StreamUpload  binding in the Content Porter client configuration does not have the necessary sendTimeout values in place.
Reference
Attachment 1 
Attachment 2 
Attachment 3 
Attachment 4 
Attachment 5 

Powered by