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 AX (Archived)

Stack trace error AX 2012 while selecting on hand form

(0) ShareShare
ReportReport
Posted on by 800

Hi,

we are facing critical issue in our live environment  that when we are selecting any on-hand form and selecting any product lookup in production module and many other places we getting below error :-

Stack trace: Field 'ItemId' in table 'InventSum' has not been explicitly selected.

Stack trace

(C)\Classes\WHSInventReserveQty\inventSum - line 3
(C)\Classes\WHSInventReserveQty\availTotal - line 15
(C)\Classes\InventAvailabilitySnapshot\initFromAvailability - line 5
(C)\Classes\InventAvailabilitySnapshot\newFromAvailability - line 24
(C)\Classes\InventAvailabilityByUnit\pack - line 6
(C)\Classes\InventAvailabilityProvider\findPackedOnServer - line 14
(C)\Classes\InventAvailabilityProvider\find - line 31
(C)\Classes\InventAvailabilityProvider\findBySumDim - line 29
(C)\Classes\InventAvailabilityFormCache\updateCachedValuesSum - line 22
(C)\Classes\InventAvailabilityFormCache\availabilityFromDimJoinedWithSum - line 29
(C)\Forms\InventBatchIdLookup\Data Sources\InventDim\Methods\availPhysical - line 3

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availReservation - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availReservation - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availOrdered - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availOrdered - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availPhysical - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace

(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\availPhysical - line 12

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\pdsTotalAvailable - line 5

Error Message (02:46:05 pm) InventAvailabilitySnapshot object not initialized.

Stack trace(C)\Forms\InventOnHandItemPart\Data Sources\InventSum\Methods\pdsTotalAvailable - line 5

It looks like cache issue and we did following things but didn't solve our issue any suggestion would be more appreciated.

Below are the steps which we have followed.

1. Restarting AOS

2. Clearing usage data

3. Flushing cache using SysFlush classes

4. Full compile ,CIL,Sync also done successfully but still facing same issue.

Regards,

Kishore

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    Do you see NULL values in ItemId field in InventSum?

  • Verified answer
    Khushhal Garg Profile Picture
    1,514 on at

    Also, try disabling "Error on invalid field access" check box in server configuration.

    Please take time to click Yes if it answered your question

  • kvnkk Profile Picture
    800 on at

    Hi Khushhal,

    We are getting error everywhere where we can check avail, remain quantity etc.. . I believe it is relating to cache and system unable to fetch data by using class“InventAvailabilityFormCache”. Somewhere combination(InventSum and InventDim) data missing at cache level.

    if I am not wrong.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans