Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012CRM Connector in Microsoft Dynamics AX 2012Financials Management in Microsoft Dynamics AX 2012Upgrading to Microsoft Dynamics AX 2012
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
Inventory Costing in Microsoft Dynamics AX 2009
Invoice Settlements/Discounts/Reversals
SSRS and SSAS Integration
Workflow
1) I have created a new class "CustomCurrencyService" with the following code:
class CustomCurrencyService{}
[SysEntryPointAttribute]public CurrencyName getCurrencyName(CurrencyCode _currencyCode){ return Currency::find(_currencyCode).Txt;}
Changed the class property RunOn to "Server"
2) In the AOT, I have created a new service with the following properties:
Property
Value
Name
CustomCurrencyService
Class
Then, I have added the operation by selecting getCurrencyName from the "Add Service Operation" Form.
Step 3: Once the service is ready, I have created a Service Group named "CustomCurrencyServices" and then created a created a new service node reference with the following properties:
Service
Step 4: Once the service group is ready with one service node reference, I am trying to "Deploy Service Group". But I am getting the below error:
"The port 'CustomCurrencyServices' could not be deployed.\nError: c:\Users\ServiceAccountAX\AppData\Local\Temp\ServiceGeneration\CustomCurrencyService.cs(34,19) : error CS0234: The type or namespace name 'CustomCurrencyService' does not exist in the namespace 'Dynamics.Ax.Application' (are you missing an assembly reference?)c:\Users\ServiceAccountAX\AppData\Local\Temp\ServiceGeneration\CustomCurrencyService.cs(34,61) : error CS0234: The type or namespace name 'CustomCurrencyService' does not exist in the namespace 'Dynamics.Ax.Application' (are you missing an assembly reference?)"
Not sure what needs to be done with this error, could any one please help.
Also in the Inbound Ports form, I am able to see the "CustomCurrencyServices" port name but there is no WSDL URI for this and also I am not able to activate this port.
... but you didn't generate CIL, did you?
[ Goshoom.NET Dev Blog ]
How do I generate that in DAX?
you mean
AOT > Add-ins > Incremental CIL generation from X++
leme try this and let you know....
thanks for your reply
Yes, or you have buttons on the toolbar in development workspace. Services are run by CLR, which uses code in Common Intermediate Language, not X++. CLR knows nothing about your class unless you generate CIL code for it.
Your reply really helped me a lot. Its working fine after generating the CIL. Thanks Martin.
Help me!
While i'm doing AOT > Add-ins > Incremental CIL generation from X++, system inform error:
Error executing code: SysVersionControlSystemFileBased (object) has no valid runable code in method 'checkInChangelist'.
Stack trace
(S)\Classes\SysVersionControlSystemFileBased\checkInChangelist
(S)\Classes\XppCompiler\dumpClass
(S)\Classes\SysCompileIL\dumpIncrementalBulk - line 132
(S)\Classes\SysCompileIL\generateIncrementalIL - line 77
(S)\Classes\SysCompileIL\main - line 13
how to fix error above?
tks!
What do you get if you compile SysVersionControlSystemFileBased class?
a error occurs during compile SysVersionControlSystemFileBased class: error "The method override has an incorrect number of parameters" at the methor "checkInChangelist"
help me!
So, obviously, you have to fix the X++ code, i.e. to use the correct number of parameters in checkInChangelist(). I don't know what problem you have there, so I can't tell you anything more detailed.