Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Wrong argument types in variable assignment.

Posted on by 180

Hi...

I am getting error 'wrong argument types in variable assignment' in main method of a controller class.

Need your help.

Thanks.

item3.png

wer.png

*This post is locked for comments

  • Suggested answer
    Shoaib Ashraf Profile Picture
    Shoaib Ashraf 180 on at
    RE: Wrong argument types in variable assignment.

    Thanks Martin, this solved the problem.

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: Wrong argument types in variable assignment.

    Can please share the source from where you are calling this class, for verification of table buffer use common table buffer for assignment and then check the table ID.

    As Martin Dráb said in his comments, record argument contain something else than GOCD_GateOutwardSlip record

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Wrong argument types in variable assignment.

    Hi,

    Could you please check the menuitem properties attached to the form with the respective values enabled.

    Best,

    Uday.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Wrong argument types in variable assignment.

    clear the cache and delete all the AUC files from appdata and try again

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Wrong argument types in variable assignment.

    It seems that record() contains something else than GOCD_GateOutwardSlip record. Check if it has a value at all and if so, which type it is.

    For instance, you can assign the value to a variable of type Common and check the actual type in debugger.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans