web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

The Axd Document does not support this action when adding findkeys

(0) ShareShare
ReportReport
Posted on by

We have a custom AIF service that was developed by a third party provider.  The find and read methods were enabled and working, but the findkeys was not.  They have now added the findkeys, recompiled, done an incremental CIL and recreated the inbound port.  But findkeys still returns this error in the exception log:

"The Axd Document does not support this action when adding findkeys".  We had similar issues with three services.  We fixed the issue in two of them by taking a copy and adding the findkeys.  Having done the same approach with the third service, we still get this error.

Can anyone suggest a fix please?

Thanks.

*This post is locked for comments

I have the same question (0)
  • Dick Wenning Profile Picture
    8,705 Moderator on at

    run the update document service in Dynamics AX, select the findkeys options and complete the wizard.

    technet.microsoft.com/.../aa609947.aspx

  • Community Member Profile Picture
    on at

    Thanks, but that is exactly what we did to add the findkeys.  However after doing so, the service worked as before but any call to findkeys produced this error.

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    wrong sorry

  • Community Member Profile Picture
    on at

    The service in question is pulling employee data from hcmworker, nothing to do with sales orders or packing slips.

  • Verified answer
    Dick Wenning Profile Picture
    8,705 Moderator on at

    what does this sample code do:

    keyData = SysDictTable::getKeyData(YourTable);

               aifEntityKey = AifEntityKey::construct();

               aifEntityKey.parmTableId(YourTable.TableId);

               aifEntityKey.parmRecId(YourTable.RecId);

               aifEntityKey.parmKeyDataMap(keyData);

               AifEntityKeyList = AifEntityKeyList::construct();

               AifEntityKeyList.addEntityKey(aifEntityKey);

               HSOInventTable = YourTableService::construct().read(AifEntityKeyList);

               xmlDoc      = new XmlDocument();

               xmlDoc.loadXml(YourTableService.serialize());

               xmlDoc.save(@'C:\temp\inventtable'+YourTableService'.xml');

  • Community Member Profile Picture
    on at

    Thanks for this, it put me on the right track.  The read method was working, but the findkeys was the one causing the exception.  adapted the code above to call findkeys with a query.  That failed and we could see where a method of the axdbase document class was overwritten.  We deleted this in the class for this service, and got eh AX X++ job to work.  THen did a ful CIL and its working from the external client via AIF service.

    Thanks for your help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans