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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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:
I have the same question (0)
  • Suggested answer
    Shannon Aune Profile Picture
    Microsoft Employee on at

    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.

  • TomR Profile Picture
    10 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 632 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 624

#3
CP04-islander Profile Picture

CP04-islander 301

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans