Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

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

(0) ShareShare
ReportReport
Posted on by 508
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.
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    Is it possible to have same RecId between header and line table ?
    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.
  • Ken Manhattan Profile Picture
    Ken Manhattan 508 on at
    Is it possible to have same RecId between header and line table ?
    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
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    Is it possible to have same RecId between header and line table ?
    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
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    Is it possible to have same RecId between header and line table ?
    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
    Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    Is it possible to have same RecId between header and line table ?
    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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans