Friday, March 16, 2012

Oracle BI Publisher 11g- template upload error- Upload Failed: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException


I was working on BI Publisher (11.1.1.5) recently and came across this error while uploading my rtf template. 

Upload Failed:
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (132923375) exceeds the configured maximum (30000000)



I was not able to upload an rtf template because of its size. I did not realize that the four page template I created is over 130MB!!  It does not make sense to configure BI Publisher to handle this kind of size. I could sense that this is something related to my rtf file. I was using Microsoft Office 2007 to create this rtf. Here’s what I found at Microsoft Support website – “If an EMF, a PNG, a GIF, or a JPEG graphic is inserted into a Word document, when the document is saved, two copies of the graphic are saved in the document. Graphics are saved in the applicable EMF, PNG, GIF, or JPEG format and are also converted to WMF (Windows Metafile) format.” This according to Microsoft is by design.

Check this link to find out more- Document file size increases with EMF, PNG, GIF, or JPEG graphics in Word  (http://support.microsoft.com/kb/224663). I ran the patch available on this page which reduced the size of the template to 3MB enabling me to upload the template.

Hope it helps.

Cheers!
Deepak


3 comments:

  1. Thank you very much for this great tip!
    It was very useful for me!

    ReplyDelete
  2. Thanks Very much, that was very helpful!

    ReplyDelete