Hello forum
- we are connecting to BC and to get customers etc., but once the import runs we a getting an error:
2022-08-03 08:15:30.785: Starting import to temporary table for AccessUserSecondaryRelation.
2022-08-03 08:15:30.816: Import job failed: Cannot parse 'MKE' to System.Int. Table: AccessUserSecondaryRelation. Column: AccessUserSecondaryRelationUse
2022-08-03 08:15:30.816: Job failed.
I assume the value (MKE) in AccessUserExternalID are used to connect the data in tables AccessUser, AccessUserSecondaryRelation and AccessUserAddress, but AccessUserExternalID is nvarchar(25) in AccessUser and in AccessUserSecondaryRelation and AccessUserAddress it's required to be an int.
What would be the best solution to overcome this error?
Request:
<GetEcomData><tables><Customers type="all" importSalesPeople="true" importContacts="true"/></tables></GetEcomData>
Response (extract):
<tables version="1.2.0.22_NAV20.0.42653.44283">
<item table="AccessUser">
<column columnName="AccessUserUserName"><![CDATA[MKE]]></column>
<column columnName="AccessUserExternalID"><![CDATA[MKE]]></column>
...
</item>
<item table="AccessUserSecondaryRelation">
<column columnName="AccessUserSecondaryRelationUserId"><![CDATA[MKE]]></column>
<column columnName="AccessUserSecondaryRelationSecondaryUserId"><![CDATA[E10055]]></column>
</item>
<item table="AccessUserAddress">
<column columnName="AccessUserAddressUserID"><![CDATA[E10055]]></column>
<column columnName="AccessUserAddressType"><![CDATA[1]]></column>
...
</item>
Br. Michael Knudsen