Tuesday, July 22, 2008

Data Import Wizard Will not upload files past 32mb

I just hit this error on the Data Migration Wizard. My file is around 250mb in size. Well in researching this error I found that the files are being uploaded via to a website to be worked on... How interesting... Well the web.config file has the max file size in it, so you can edit it to allow for bigger sizes or break the file up into smaller chunks. I prefer to temporarily raise the limits.

Default file Location
C:\Program Files\Microsoft Dynamics CRM Data Migration Manager\DMClient\res\web

file web.config

Default data in the file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpRuntime executionTimeout="1200" maxRequestLength="32768"/>
<compilation defaultLanguage="C#" debug="false">
<assemblies>
<add assembly="Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Crm.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Crm.SdkTypeProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Crm.Platform.Sdk, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<authentication mode="Windows" />
<identity impersonate="true" />

</system.web>
</configuration>


I choose to modify maxRequestLength="32768" to be maxRequestLength="300000"

No comments: