AIF – Update – The parameter index is not valid
In recent days, working on AIF – Update action, and find one strange error as mentioned below.
Error: The parameter index is not valid.
Trying to solve the same, and then have checked on the parameter schema, it was defined as follows…
So realized, we need to submit two XML’s for the update scenario, or combination of these two required and then tried in the following way…
<Envelope xmlns=”http://schemas.microsoft.com/dynamics/2008/01/documents/Message”>
<Header><MessageId>{FDA1E99A-3519-458D-6DE7-8A4502322BF1}</MessageId><SourceEndpointUser>domain\aliasId</SourceEndpointUser>
<SourceEndpoint>DimensionsInbound</SourceEndpoint><DestinationEndpoint>USEndpoint</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01
/services/Tel_DimensionsService/update</Action></Header>
<Body>
<MessageParts xmlns=”http://schemas.microsoft.com/dynamics/2008/01/documents/Message“>
<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>DimensionCode</Field>
<Value>Department</Value>
</KeyField>
<KeyField>
<Field>Num</Field>
<Value>2030</Value>
</KeyField>
</KeyData>
</EntityKey>
</EntityKeyList>
<Tel_Dimensions xmlns=”http://schemas.microsoft.com/dynamics/2008/01/documents/Tel_Dimensions“><Dimension>
<_DocumentHash>820acb9d4e266e791f5069edd7bd3d39</_DocumentHash>
<Closed>No</Closed><CompanyGroup>12345</CompanyGroup><Description>IN Global Support India – TEST123456</Description>
<DimensionCode>Department</DimensionCode>
<Num>2030</Num></Dimension></Tel_Dimensions></MessageParts></Body></Envelope>


Hai santosh,
venkateswarrao here
I am unable to update customer information in axapta by using AIF from c#
https://community.dynamics.com/product/ax/f/33/t/75714.aspx
for your reference i send the link
Hi venkat,
For update you need entity keys, by using entitye keys you can update customer..
Here entity key is nothing nut Customer Id. for updation you need to pass document hash also.
Please find the article to find the document hash
http://paruvellas.wordpress.com/2008/07/14/dynamics-ax-update-using-aif-to-get-the-document-hash/
Thanks,
Best Regards,
Santosh Kumar Paruvella