Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Unable to dynamically create AOT Node (class) using sysOperations [CLR session]

$
0
0

Not able to dynamically create AOT Node (class) in CLR session

Dear Experts,

I need to create a class dynamically using code. I searched and found
working code from here: kashperuk.blogspot.com/.../today-i-
want-to-write-about-using-class.html

I have used sysOperations framework to call a form, get parameters and build class according to that. The code how ever does not run and give error as follows when I call it
from sysOperations framework.

Stack trace: Invalid attempt to call <className>.<methodName> running in CIL on the client.

I felt lucky and did nothing but marked the class (runOn property) and the method (server modifier after public) as Server .

This successfull changed the error, but this time, it provides a partial leading error as follows.

"Unable to save Class <classNameProvided>"
"Unable to create node"
"Microsoft.Dynamics.AX.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.AX.Xpp.ErrorException' was thrown. At ...."

(Please visit the site to view this file)

Is it related to rights ? CLR session cannot add items to AOT ? There has to be something like that since from a job, this code is
working fine and I can create as many classes I want. When my sysOperation class calls the same, it gives the
unable to save node unable to create errors.

Can some1 help me regarding this. Or should I quit using sysOperations and arrange my work another way in code ?


Viewing all articles
Browse latest Browse all 72043

Trending Articles