Home > Dynamics Ax > AIF – Update – The parameter index is not valid

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>

Advertisements
Categories: Dynamics Ax
  1. venkat
    March 21, 2012 at 9:46 am

    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

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: