[Dynamics CRM]當匯入資料發生錯誤

  • 2982
  • 0
  • 2011-10-14

問題 : 當我們匯入的資料檔或自訂檔過大會出現下列錯誤訊息

問題 : 當我們匯入的資料檔或自訂檔過大會出現下列錯誤訊息

Error message 1

Import timeout error.

Error message 2

Maximum request length exceeded.

Error message 3

The file could not be uploaded or Import failed

Error message 4

This is not a valid customization file. Please use an .XML file that was generated by exporting customizations.

If the DevErrors value is set to "On" in the Web.config file, you receive the following error message:

Microsoft CRM Platform Error Report:
Error Description: Timeout expired
Error Details: Details on this error have not been provided by the platform.
Error Number: 0x80040E31

方法 : 修改在兩個不同的 Web.config 檔案中的參數
    1. 按一下 [開始],按一下 [所有程式]、 按一下都 [系統管理工具,然後再都按一下 [網際網路資訊服務 (IIS) 管理員]。
    2. 展開 [伺服器] 名稱,然後再展開 [網站]。
    3. Microsoft CRM v3.0 Web 站台或 Microsoft CRM V4.0 Web 站台上按一下滑鼠右鍵,然後按一下 [開啟舊檔]。
    4. 在 Web.config 檔案上按一下滑鼠右鍵,按一下 [開啟方式],然後再按一下 [記事本]。
    5. 在 [記事本],找出下面這一行

       

      <httpRuntime executionTimeout="300" maxRequestLength="8192"/>
    6. 變更 executionTimeout = 3600 」,並變更 maxRequestLength = 20000 」。
    7. 儲存並關閉 Web.config 檔。
    8. 在 [開啟 Web.config 檔的目錄,開啟 MSCRMServices 資料夾。
    9. 在 Web.config 檔案上按一下滑鼠右鍵,按一下 [開啟方式],然後再按一下 [記事本]。
    10. 在 [記事本],找出下面這一行

       

      <httpRuntime maxRequestLength="8192"/>
    11. 變更 maxRequestLength = 20000 」。
    12. 儲存並關閉 Web.config 檔。