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 :
Microsoft Dynamics NAV (Archived)

NAV2013 - OData - Object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by

Can someone help me, Where to look for the problem? 

Get this error code in the Eventviewer. 

Server instance: NST71GWPLive

User: DOMAIN\aXXXe.rXXXXma
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.ALCompiler.ConvertNavValueToClrValue(NavValue navValue)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataQueryProviderToNavQuery.CreateODataResourceForNavQuery(NavValue[] queryResultRow)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataQueryProviderToNavQuery.FetchData(NavSession session)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataQueryProviderToNavQuery.GetResourcesFromNavObject(NavSession session)
at Microsoft.Dynamics.Nav.Service.ODataServiceProvider.NavServiceHelper.ExecuteOperation[TResult,T1,T2](String companyName, ODataOperation`3 operation, T1 parameter1, T2 parameter2, Boolean isDefaultCompanyRequired)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2147467261

*This post is locked for comments

I have the same question (0)
  • keoma Profile Picture
    32,729 on at

    which nav object did you publish?

    did you customize it, did you publish a new nav object?

    what is the client app, a c# windows/web app? did you debug?

  • Community Member Profile Picture
    on at

    Don't know..

    Hope the log helps?

    Foutmelding in Log - 11:14:12:

    TRACE in Communication(thr8): 2015-10-22 11:14:12.7302 nsxxxx/.../Company('OXXe

    InsXXXties')/WorkOrderGWP()?$filter=SOStatusAsInt le 3 and Duration_Time gt 0M and Starting_Date_Time gt datetime'2015-09-22T00:00:00%2B02:00' and

    Starting_Date_Time lt datetime'2016-02-19T00:00:00%2B01:00' and Source_Company eq 'OXXe InsXXXties'

    TRACE in Communication(thr12): 2015-10-22 11:14:12.7458 nsXXXX/.../Company('PrXXXer-Xier

    Installaties')/WorkOrderGWP()?$filter=SOStatusAsInt le 3 and Duration_Time gt 0M and Starting_Date_Time gt datetime'2015-09-22T00:00:00%2B02:00' and

    Starting_Date_Time lt datetime'2016-02-19T00:00:00%2B01:00' and Source_Company eq 'PrXXXXer-Xier Installaties'

    DEBUG in Communication(thr8): 2015-10-22 11:14:12.8552 sub result: 0 work orders received

    ERROR in Communication(thr12): 2015-10-22 11:14:14.7537 Fatal error in LoadItemsFromSourceAndDetectChanges:  

    System.Data.Services.Client.DataServiceQueryException: An error occurred while processing this request. --->

    System.Data.Services.Client.DataServiceClientException: {"odata.error":{"code":"","message":{"lang":"en-US","value":"Object reference not set to an

    instance of an object."}}}

      at System.Data.Services.Client.QueryResult.ExecuteQuery()

      at System.Data.Services.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents)

      --- End of inner exception stack trace ---

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    When are you getting this error ?

  • Community Member Profile Picture
    on at

    This error appears in the windows eventviewer, and it happens when -

    People are 'planning' - resources for a WorkOrder and sometimes changes from one resource to an other.

    There is no Pin pointing on which moment the error appears in eventviewer.

  • keoma Profile Picture
    32,729 on at

    which client does this error produce: windows/web/tablet client or an external app ?

    from the log i would say the web client or an external web app.

    was the calling page customized ?

  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    I am sorry, but i have to guess on this, as it looks like it is looking for a resource and the resource does not exist on the system while processing and it is throwing that error.

  • Community Member Profile Picture
    on at

    It is an external app - called GWP - Grafical WorkOrder Planner;

    The log is from that program.

    The NAV2013R2 version.  

  • Community Member Profile Picture
    on at

    Thanks any way!

  • keoma Profile Picture
    32,729 on at

    for the given filter settings there is no result (no work orders, ...):

    DEBUG in Communication(thr8): 2015-10-22 11:14:12.8552 sub result: 0 work orders received

    ERROR in Communication(thr12): 2015-10-22 11:14:14.7537 Fatal error in LoadItemsFromSourceAndDetectChanges:  

    could be a bug in that app.

  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    Hi,

    Hope this will help you out -

    saurav-nav.blogspot.com/.../nav-2015-error-while-consuming-query.html

    Let me know if it helps.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans