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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

duplicate values in the query criteria lookup

(0) ShareShare
ReportReport
Posted on by 290

We have a customized SSRS report which is based on the view. Also, there is a query to enable user to add ranges before running the report. The data source of this query is the view. Recently I have added a new field named "Code" to the view which needs another join to the customized table named "RequestTable". I have appended this field to the query ranges as well. When user wants to select criteria for this field the lookup shown duplicate values. I thought the values which are shown in the lookup should come from root table. For example when I add vendor account field from purchTable although purchTable has duplicate vendor account the lookup shown values from vendTable (i.e, the value are not duplicate).

Code field which is in RequestTable comes from CodeTable. There is no duplicate value for Code in CodeTable and also it is index (primary key).

As you know this lookup is shown automatically and there is no code for that. I want to know which steps are important to correct the lookup considering EDT, Table relations, Auto Lookup field groups and so on. Maybe something is missing in setting CodeTable or RequestTable properties.

2273.Capture.PNG

I have the same question (0)
  • Rahul Mohta Profile Picture
    21,032 on at

    which relation is being used and which RelationshipType  as well as cardinality

  • Nastaran Profile Picture
    290 on at

    Dear Rahul,

    Sorry for the delay,

    I test two below scenario none of them fix the issue.

    1) Request table has a relation foreign key with code table the cardinality is Zero more , the related cardinality  is Zero One and relation Type is Association.

    2) Request table has  a relation but not foreign key with same above condition.

    If you say in which situation this issue can happen I can find the problem.

    Thank you.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Nastaran,

    Do you know if any relation set up on EDT itself used for this field?

  • Nastaran Profile Picture
    290 on at

    Hi Sergei,

    Yes the code EDT has a reference table which is code table

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Nastaran,

    If you select all records from code table via SQL, do you see 2 records there?

  • Nastaran Profile Picture
    290 on at

    Dear Sergei,

    If you mean duplicate codes, no I don't see duplicate codes, actually code field is index and allow duplicate is no.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Nastaran,

    I thought that if table is a company-specific there can be identical codes in different companies.

    Looks like some relation is pointing to the wrong table. Could you double-check all places: EDT, Relation on the table where Code field added, also there a view on the screen and you need to double-check relation there as well?

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 118 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans