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, ...
Suggested Answer

How to resolve error when using dataverse archive long term retention

(3) ShareShare
ReportReport
Posted on by 211
Hello,
 
I'm exploring the long term retention functionality for general ledger transactions in my organisation. I get the error An error occurred while creating the long term retention job. The given key was not present in the dictionary. when trying to run a retention job. I'm unsure what that means or where to go next. Any advice would be appreciated.
 
Thanks,
Michael
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at
    Hi Michael,

    Can you elaborate on the steps you performed exactly before you get this error? Have you also followed all steps and do you meet the prerequisite requirements as listed in the documentation? Set up and manage archive data in finance and operations apps - Finance & Operations | Dynamics 365 | Microsoft Learn
  • MBates237 Profile Picture
    211 on at
    Hi André,
     
    Sure
     
    1. Support partner enabled license key
    2. Updated Finance and operations virtual entity
    3. Updated Dynamics 365 finance and operations platform tools
    4. Installed Dynamics 365 Archive with Dataverse long term retention
    5. Set the environment to be a managed environment
    6. Enabled Archive with Dataverse long term retention in feature management
    7. Refreshed on General ledger within the Archive workspace
    8. Created a retention job on a legal entity marked "Ready" within General ledger
    9. Received error
     
    Although I received the error, a job seems to have been created
     
     
    But as of yet I cannot see any history data
     
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at
    Hi Michael,

    As a job has been created, please check if all is working OK. I have used the feature where I didn't have this error in my environment. 
  • MBates237 Profile Picture
    211 on at
    Thanks André, the job has been running over the weekend and there seems to have been no change.
     
     
     
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    14,679 Super User 2025 Season 2 on at
    Hi Michael,
    Please check out the following TechTalk video on this functionality to ensure you’ve followed the required prerequisites, such as activating the feature and closing the periods before archiving data:
    https://www.youtube.com/watch?v=E0_u8WscIO0&ab_channel=MicrosoftDynamics365Community
  • CU06061003-0 Profile Picture
    21 on at
    Hello Everyone,

    I'm working on archiving data using Dataverse long-term retention. I've completed all the prerequisites and setup, and I've scheduled the archival job for inventory transactions. However, the job is stuck in the 'Pending move to history' state. Can someone please guide me on how to proceed?

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
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans