web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

The value 'xxx' in field 'yyy' is not found in the related table 'abc1'.

(1) ShareShare
ReportReport
Posted on by 8
Hi
 
I have an issue where I am getting this message The value 'xxx' in field 'yyy' is not found in the related table 'abc1' when I want to select record in a grid.
I have overriden lookup method with some query conditions that I dont think are relevant.
 
The thing is that my table 'abc' that contains this field 'yyy' has 2 relations, one to table 'abc1' and another to 'abc2' using the same field ('yyy') and it is searching by default only in abc1 and when I select record from abc2 it says that it doesnt exist in table abc1.
Why is that?
 
Thanks in advance
  • Layan Jwei Profile Picture
    8,421 Super User 2026 Season 2 on at
    Hi Tech,

    is there a relation between abc1 and abc2? and which one in the main table?  

    I'm assuming this is the base table
     
    ABC1(table)
    yy
    1
    2
    3
     
     
    then you have this

     
    ABC2(table)
    yy
    1
    2
    relation
    abc1.yy=abc2.yy

    is this correct?


    Now for ABC? should it contain records from ABC1 or ABC2? why did you have to make relation to both?
     
    Also to know if the issue is from your lookup or not, you can simply comment the code out and see.

    Thanks,
    Layan Jweihan
     

     
  • techAx Profile Picture
    8 on at
    Relations are like this:
     
    abc.yyy = abc1.yyy
     
    abc.yyy = abc2.yyy
     
    There is no relation between abc1 and abc2 
     
    abc has relation to both because it depends on the type of record
  • Suggested answer
    Waed Ayyad Profile Picture
    9,222 Super User 2026 Season 2 on at
    Hi @techAx,
     
    Can you share your code so we can help you?
     
     
    abc.yyy = abc1.yyy
     
    abc.yyy = abc2.yyy
     
    There is no relation between abc1 and abc2 
     
    abc has relation to both because it depends on the type of record-----(can you give me more details here?)

    Regards,
    Waed Ayyad
     
  • Layan Jwei Profile Picture
    8,421 Super User 2026 Season 2 on at
    Hi Tech,
     
    Please explain what do you mean by "it depends on the record". Maybe we can help you with the design (assuming these tables are custom and created by you)
     
    Also if you have screenshots with sample data, it will let us understand more.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 445 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 309 Super User 2026 Season 2

#3
CU29091230-0 Profile Picture

CU29091230-0 192

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans