Commerce Server 2007: Catalog Import Error for Large Files

When you are trying to import a large catalog into the commerce server catalog system you might come across this error:

The import failed because the import file is larger than the maximum size allowed on your server. Contact your system administrator.

The solution for this to open up the web.config of CatalogWebService and then increase the size limit of uploads to more than the file that you intend to upload. The current default value is 200MB. The steps to increase the size are:

  1. Traverse to the path which has the Catalog Web Service (typically C:\Inetpub\wwwroot\CatalogWebService )
  2. Open up the web.config
  3. Set the value of maxUploadFileSize attribute to the value which you need

Now, you should be able to upload the import the file.