如何调试 SSIS 包中的 CRM 连接错误?

How do I debug CRM Connection Error in SSIS Package?

我正在使用 KingswaySoft 连接到使用 Visual Studio 2015 的 SSIS 包中的 Microsoft Dynamics CRM。当我尝试 运行 服务器上的包时收到以下错误。

Data Flow Task:Error: KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: An error has occurred when retrieving metadata for CRM entity 'ccseq_amaccount': CRM service call returned an error: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

我看到几个关于如何添加配置键以打开 WCF 应用程序的 IncludeExceptionDetailInFaults 的问题(请参阅 here & here),但没有具体说明如何为 SSIS 包打开此功能。也欢迎任何其他查看更多错误详细信息的方法。

感谢您选择 KingswaySoft 作为您的集成解决方案。此消息"The server was unable to process the request due to an internal error." 来自 CRM 服务器端,它并不能真正帮助识别问题。要获得有关您收到的错误的更多详细信息,您必须在 CRM 服务器端打开 CRM 跟踪日志。

要为本地 CRM 打开 CRM 跟踪日志,您可以使用以下工具。

打开跟踪日志后,您可以运行任务,CRM 服务器会在C:\Program Files\Microsoft Dynamics CRM\Trace 文件夹下生成一些日志文件。日志文件较大,不易阅读,建议使用以下工具之一阅读日志文件。

对于 CRM Online,您需要联系 CRM Online 支持团队寻求帮助。