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 :
Finance | Project Operations, Human Resources, ...
Answered

Is it possible to have same RecId between header and line table ?

(0) ShareShare
ReportReport
Posted on by 552
Hi guys,
 
Recently I've been facing weird issue, whereby the RecId in Purchase Order (PurchTable) and its Line (PurchLine), are same. Could this be possible ? Cause all this while as per my understanding, Rec Id is always unique.
Is there any reason or it is just something wrong in my system ? and may I get advice how to check this ?
 
Thanks.
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    It's completely possible, because RecId is a unique ID of a record in a table, not unique ID regardless of a table.
     
    For example, when you create the first record in PurchTable and in PurchLine, both may get the record ID of one.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Your understanding is right. RecId is always unique. But it doesn't mean that a RecId should be unique across all tables in D365. This is unique only at that table. So, this particular scenario can happen and it won't harm anything.
  • Suggested answer
    Layan Jwei Profile Picture
    8,118 Super User 2025 Season 2 on at
    Hi Ken,
     
    Yes that's totally fine and it's a coincidence. PurchTable and PurchLine relates to each other with PurchId and not recid even if recids were similar. Also as Martin and Bharani said, recId is unique per table.
     
    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
  • Ken Manhattan Profile Picture
    552 on at
    Hi all,
     
    Thanks you very much for the explanation. I, honestly just knew this, all this while I thought RecId is unique across the entire tables in the D365 FO system (or shall I say database).  May I know is there any "formal" resource or document from Microsoft mentioned this ? Or some explanation about what is RecId and most importantly stated it is unique in scope of table, but not with other tables.
     
    I tried to google it but unfortunately cannot find any.
     
    Thanks in advance
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    Giving you a "formal" resources may prove difficult, due to briefness of AX/F&O development documentation. Maybe Inside Dynamics AX books have it stated explicitly; unfortunately I'm not at home and can't consult them for you.
     
    But you'll find it discussed at many places and you'll also proofs inside the application (if seeing that you have tables with identical record IDs isn't a sufficient proof for you). For instance, you can see that SystemSequences table holds information about record IDs by table ID.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans