413.1 Error (Request Entity Too Large) importing data


I keep getting a 413.1 Error (Request Entity Too Large) when importing data in the Admin, Tools section.  I've increased the limit in applicationhost.config and set maxRequestEntityAllow and uploadReadAheadSize to 2147483647, the max value.  I've restarted the site multiple times.  I can't get dev and stage data synced with production w/o being able to do this step.  What else can I look at?



Jan 29, 2020 16:02

You probably want to set


      <httpRuntime maxRequestLength="51200" executionTimeout="3600" />



                     <requestLimits maxAllowedContentLength="334217728" />

as well

Jan 30, 2020 7:40

I was able to Import and Export 1658 Content items with export file size 536MB. Pls update web.config with above settings.

Edited, Jan 30, 2020 13:55

maxRequestLength is my best guess as well as above with Quan

Jan 30, 2020 15:32

That's usually what I had to change on other sites when this error would pop up, but it's not working here.  I've restarted the site multiple times, verifed settings in Configuration Manager in IIS.  

I can try a smaller data export.  I exported all data types, but can just try content items to see if a smaller file works.  The full export was 1.3GB.

Edited, Jan 30, 2020 15:39

Doing small chunks (one node/page and dependent content) at a time works.  

Jan 30, 2020 20:17

Spoke too soon.  700MB file failed, but less than 20MB worked.  Will have to see if I can narrow down closer to the size where things fail.

Jan 30, 2020 20:31

How about a database export (bacpac) route instead of importing content? Is that an option?

Feb 03, 2020 23:55

That's what I ended up having to do and that didn't bring everything over.  Had to export content items individually (as long as they remained small) to get images, etc.  Not sure why a database export/import didn't bring over everything.  Still learning Episerver...

Feb 04, 2020 13:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.