Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Error: The record in table Sales Price already exists. Identification fields and values

Posted on by 7
 
I already customize this sales price table line to add new field from region table.
 
But when i key in new line in the table line level, its not detected region field as identification field to be unique. Should be the infolog error is not there if the region is different. But now the if the region is changing, the error still there. how do i add region field to be one of the logic to detect if region field is same then pull the error, and if region field is different then accept the new line and save.
 
Is it something to do with key?
 
Thanks 
  • MR-29040713-0 Profile Picture
    MR-29040713-0 7 on at
    Error: The record in table Sales Price already exists. Identification fields and values
    Hi, 
    This is key setup inside sales price table extension:
     
     
    This is the list of keys inside sales price table:
    May i know how to add key? because when i add key and include region field in table extension, the error still there. How to add and make sure the validation include the region field?
     
    Thanks.
     
    Regards,
    Aliff
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 3,926 Super User 2024 Season 2 on at
    Error: The record in table Sales Price already exists. Identification fields and values
    You would need to add a new Key, that includes the new field, otherwise it is just an extra field, and the same validation exists, that the records cannot have duplicates, where all values in key fields are the same.
  • MR-29040713-0 Profile Picture
    MR-29040713-0 7 on at
    Error: The record in table Sales Price already exists. Identification fields and values
    Hi Mohamed,
     
    This is the table extension customization done in sales price table, simple one just to add new field regionccode from table region:

     
    and this is the customization that i add the field in table line in that page: 
     
     
    Regards,
    Aliff
     
  • Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,531 Super User 2024 Season 2 on at
    Error: The record in table Sales Price already exists. Identification fields and values
    Hi,
     
    Can you please share with us the customization on sales price table ?
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans