web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Wrong argument types in variable assignment.

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

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

  • udaY-ch Profile Picture
    5,133 on at

    Hi,

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

    Best,

    Uday.

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    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

  • Suggested answer
    Shoaib Ashraf Profile Picture
    180 on at

    Thanks Martin, this solved the problem.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans