web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Error message in Position Duration

(1) ShareShare
ReportReport
Posted on by 428
Hi,
 
I am updating 'Activation' and 'Retirement' in Position Duration.
All position IDs are unique right now.
 
However, I got the error message: Cannot create a record in Position durations (HcmPositionDuration). Insert not supported with the values specified for 'Activation' and 'Retirement'. New record overlaps with multiple existing records.
 
In some records, I got another error message: Cannot create a record in Position durations (HcmPositionDuration). Invalid value specified for 'Retirement'. It cannot be greater than or equal to the 'Retirement' of the first record.
 
Has anyone know the cause?
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    Error message in Position Duration
    Hi STP,
     
    Can you tell us how you are trying to update these position details? Are you importing records, do you have a custom X++ script, or some other method?
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Error message in Position Duration
    Hi,
    Similar problems have been raised before on the forum and solutions have been found, you can refer to these two old threads:
    Best regards,
    Kevin
  • Suggested answer
    Waed Ayyad Profile Picture
    8,961 Super User 2025 Season 2 on at
    Error message in Position Duration
    Hi,
     
    This table is valid time state table and you should know to update it, you should specify the ValidTimeStateUpdate value, and also make sure that you don't break the key on the table.
     
    You can read more about it on the below links:
     
    I would recommend that you use the same code of the Activation and retirement buttons from position form on your code.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • STP Profile Picture
    428 on at
    Error message in Position Duration
    @Andre, I am working on the data migration. I used Data management to upload 'Position Duration'.
     
    @Kevin, I am not a developer, I used Data management to upload 'Position Duration'. I checked the data through data browser.
    All records have ValidFrom and ValidTo, however, the system interface doesn't show the date.
    e.g. P-000019 has ValidFrom and ValidTo, however, the user interface doesn't show 'Activation' and 'Retirement'.
  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    Error message in Position Duration
    Thanks for your reply, STP.
     
    Do you get this error when inserting records where no positions were loaded? Or do you have an issue when updating records (the second time importing a sheet containing changes)?
  • STP Profile Picture
    428 on at
    Error message in Position Duration
    @Andre,
    Import sequence was 'Base position' > 'Position detail' > 'Position duration'.
    I got these error message when I imported 'Position duration'.
  • André Arnaud de Calavon Profile Picture
    299,403 Super User 2025 Season 2 on at
    Error message in Position Duration
    Hi STP,
     
    Can you try using only the entity Positions (HcmPositionEntity)? 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,933

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 537 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans