RSS

AIF Web Service actions(Find,Read, etc.) lost after recreating service in Dynamics AX 2009

05 Oct

When you delete service objects (classes, macros, service node…) and recreate the service you may have run into the issue that none of the service operations were visible.

Here’s how I solved it today when having the same issue. (We had to remove everything or else the problem was not solved) 

The problem is that the actions are not gone, but they were linked incorrectly. The AIFAction table contains the operations and also contains the classId of the class where the methods to handle the actions are. 

image

 

Well as the service objects were deleted and afterwards recreated, the class ID of the service class had been altered. Due to this changed ID, none of the operations were visible on the service. 

To fix this, just delete the current records in the AIFAction table for the corresponding service and then we can recreate the actions by calling the AIFServiceGenerationManager class,
method RegisterService.

AIFServiceGenerationManager::registerService("RdmCrmQueryService");

 
Then we can see the operations again in the services form.
 
 image

Advertisements
 

Tags: , ,

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: