Hi...
Sorry, some how I am unable to post questions on my old post, so its a new thread I am opening for further communication.
I wrote all my T-SQL code inside a job to import data into 6 user tables in AX ERP. The job executes perfectly fine and imports the data correctly. But when I copy-paste the same code inside my custom class method and call it from my C# code using business connector I get the following error.
"{Microsoft.Dynamics.BusinessConnectorNet.XppException: Method 'execute' in COM object of class 'ADODB.Connection' returned error code 0x80040E31 (<unknown>) which means: Query timeout expired.
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.CallStaticClassMethod(String className, String methodName, Object[] paramList)
at Microsoft.Dynamics.BusinessConnectorNet.Axapta.CallStaticClassMethod(String className, String methodName, Object param1, Object param2)"
The code I used to call my custom AX class/method inside c# code looks like this.
object retVal = axapta.CallStaticClassMethod("myInsertClass", "myInsertMethod", taxType, 2);
Please suggest.
Thanks,
Preeti
*This post is locked for comments