Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP2015 (not R2) upgrade

Posted on by Microsoft Employee

I am doing a test upgrade of GP10 to GP2015 for a customer. The installation is being done on a new server. I backed up the GP 10 databases and restored them to SQL Server 2012 on the new server. Changed the DB compatibility level etc. per the transferring GP to a new server doc. Ran dbcc checkdb and dbcc updateusage against the databases. Upgraded from GP10 to GP2013 R2 with no problems. Backed up the databases and proceeded to start the upgrade to GP2015. During the upgrade of the DYNAMICS db in the Load Required Data section, I received the following error -

The stored procedure SynchronizeTableData() of form duSQLAccountSynch: 27Pass Through SQL returned the following results: DBMS: 2601, Microsoft Dynamics GP: 0

The table name showing above the progress bar is ASIEXP86.

I find the following in the dexsql log -

----- Start DEXSQL Log -----

/*  Date: 06/17/2015  Time: 12:31:18
stmt(14532056):*/
BULK INSERT [DYNAMICS]..[ASIEXP86_T] FROM 'C:\Program Files (x86)\Microsoft Dynamics\GP2015\DATA\Temp\ASIEXP86.out' WITH (CODEPAGE = 'ACP', KEEPNULLS, FIELDTERMINATOR = '||', ROWTERMINATOR = '#EOR#\n')

/*  Date: 06/17/2015  Time: 12:31:18
stmt(14532056):*/
exec duAN_SynchronizeTable 'ASIEXP86','ASIEXP86_T','D'
/*
/*  Date: 06/17/2015  Time: 12:31:20
SQLSTATE:(23000) Native Err:(2601) stmt(14532056):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert duplicate key row in object 'dbo.ASIEXP86' with unique index 'AK2ASIEXP86'. The duplicate key value is (0, 1, 0, 0,                ,                ,                                     */
/*
/*  Date: 06/17/2015  Time: 12:31:20
SQLSTATE:(01000) Native Err:(3621) stmt(14532056):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]The statement has been terminated.*/
/*
/*  Date: 06/17/2015  Time: 12:31:20
SQLSTATE:(00000) Native Err:(3621) stmt(14532056):*/
*/
/*
/*  Date: 06/17/2015  Time: 12:31:20
SQLSTATE:(00000) Native Err:(3621) status(54):*/
SWSTATUS DUMP*/

/*  Date: 06/17/2015  Time: 12:42:48
stmt(14532056):*/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_SynchronizeTable]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_SynchronizeTable] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GetTempAndDestColumnInfo]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GetTempAndDestColumnInfo] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GetAccountNumberColumnCandidates]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GetAccountNumberColumnCandidates] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_AccountFieldValue]') and xtype in (N'FN',N'IF',N'TF')) BEGIN drop function [dbo].[duAN_AccountFieldValue] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_AcctSegTrim]') and xtype in (N'FN',N'IF',N'TF')) BEGIN drop function [dbo].[duAN_AcctSegTrim] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_Create_duInserts]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_Create_duInserts] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GenerateInsertStatement]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GenerateInsertStatement] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_Execute_duInsertStatement]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_Execute_duInsertStatement] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GenerateInsert_1]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GenerateInsert_1] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GenerateInsert_2]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GenerateInsert_2] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duCreate_duTempPrimarKeyColumnTable]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duCreate_duTempPrimarKeyColumnTable] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duGetTablePrimaryKeyColumns]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duGetTablePrimaryKeyColumns] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duAN_GenerateJoin]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duAN_GenerateJoin] END if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[duDeleteMatchingRecords]') and OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN drop procedure [dbo].[duDeleteMatchingRecords] END

/*  Date: 06/17/2015  Time: 12:42:51
stmt(14514584):*/
{CALL ..zDP_duLCKF_1(NULL,NULL,NULL,NULL)}
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(37000) Native Err:(2812) stmt(14514584):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'zDP_duLCKF_1'.*/
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(00000) Native Err:(2812) stmt(14514584):*/
*/
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(00000) Native Err:(2812) status(58):*/
SWSTATUS DUMP*/

/*  Date: 06/17/2015  Time: 12:42:51
stmt(14514584):*/
SELECT TOP 25 companyID,INTERID,duWorkstationID,DEX_ROW_ID FROM duLCK ORDER BY companyID ASC ,INTERID ASC
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(S0002) Native Err:(208) stmt(14514584):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name 'duLCK'.*/
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(00000) Native Err:(208) stmt(14514584):*/
*/
/*
/*  Date: 06/17/2015  Time: 12:42:51
SQLSTATE:(00000) Native Err:(208) status(56):*/
SWSTATUS DUMP*/

/*  Date: 06/17/2015  Time: 12:42:51
stmt(14514584):*/
delete from tempdb..DEX_SESSION where session_id = 7

----- End DEXSQL Log -----

Looks like it is trying to insert a duplicate record into ASIEXP86.

The customer has eight or so third party add-ons which I did not upgrading for GP2013. I will do that when I have GP2015 installed.

Any help is appreciated.

Thanks,

Bill

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GP2015 (not R2) upgrade

    After I posted I found another post regarding this. I initially searched on the error message and what I was finding was for older versions of GP. I then re-ran the upgrade producing a dexsql log and got the name of the table. I then searched on the table name and found the other article. The article you pointed me to seems to be a simpler solution. I followed Sarah's article and found two duplicates. GP2015 upgrade is now proceeding.

    Thanks

    Bill

  • Verified answer
    Redbeard Profile Picture
    Redbeard 12,931 on at
    RE: GP2015 (not R2) upgrade

    Bill,

    Here is a link to a post regarding the error you're encountering for 2015 R2. While it is not lost on me you are not upgrading to R2, the error you're experiencing may be addressed by the fixes laid out in this post:

    community.dynamics.com/.../draft-known-upgrade-issues-when-upgrading-to-microsoft-dynamics-gp-2015-r2

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans