Error executing code: Wrong argument types in variable assignment.

Dear All:

Upon posting PO, I have encountered this problem. :frowning:

Error executing code: Wrong argument types in variable assignment.

(S)\Classes\PurchFormLetter\specQty - line 3

(S)\Classes\PurchFormLetter\createParmUpdate - line 7

(S)\Classes\PurchFormLetter\prePromptInit - line 5

(S)\Classes\PurchFormLetter\mainOnServer - line 101

(C)\Classes\PurchFormLetter\main

(C)\Classes\FormFunctionButtonControl\Clicked

(C)\Classes\FormMenuButtonControl\Clicked

(C)\Classes\FormMenuButtonControl\Clicked

Error executing code: Wrong argument types in variable assignment.

(S)\Classes\PurchFormLetter\specQty - line 3

(S)\Classes\PurchFormLetter\createParmUpdate - line 7

(S)\Classes\PurchFormLetter\prePromptInit - line 5

(S)\Classes\PurchFormLetter\mainOnServer - line 101

(C)\Classes\PurchFormLetter\main

(C)\Classes\FormFunctionButtonContr’

Wish you could help me.

Thanks.

Heylin

Hi,

From error, it appears that PurchFormLetter class has been modified. Have a developer to look at this issue.

This can be caused by two reasons:

  1. Code is wrong, performing some invalid assignment. (You have to fix the code.)
  2. Code is correct, but your application is not compiled correctly. (You should compile forward FormLetter class, or - because you may have such issues in more places - compile the whole AOT.)

i have compiled the whole AOT and my PO can now be posted. Thanks Martin.

Hi Martin,

I was getting the same issue but after the whole AOT compilation i was able to post PO.

Thanks

I am getting this problem too and I have compile AOT. It is very slow process.

You need not to compile the whole application, rather compile(use forward compile for compiling the classes that are down in the inheritance hierarchy) the problematic classes.

You can do the parallel compile(if you are using R2 CU7 and versions after that).

https://msdn.microsoft.com/en-us/library/dn528954.aspx