Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

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
    WillWU 22,350 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
    Emre Karakus 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
    Junaid Idrees 12,746 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
    WillWU 22,350 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
    Gunjan Bhattachayya 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans