Options

DOTNET object -> RunOnClient:Yes

AitorEGAitorEG Member Posts: 342
Hi everyone,

After different upgrade for different customers, I've found an issue that makes me a little mess. I'll try to explain myself, and I hope you'll give me your thoughts.
Everything has to see with the development of the "Electronic VAT Information under SII", but I think that happens with every development with DOTNET objects.
I've made an upgrade for one customer to the NAV2017, and the development works perfectly, without changing any property of the DOTNET variables.
But instead, with another upgrade from other different client, doesn't happen the same.
In this case, I'm doing an upgrade to the NAV2018 version. When I try to run a development with DOTNET objects, I'm finding the error: "Cannot serialize DOTNET object". For one integration I've developed with external WebServices, I've solved this issue changing the RunOnClient property to "Yes", and I think that this issue, for the "Electronic VAT Information under SII", could be solved in the same way.
The thing is that I don't understand why this development run without changing anything in one server, and in this new one, I'm finding this issue.
Could be because of something in the server? Or the NAV installation? Any thoughts?

Thnak you all

Comments

  • Options
    xStepaxStepa Member Posts: 106
    Hi, this error often occures, when you combine RunOnClient properties in your variables ...
    E.g.: DotNet XMLDocument (RunOnClient=false) assigns its result to another variable XMLRootElement (RunOnClient=true).
    Regards
    xStepa
  • Options
    AitorEGAitorEG Member Posts: 342
    Thank you @xStepa. Ou are right, I was mixing different values of RunOnClient.
    Appreciated!
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    If anytime you using it in GUIALLOWED then it should be YES as then only it invokes on the Client otherwise system consistently ends up with the issue of instantiation.
  • Options
    xStepaxStepa Member Posts: 106
    edited 2018-03-26
    Disagree - I'm using RoC=No in most cases to be processed on NST. Only when some interaction with user's computer (Control addin, Excel Interop, ...) is required, I'm using RoC=Yes ...
    Regards
    xStepa
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    edited 2018-03-26
    Thats's why I said when you are using it on the Client.
    Only when is required some interaction with user's computer
    //Just for these multiple words I used GUIALLOWED.I was pointing to this sense only.
Sign In or Register to comment.