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)

Error Message: The field Product Group Code of table Item contains a value (xxx) that cannot be found in the related table (Product Group).

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using NAV 2013.

On Item Card, I got an error when changing the Product Group Code to Value "COMPONENT".

3051.Capture.PNG

I have checked the Product Groups table. There is not a value called "Cleaning". When I added a value "Cleaning" and then selected the "COMPONENT" on Item card.  The "COMPONENT" switched to "Cleaning". And there is no error message.

I don't need "Cleaning". I need "COMPONENT". Why was the value switched ?

Thank you!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,003 Super User 2025 Season 2 on at

    do you have any customization?

    Please check the Onvalidate trigger of Product Group field on Item table.

  • mmv Profile Picture
    11,471 on at

    Hi,

    Could you check whether there's any Item with the Product Group as CLEANING?  If it's present, either you need to modify it or u need to create a Product Group Code with the value as CLEANING.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    To me it looks like a violation of database integrity, caused by e.g. a situation when someone manually deleted the CLEANING value from the Product Group table, and this value is still left in the item card. You can either add this value to Product Group and perform the settings you need, and then delete CLEANING in a correct fashion.

  • Community Member Profile Picture
    on at

    Hi Mahesh,

    I have checked all items by Jet Report. There is not any Item with CLEANING in Product Group Code field.

  • Community Member Profile Picture
    on at

    There is not any Item with CLEANING in Product Group Code field. When I created "CLEANING" in Product Groups, and then I selected "COMPONENT" as Product Group Code on Item Card. The value "COMPONENT" switched to "CLEANING".

  • Suggested answer
    Community Member Profile Picture
    on at

    Better you arrange to debug the code (Product Group > OnValidate) to resolve this issue.  This is not standard behaviour.

  • Suggested answer
    RockwithNav Profile Picture
    8,635 Super User 2025 Season 2 on at

    HEY Allen,

    As you know Product Group table acts as a mater table for the Product Group field in the Item, Hence any value in this field will always check in the Master Table as TestTableRelation Property is always set to YES to cross verify the entries. There might be several reasons how come this value is not there in the Master Table but if it some value which should do exist in the table then the simplest way to resolve this issue is to manually create that value. If it's something which shouldnot exit then it's a serious issue to Debug and to find out how it's hitting that value.

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans