duplicate key in object 'dbo.TRSRCFIN'.

G
Gün Göksu 👤 Member for 21 years 2 months

Hi everyone,

I am working on a system running MSSQL and P6 EPPM v15.2.

Trying to import a schedule backup in XML form with baseline into the database through P6 client.

SEVERE: DBEngine.executeUpdate: Violation of PRIMARY KEY constraint 'pk_trsrcfin'. Cannot insert duplicate key in object 'dbo.TRSRCFIN'. The duplicate key value is (150, 6275459).

This prevents me from importing the backup.

I get the same error on both the production and the backup testing server.

 Anyone encountered this before? a google search and an oracle support search did not turn anything usefull. Kind regards,Gün

G
Gün Göksu 👤 Member for 21 years 2 months

Thanks for the reply Zoltan,

I have figured as much, and a quick chat with someone who has been here (the office) longer confirms the financial periods have been changed.

I managed to import the XML files by deleting the financialperiod tag.

however, it is interesting that the dbo.TRSRCFIN table is actually empty.

Thanks also for the tip on the patch set.

Kind regards,

Edit: This is the bit I removed. maybe it'l be usefull to someone who stumbles here.

<FinancialPeriod>
<EndDate>2013-06-30T00:00:00</EndDate>
<Name>2013-06-01</Name>
<ObjectId>155</ObjectId>
<StartDate>2013-06-01T00:00:00</StartDate>
</FinancialPeriod>
Z
Zoltan Palffy 👤 Member for 16 years 10 months

The error TRSRCFIN has to with the financial periods for the resource assignments. 

you need Release 15.2.3.0 Patch Set

since it is a xml file I am not sure that you can change it 

try to open the sml in a text editior and do a search for (150, 6275459) it should be in there twice. Whne you find it delete one of the instances. 

Forum Sponsor

Top Posters

Julian Pegg
1 posts
Peter Nagy
2 posts
Raymund de Laza
17 posts
Syed_Asad
0 posts
Tony Greyvenstein
0 posts
Ahmed Al-Jubouri
13 posts
Umar Alvi
3 posts
Sibusiso Mahlalela
0 posts
Michael Samanyayi
3 posts
Simon Gumede
0 posts