//lvarActiveConnection is of type variant lvarActiveConnection := lADOConnection; //this is where it errors out when on RTC lADOCommand.ActiveConnection := lvarActiveConnection;
The expression Variant cannot be type-converted to a String value.
lADOCommand.ActiveConnection := lADOConnection;
Type conversion is not possible because 1 of the operators contains an invalid type.
Integer := Automation
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I can't tell you whats the problem, but what i have seen is that there has changed things from classic to RTC.
Unfortunatly in the code i've seen the ADOConnection var is not further assigned to a var of type Command, execute is directly called with a string in it, so no solution for your problem, sorry...
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
We are planing to run the automation with NAS service to go around it.
http://mibuso.com/blogs/ara3n/2011/01/1 ... tc-in-nav/
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I actually found another solution for this which seems to work fine. I made a simple test with it too for retreaving customer names to another test table:
Here is the code:
Greetings,
I run into this all the time. I think it is an incompatibility between design and execution in the compiled code of the program. (A Bug.)
My resolution is so simple that it's silly. Nonetheless, it works.
I save my code object without compiling. I re-open the object and compile it. It has taken several attempts at times to get this to work. Eventually, I always win over the machine.
Once I remember closing Navision entirely and re-opening the application and re-opening the object before it would compile without the nasty little error message.
Heat = Work
And all things tend to chaos
On the RTC, somehow it does even not find the data source. From where does it select the data source, shouldn't it be selected from the client?
hi ara3n,
What is the dotnet type (subtype) you have used to declare the variables (sqlconnection for example)?
thanks in advance
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I am trying to access the http://mibuso.com/blogs/ara3n/2011/01/1 ... tc-in-nav/ site but it's not available. Can you please provide the address again.
Thanks
Bhavna