Got heaps of exceptions when trying to invoke Dynamics AX 2012 Service from VS.Net
Below, is a snapshot from System Administration > Periodic > Services and Application Integration Framework > Exceptions
Errors:
a. Field 'Language' must be filled in
b. Field 'Currency' must be filled in
c. Item Number 1205 does not exist
d. Creation has been cancelled
Solution:
After some investigation, found that it was required to pass callcontext object explicitly after setting company and language from VS.Net as shown below:
Update: Figured out that we need not pass explicitly company and language information through code via callcontext, if the logged on user belongs to the company "ceu". In my case, the logged in user was pointing to "dat" so changed it to "ceu" in User Options form and it works fine without callcontext.
1 comment:
I am receiving the following error:
The class AxCommon does not have a parmVariantConfigurationTechnology method or field VariantConfigurationTechnology is missing from the query.
Field 'Configuration technology' must be filled in.
Creation has been canceled.
However I have my product_master axEntity with the VariantConfigurationTechnology parameter set to PredefinedVariants.
Any ideas?
Post a Comment