Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Error in Runbasebatch class

Posted on by Microsoft Employee

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
---------------------------5775.Error.PNG

*This post is locked for comments

  • Suggested answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Error in Runbasebatch class

    Hi Priyank,

    Try compiling the AOT application. Hoping compilation could resolve your issue.

    Best,

    Uday.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in Runbasebatch class

    Yes, i change with 2

    #DEFINE.CurrentVersion(2)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in Runbasebatch class

    HI Uday,

    After clear the usage data, it is working for first time, after that it shows same error.

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Error in Runbasebatch class

    Hi,

    Clear your usage data.

    compile backward the class.

    Best,

    Uday.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in Runbasebatch class

    public static void main(Args args)

    {

       SYNInventSumBatch synInventSumBatch = new SYNInventSumBatch();

       if (synInventSumBatch.prompt())

       {

          synInventSumBatch.run();

       }

    }

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error in Runbasebatch class

    #DEFINE.CurrentVersion(1)

    i have already declared that  

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Error in Runbasebatch class

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans