0
votes

I use .net variables in a codeunit to be able to connect to SQLServer. The codeunit works well when I run it manually. However, I get an error when it runs on Job Queue. I get this error: "Microsoft Dynamics NAV Server attempted to issue a client callback to create a .NET object: System.Data.SqlClient.SqlConnection . Client callbacks are not supported for Microsoft Dynamics NAV Server." The properties 'RunOnClient' are set to 'No'. How to make these variables supported by Microsoft Dynamics NAV Server?

1
Please check ALL your variables carefully. The only reason for this error is RunOnClient. Nothing else.Mak Sim
I checked many times. All the .net variables properties 'RunOnClient' are set to 'No'.meriam bambia
Use debugger. It will stop when hit the variable which is client side.Mak Sim

1 Answers

0
votes

A client callback can also be caused by other 'visual' interactions, like a dialog or confirm window. If this is the case use guiallowed to check if interaction is possible