Thursday, 19 January 2012

Uploading Large Files to RTC

Recently I have had a client attempting to load large files to NAV through RTC.

They are in the process of migrating a company to NAV and have a fairly large number of G/L Entries to load.

We had already developed a generic G/L Journal upload tool so the data had been mapped into a file that could be loaded though that.

When the routine was run we almost immediately got a ‘File is too large error’

After having a dig around I found a setting in the CustomSettings.Config file that limits the size of upload files.

The setting is

    <!--
      Limits the size of files that can be uploaded in order to avoid out of memory errors. This value is in megabytes.
  -->
    <add key="MaxUploadSize" value="5"></add>

The default is 5mb. So by extending this and restarting the service tier larger files can be loaded.