Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

Posted on by 10,270

Please help.

i want to go through this path through AOT but i failed.

*This post is locked for comments

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Nikolaos, i tried to fire an action in another app to be listened directly to AX with the help of AX32ser.exe as i attached the process to VS but i got an error "Unable to attach the process. debugger is already attached"

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Yes.

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Actually, the service I need to run is on  server X and the app is on server B so is it possible to debug on server X once an event is fired in another server?

    Hope you got my point.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    I already shared instructions for AIF debugging earlier in this thread.

    You always debug the AX server if you need to debug AX. It doesn't matter where the caller of the service is. If you need toto debug your external app, then debug on the server where it's running.

    Did you manage to update data with your job? Did you learn anything that would help with your external app?

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Thanks nikolaos,

    I have an issue regarding the debugging of AIF service in AX . You know that I am integrating with another APP in server A and AX is in server B so how can I trace AIF service in case an event fired in server A ??  

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    You can find many examples if you search the web for "AifEntityKeyList update example". Here's one: dynamicsfox.com/test-aif-services-with-x-job-create-update-and-delete

    If you didn't handle the key list in your third party application, you have to handle it there, too. But once your x++ job works I think you understand how you need to implement the third party application.

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    I created a job to call AIF service but when i called one of its methods , it needs AIFEntityKeyList as a parameter so how could i work with that parameter?

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Thanks ,Nikolaos for this useful info but i am just getting stuck with how to declare AIFEntityKeyList to be called in the method.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    Yes but surely your external app initializes the record somehow before calling the update service. If not, then we have found your problem. You can't update without specifying what record you want to update and what values you want to set. We have said many times that the issue seems to be in the data.

    Remember that we know nothing about your solution except what you tell us.

    You can create a job in x++ to test your service. I think it has been suggested many times already. This blog shows how to call AIF services from x++: blogs.msdn.microsoft.com/.../calling-the-ledgerpurchaseinvoice-service-in-ax-2012

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: Anybody knows the accurate path to find "Line=1, Pos=9749, Xpath=/SalesOrder/SalesTable[1]/SalesLine[1]"

    I only call the service in the external app and nothing else added after then so I think that the update method in the service might not work so do u know how to test update from the service itself inside AX ?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans