Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

SSRS Report DataContractAttribute object not initialised

Posted on by 120

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
    MuratGulerMG 120 on at
    RE: SSRS Report DataContractAttribute object not initialised

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

  • MuratGulerMG Profile Picture
    MuratGulerMG 120 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
    Martin Dráb 225,490 Super User 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
    MuratGulerMG 120 on at
    RE: SSRS Report DataContractAttribute object not initialised

    Dear Martin,

    I added screen shot, thank you.

    pastedimage1594641253724v1.png

  • Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans