I am currently using KingswaySoft for ETL into Dynamics. We have a need for the upsert action for future trickle loading. Each time I use upsert on a entity (table in dynamics), that has data in it already, I am facing a bad request error.
[Dynamics CRM Destination [2]] Error: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: The remote server returned an error: (400) Bad Request. (Error Type / Reason: BadRequest, Detailed Message: --batchresponse_a42eef80-4222-496c-8c69-ff6660222ef4 Content-Type: application/http Content-Transfer-Encoding: binary
HTTP/1.1 400 Bad Request REQ_ID: a9868fb9-d02b-4595-a329-a855c92ced17 Content-Type: application/json; odata.metadata=minimal OData-Version: 4.0
{"error":{"code":"0x80040265","message":"Unhandled Plugin Exception Object reference not set to an instance of an object."}} --batchresponse_a42eef80-4222-496c-8c69-ff6660222ef4-- ) (SSIS Integration Toolkit for Microsoft Dynamics 365, v21.1.0.1671 - DtsDebugHost, v15.0.2000.152)KingswaySoft.IntegrationToolkit.DynamicsCrm.WebAPI.WebApiServiceException
: The remote server returned an error: (400) Bad Request. (Error Type / Reason: BadRequest, Detailed Message: --batchresponse_a42eef80-4222-496c-8c69-ff6660222ef4 Content-Type: application/http Content-Transfer-Encoding: binary
HTTP/1.1 400 Bad Request REQ_ID: a9868fb9-d02b-4595-a329-a855c92ced17 Content-Type: application/json; odata.metadata=minimal OData-Version: 4.0
{"error":{"code":"0x80040265","message":"Unhandled Plugin Exception Object reference not set to an instance of an object."}} --batchresponse_a42eef80-4222-496c-8c69-ff6660222ef4-- )System.Net.WebException
(Status Reason: BadRequest): The remote server returned an error: (400) Bad Request.".
I am manually specifying Record Matching Criteria on a primary key from the staging tables that does live on the records in Dynamics.