Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Invalid Message Schema - AIF

Posted on by 5


	
{D1F93462-0229-1430-0001-93FAE32B2E4D} https://schemas.microsoft.com/dynamics/2008/01/services/SalesOrderService/create
Original AUD CUST_ACC 1900-01-02 PurchOrderFormNum1 1900-01-01 ITEM 9 ctn HANDLING

The above is my XML code, and the only error that AX is supplying is that the message is invalid. My XSD is below. Using visual studio to validate the XML shows no errors? Any thoughts


  
  
  
    
      
      
    
  
  
    
      
      
      
      
      
      
      
      
    
    
    
  
  
    
      
      
      
      
      
    
    
    
  
  
    
      
    
    
    
  
  
    
      
    
    
    
  

  • robert_bob Profile Picture
    robert_bob 5 on at
    RE: Invalid Message Schema - AIF

    Sorry, yes, same problem with the same non-descriptive exception / error from AX.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Invalid Message Schema - AIF

    And did you try my example ? Do you get same error ?

  • robert_bob Profile Picture
    robert_bob 5 on at
    RE: Invalid Message Schema - AIF

    Thanks ievgen,

    Refresh was greyed out in AOT. I have recompiled it to no avail.

  • robert_bob Profile Picture
    robert_bob 5 on at
    RE: Invalid Message Schema - AIF

    Hi Martin,

    Yes, I've used VS to validate this - VS flags no errors.

  • Martin Dráb Profile Picture
    Martin Dráb 230,198 Most Valuable Professional on at
    RE: Invalid Message Schema - AIF

    What if you validate the file against the schema outside of AX?

    There are quite a few tools that can do that, one of them is Visual Studio.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Invalid Message Schema - AIF

    Also open AifService form from AOT and click the Refresh button, it may help as well.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Invalid Message Schema - AIF

    Try to reduce it to bare minimum and see if it will work

    
    	
    https://schemas.microsoft.com/dynamics/2008/01/services/SalesOrderService/create
    CUST_ACC 1900-01-02 PurchOrderFormNum1 1900-01-01 ITEM 9 ctn

  • robert_bob Profile Picture
    robert_bob 5 on at
    RE: Invalid Message Schema - AIF

    Thanks,

    I have tried a basic salesorder read on the same port, and I am still getting a malformed XML error. To be honest I have no clue where to go to from here

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Invalid Message Schema - AIF

    In this case all I can advice is to debug. Another option is to export an SO using same port and compare the message to your one.

  • robert_bob Profile Picture
    robert_bob 5 on at
    RE: Invalid Message Schema - AIF

    I generated the Schema from the inbound port settings, and then generated an XML based on the Schema to start modifying.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans