Following error faced when execute batch :-
---------------------------
Microsoft Dynamics AX Debugger
---------------------------
Error executing code: Wrong argument types in variable assignment.
Stack trace
(C)\Classes\SYNInventSumBatch\unpack - line 12
(C)\Classes\xSysLastValue\getLast - line 29
(C)\Classes\RunBase\getLast - line 16
(C)\Classes\RunBaseBatch\getLast - line 12
(C)\Classes\RunBase\promptPrim - line 8
(C)\Classes\RunBase\prompt - line 12
(C)\Classes\RunBaseBatch\prompt - line 30
(C)\Classes\SYNInventSumBatch\main - line 5
---------------------------
OK
---------------------------
*This post is locked for comments
Hi Priyank,
Try compiling the AOT application. Hoping compilation could resolve your issue.
Best,
Uday.
Yes, i change with 2
#DEFINE.CurrentVersion(2)
HI Uday,
After clear the usage data, it is working for first time, after that it shows same error.
Hi,
Clear your usage data.
compile backward the class.
Best,
Uday.
public static void main(Args args)
{
SYNInventSumBatch synInventSumBatch = new SYNInventSumBatch();
if (synInventSumBatch.prompt())
{
synInventSumBatch.run();
}
}
#DEFINE.CurrentVersion(1)
i have already declared that
Hi,
The error tells the wrong variable assignment. For instance, you're trying to store integer value in the string field.
Can you give us the screen shot of the method Classes\SYNInventSumBatch\main
Best,
Uday.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156