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)

SSRS Report - Wrong argument types in variable assignment

(0) ShareShare
ReportReport
Posted on by 1,307

Hi,

I am getting the below error after passing parameters to SSRS report.

I debugged and found that the error is occurring while executing "Print Labels" parameter.

 KitRptParametrs.png

Error executing code: Wrong argument types in variable assignment.

Stack trace

(C)\Classes\SysOperationDataContractInfo\packDataContractObject - line 59
(C)\Classes\SysOperationController\packDataContractInfoObjects - line 24
(C)\Classes\SysOperationController\pack - line 23
(C)\Classes\SrsReportRunController\pack - line 3
(C)\Classes\xSysLastValue\saveLast - line 8
(C)\Classes\SysOperationController\saveLast - line 11
(C)\Classes\SysOperationController\dialogRun - line 52
(C)\Classes\SysOperationController\prompt - line 9
(C)\Classes\SysOperationController\startOperation - line 9
(C)\Classes\SrsReportRunController\startOperation - line 19
(C)\Classes\ClassFactory\runReport - line 24
(C)\Classes\ClassFactory\viewSRSReportOnClient - line 3
(C)\Classes\ClassFactory\viewSRSReport - line 21

I deleted the records related to the report from Syslastvalue. Still the error exists.

Thanks,

Lakshmi

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    startax Profile Picture
    1,845 on at

    Hi,

    Debug your DP class and check what is return from contract class when "Print Labels" is checked. Also check how you are using this "Print Labels" value.

  • Lakshmi Karambakkam Profile Picture
    1,307 on at

    Hi,

    This ssrs report has UIBuilder,Contract and RDP classes but no controller class.

    In which class should pack method must be added?

    Here is a image of methods

    KittingContract_5F00_UIBuilder.png

    Thanks,

    Lakshmi

  • Verified answer
    Lakshmi Karambakkam Profile Picture
    1,307 on at

    I deleted the dataset attached in visual studio and re-created a new one. it clicked.

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