Skip to main content

Notifications

Announcements

No record found.

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

Cannot fix PA01121 with 'Recreate Periodics'

(0) ShareShare
ReportReport
Posted on by 10

I have a timesheet integration that has been working fine until recently.  I am getting the dreaded:

Violation of PRIMARY KEY constraint 'PKPA01121'. Cannot insert duplicate key in object 'dbo.PA01121'. The duplicate key value is (xxxxxxxx , 2020, 0). 

I had a similar issue some time ago with an expense integration.  In that case the problem was in PA00511 and was fixed by running 'Recreate Periodics' 

But with this issue, that utility does not add the missing periods.  

Any ideas on how to add the missing records?  I can write a fast SQL script, but I have to go directly to the DB is there is a GP utility that works.

Thanks

Categories:
  • TomR Profile Picture
    TomR 10 on at
    RE: Cannot fix PA01121 with 'Recreate Periodics'

    Thanks Shannon, I have not had time to revisit this until today.  I don't believe that I ran both the Recreate and the Reconcile functions.  I have a dev environment that I am refreshing as we speak, and will try running both.  

    I will post up a status later in the day.

  • Suggested answer
    Shannon Aune Profile Picture
    Shannon Aune on at
    RE: Cannot fix PA01121 with 'Recreate Periodics'

    Hi Tom,

    Typically running the PA Recreate Periodics followed by the PA Reconcile Periodics will resolve these types of errors. The PA01121 is the Contract Periodic Total master table, so you would expect to see 13 periods for each contract in this table, one for each period (month) and 0 is the summary record. Do you have any custom triggers on the periodic tables that could be interfering with the process? If you are still not able to get this to work, I would recommend opening a support case so that we can trace the process and see if we can determine what might be causing the error.

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,784 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans