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

  • WillWU Profile Picture
    22,352 on at
    RE: Object reference not set to an instance of an object error on Visual Studio

    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.

  • Emre Karakus Profile Picture
    114 on at
    RE: Object reference not set to an instance of an object error on Visual Studio

    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?

  • Suggested answer
    Junaid Idrees Profile Picture
    on at
    RE: Object reference not set to an instance of an object error on Visual Studio

    Hi Emri,

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

  • WillWU Profile Picture
    22,352 on at
    RE: Object reference not set to an instance of an object error on Visual Studio

    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.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Object reference not set to an instance of an object error on Visual Studio

    Hi Emre,

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

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,768 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans