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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Object reference not set to an instance of an object error on Visual Studio

(0) ShareShare
ReportReport
Posted on by 114

Hello everyone,

I created new query and ssrs report. When I try to add this query to my report Data Source on VS2010 getting this error. I can add another queries without any problem. How can i fix this problem?

152318.Capture.PNG

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Emre,

    Did you try doping a DB synch and full/incremental CIL generation?

  • WillWU Profile Picture
    22,363 on at

    Hi Emre KarakuÅŸ,

    You'll get this error when you try to call a method or access a null object.

    1,Please try to compile the query you need to add.

    2,Go to Build -> Generate Full CIL

    3,If it doesn't work, try restarting AOS.

    Hope this helps.

  • Suggested answer
    Junaid Idrees Profile Picture
    on at

    Hi Emri,

    As per my experience this issue should be solved by running a Full CIL compilation.

  • Emre Karakus Profile Picture
    114 on at

    Hello,

    I restarted many time AOS services and compiled many time Full CIL. It's still same. Do you know of any other solution method?

  • WillWU Profile Picture
    22,363 on at

    Hi Emre KarakuÅŸ,

    You could try to write a test class to test your query and check if it works.

    1,Please do synchronize on the table related to your query.

    2,Refresh all cache on AOT, on AOT-> Tools -> Caches.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 455 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 308 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans