I have installed and configured AIF web services on IIS for Axapta 2009. I published InventItemService and consumed it in C# application.
The item creation is working fine after passing all the Axd documents.
I updated document service to include update method and overridden the update method of AxdBase class in AxdItem Class. After passing data to update method of service in C# app then unknown exception is thrown as “An unspecified runtime engine error has occurred. Error code: %d.”
Is there any other way to handle update or i am doing something wrong here. Please help me on this.
After selection of this option Update Document service form will appear. In that You need to select the service which you are going to update and select the update option(Check box).
Select both Regenerate data object class and Update AxBC class and click ok. It will update the service.
If this issue cannot be solved, perhaps easiest option would be to move your above logic elsewhere. Can you let us know what the above modification does please?
The below two methods were generated by Axapta after using the AIF update document service tool with throw error statements. When i was executing the update method from C# app then error was throwing “The Axd Document does not support this action”. So, i overridden the AxdBase methods as seen below and later calling update method from C# throws “An unspecified runtime engine error has occurred. Error code: %d.” error.
I searched other axd documents for update method functionality but all of them are not implemented. I hope it is clear for you.
If I understand correctly, you have modified your document class by overriding update method. And when you are trying to call this from C#, you receive errors.
You’ll want to leave the AxdBase class alone as this will provide the core functionality. I ended up modifying the AxdCountingJournal document class updateList() method to call super ( AxdBase ).
public AifResult updateList( AifEntityKeyList _entityKeyList,
Also, I ended up modifying the default schema through the enhanced integration port customize options. Be sure if you modify the schema, to keep the Document Hash as required and enabled.