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 :
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,361 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,361 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans