'Page not found' Error During Doc Import

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

When initiating a "Doc Import" for a specific MS Word file, Confluence seems to be processing for some time, and then generates a "Page not found" error. This tends to happen with relatively large documents (eg: 12 MB). Smaller files seem to be getting imported, as expected.

The following appears in the atlassian-confluence.log:

1 2 3 4 5 6 7 2009-07-29 16:25:21,446 ERROR [http-8080-1] [webwork.dispatcher.multipart.MultiPartRequest] <init> org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly – url: /pages/worddav/importword.action | userName: admin | referer: http://<Base URL>/pages/worddav/uploadimport.action?pageId=131153 org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) at com.atlassian.confluence.setup.webwork.JakartaMultiPartRequest.<init>(JakartaMultiPartRequest.java:70) Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly

Cause

The Attachment maximum size is configured for a size that is less than the above file size.

Resolution

Increase the file size via Administration >> General Configuration >> Attachment Settings >> Attachment Maximum Size", to suit your requirement. See Configuring Attachment Size.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.