Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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
    8,816 Moderator 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
    6,646 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
    8,816 Moderator on at
    RE: RecId created date time is earlier than preceeding RecId

    community.dynamics.com/.../463953

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans