Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

RecId created date time is earlier than preceeding RecId

(0) ShareShare
ReportReport
Posted on by 10

Hello,

Are there any triggers where new rec id's Created date/time is earlier than the preceeding rec id? 

Example is Rec Ids 1,2,3,4,5 created date time is today but 6,7,8,9 are dated yesterday. 


As far as I know ax controls the created date/time and increment of rec id is fixed for any tables. 

The issue is when BI fetches recid for certain created datetime as query, there are missing rec ids in the middle 

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: RecId created date time is earlier than preceeding RecId

    It creates the RecId sequentially, but there is no guarantee that it will sequentially give it to the table. There are cases where it keeps it in the cache and makes jumps.

    You can read it from the article I added above.

    Of course, missing RecIds could be due to the fact that the CreatedDateTime field was disabled for a certain period of time, but in this case the CreatedDateTime value would be null(01\01\1900). This situation that can be understood by examining the records in 3-5 minutes. That's why I didn't include that possibility.

  • Suggested answer
    Hossein.K Profile Picture
    Hossein.K 6,642 on at
    RE: RecId created date time is earlier than preceeding RecId

    Hi,

    No, The rec ids are in order. In your select statement use order by ASC or DSC for rec ids

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: RecId created date time is earlier than preceeding RecId

    community.dynamics.com/.../463953

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: RecId created date time is earlier than preceeding RecId

    No, it's not guaranteed that RecID will go incremental

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