Hello everyone,
I have a working code in AX but when invoked through a service from outside it throws an exception.
I am using DocuActionArchive class in my code for file attachment.
I have following lines of code that refer to this class.
DocuActionArchive archive;
archive = new DocuActionArchive();
archive.add(docuRef, filePath);
The service throw following exception:
System.ServiceModel.FaultException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InvalidRemoteCallException' was thrown.
It errors out on line: archive.add(docuRef, filePath);
Looks like it cannot call the add method in the DocuActionArchive class. I changed the property of this class from Run on Client to Run on Server but still get this error.
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (