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…
<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>
<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>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.