Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

SSRS Report DataContractAttribute object not initialised

(0) ShareShare
ReportReport
Posted on by 124

Dear All,

I created RDP and DataContractAttribute class, but when i running ssrs report, i'm getting DataContractAttribute object not initialized error. Where is my mistake? Thank you.

RDP class;

pastedimage1594638555580v1.png

DataContractAttribute Class;

pastedimage1594638578698v2.png

Error;

pastedimage1594638684257v3.png

  • MuratGulerMG Profile Picture
    124 on at
    RE: SSRS Report DataContractAttribute object not initialised

    I found my mistake for InMemory table, thank you for support.

  • MuratGulerMG Profile Picture
    124 on at
    RE: SSRS Report DataContractAttribute object not initialised

    Thank you Martin this issue is resolved, but rdp class can't fill tempdb. When i change table type to regular i can see data, but change to in memory or tempdb i can't see data.

  • Verified answer
    Martin Dráb Profile Picture
    231,723 Most Valuable Professional on at
    RE: SSRS Report DataContractAttribute object not initialised

    You never assigned any value to your local variable called dataContract, therefore its value is null and you can't call methods on null.

    Use the following code to assign the current data contract to your variable:

    dataContract = this.parmDataContract();

  • MuratGulerMG Profile Picture
    124 on at
    RE: SSRS Report DataContractAttribute object not initialised

    Dear Martin,

    I added screen shot, thank you.

    pastedimage1594641253724v1.png

  • Martin Dráb Profile Picture
    231,723 Most Valuable Professional on at
    RE: AX2012 SSRS Report DataContractAttribute object not initialised.

    Can you show us your code in processReport(). It's failing there, at line 15.

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,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans