February 14, 2014 at 19:57
filed under Dynamics AX
Tagged 2012, AIF, Error, Services, SysOperation
When activation an integration port, you can receive the following error:
The service ‘YourService’ could not be generated.\n Error: ‘YourDataContract.aMethod’ is not a valid data member
The problem is with declaration of the data member YourDataContract.aMethod. This method declaration could look like this:
As you can see, the type of the return value is Description but the type of the parameter is str. These types should be the same as shown in the following example:
Compile CIL after your made the change and redeploy your integration port, and the error should be solved.
Balog Gergely
on October 21, 2014 at 12:12
Thanks a lot!
I had the exact same issue, and was stumped for quite some time!