Tag Archives: Office Web Apps 2013

Office Web Apps 2013 – File too large

Office_Web_Apps_File _Too_Large_01
File too large
The file specified is larger than what the Office Online Viewers are configured to support.
Reduce the size of the file to view it online.

 

from the ULS logs:
FetchFileResult [ExceededFileSize] Initial URL [] Final URL [] File type [0] Referrer []

 

 

You can use Office Web Apps 2013 server to open files located on file share. That’s actually very useful for non-SharePoint web sites who would like to leverage Office Documents rendering in web browser.

 

A bit more details for those who didn’t knew about this functionality. You can configure the Office Web Apps server to take as source destination a file located on fileshare.

Import-Module -Name OfficeWebApps
Set-OfficeWebAppsFarm -OpenFromUrlEnabled
Restart-Service WACSM

 

If the file located on the file share is less than 10 MB, the rendering is performed without issues.
Office_Web_Apps_File _Too_Large_02
Office_Web_Apps_File _Too_Large_03
Office_Web_Apps_File _Too_Large_04

 

If the file located on the shared folder is larger than 10 MB, then Office Web App 2013 will return “File too large”.
Office_Web_Apps_File _Too_Large_05
Office_Web_Apps_File _Too_Large_06
Office_Web_Apps_File _Too_Large_07
Office_Web_Apps_File _Too_Large_08
Office_Web_Apps_File _Too_Large_09

 

 

The solution is to adjust the Settings_Service.ini files located by default on C:\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb and C:\Program Files\Microsoft Office Web Apps\OpenFromUrlHost.

 

C:\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb and C:\Program Files\Microsoft Office Web Apps\OpenFromUrlHost are the paths behind oh (OpenFromUrlHost) and op (OpenFromUrlWeb) web applications.
Office_Web_Apps_File _Too_Large_10

Add the following new line at the end of the file, or update it in case already exists. This new setting will configure the Office Web Apps server to render files larger up to 500 MB.

OpenFromUrlMaxFileSizeInKBytes=(System.Int32)512000

Attention: In case you will reconfigure the server to accept such large office files, make sure the network connectivity between the Office Web Apps server and the file share server is good enough. The in-browser loading time of the office document will directly depend on how fast the file is download by OWA server from the source.

 

C:\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb\Settings_Service.ini
Office_Web_Apps_File _Too_Large_11
Office_Web_Apps_File _Too_Large_12

 

C:\Program Files\Microsoft Office Web Apps\OpenFromUrlHost\Settings_Service.ini
Office_Web_Apps_File _Too_Large_13
Office_Web_Apps_File _Too_Large_14

 

Restart the Office Web Apps windows service.
Office_Web_Apps_File _Too_Large_15