Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS Contract class - SalesInvoiceContract

(0) ShareShare
ReportReport
Posted on by 90

Hi All,

I add a new parameter method under class SalesInvoiceContract, but once I reboot the AOS Service, the system will retun the expected result.

SysDictClass m_class = new SysDictClass(classNum(SalesInvoiceContract));
int m_methodCount = m_class.objectMethodCnt();
;

info(strFmt("%1", m_methodCount));

It should be 27, but get 26 as the result.

I done the compile, fully generate the CIL file. But once I reboot the service, system will not return the correct result. 

Any suggestion?

1731.002.png

Why I am doing this, it's because I noticed that system use this method to add those methods under the contract class and build them into a map to let the system know how many paramers there are.

*This post is locked for comments

  • LiuJie Xu Profile Picture
    LiuJie Xu 90 on at
    RE: SSRS Contract class - SalesInvoiceContract

    After I deleted the AUC file which is stored in the users\appData\Local folder, it works.

  • Suggested answer
    BrandonSA Profile Picture
    BrandonSA 1,669 on at
    RE: SSRS Contract class - SalesInvoiceContract

    Hi

    Make sure your new method in the contract class is decorated with [DataMemberAttribute('yourAttribute')].

    Also, reset your usage data. If you can, delete the report from the sharePoint server it's deployed to, restart the report service, and redeploy the report.

    SSRS often has caching issues. These are some of the things you can try to clear the cache

    Thanks

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans