Hi all,
I am trying to integrate the AX PersonTitleTable to a custom entity (Job Title), allowing create and updates from both AX and CRM.
I have configured the Job Title service in AX, configured CRM, setup the maps in the Connector and have successful completed the initial data load from AX.
Everything is now working, except Updates from CRM to AX.
The following error is thrown from AX Service: [Job Title to KOO Person Title Table Service] has encountered an error while processing key [[5c6f7ec3-3e42-e211-a894-00155d01d402]]. 'EndElement' is an invalid XmlNodeType. Line 1, position 221.
I have debugged the AIF server side code and the process fails when parsing the Entity Keys in the AifEntityKeyList.deserialize method. For some reason the ValidFromDateTime and ValidToDateTime don't get values set which causes the deserialize code to fail.
EntityKey XML: <EntityKey xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey"><KeyData><KeyField><Field>TitleId</Field><Value>SS Test 10/12 1 Update Adsfds</Value></KeyField><KeyField><Field>ValidFromDateTime</Field></KeyField><KeyField><Field>ValidToDateTime</Field></KeyField></KeyData></EntityKey>
The full xml request being generated by the connector:
<?xml version="1.0" encoding="UTF-8"?>
<KOO_PersonTitleTableServiceUpdateRequest xmlns="http://tempuri.org">
<EntityKeyList xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList">
<EntityKey xmlns="http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey">
<KeyData>
<KeyField>
<Field>TitleId</Field>
<Value>SS Test 10/12 1 Update</Value>
</KeyField>
<KeyField>
<Field>ValidFromDateTime</Field>
</KeyField>
<KeyField>
<Field>ValidToDateTime</Field>
</KeyField>
</KeyData>
</EntityKey>
</EntityKeyList>
<KOO_PersonTitleTable xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/KOO_PersonTitleTable">
<DocPurpose>Original</DocPurpose>
<SenderId>K99</SenderId>
<PersonTitleTable action="update" class="entity">
<_DocumentHash>d3dc40bb3eb0d3efef07a4bfb6e67656</_DocumentHash>
<RecId>5637148327</RecId>
<RecVersion>1</RecVersion>
<Title>SS Test 10/12 1 Update</Title>
<TitleId>SS Test 10/12 1 Update</TitleId>
<ValidToDateTime localDateTime="2050-01-01T00:00:00" timezone="GMTPLUS1200AUCKLAND_WELLINGTON">2049-12-31T11:00:00Z</ValidToDateTime>
<ValidFromDateTime localDateTime="2000-01-01T00:00:00" timezone="GMTPLUS1200AUCKLAND_WELLINGTON">1999-12-31T11:00:00Z</ValidFromDateTime>
<DAXIntegrationId>{5c6f7ec3-3e42-e211-a894-00155d01d402}</DAXIntegrationId>
</PersonTitleTable>
</KOO_PersonTitleTable>
</KOO_PersonTitleTableServiceUpdateRequest>