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 :
Small and medium business | Business Central, N...
Suggested Answer

Upgrade from v14 to v25 error in command Sync-NAVApp finalextension (Task 14)

(5) ShareShare
ReportReport
Posted on by 2
I' trying to update BC14 version to BC25.
During Task 14 when execute this command:

Sync-NAVApp -ServerInstance $ServerInstance -Tenant Default -Name "bc14baseapptablesonly" -Version 1.0.0.1
 
this error is displayed:
 
Statement: exec sp_rename N'"dbo"."COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext"', N'TEMP$COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext', N'OBJECT'; IF (SELECT OBJECTPROPERTY(OBJECT_ID(N'dbo."COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext$Key1"'), N'IsPrimaryKey'))=1
EXEC sp_rename N'dbo."COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext$Key1"', N'TempPrimaryKeyIndexb280d', N'OBJECT';
ELSE BEGIN
    DECLARE @KeyName sysname = (SELECT [name] from sys.indexes idx where idx.is_primary_key = 1 and idx.object_id = object_ID(N'TEMP$COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext'));
    exec sp_rename @KeyName, N'TempPrimaryKeyIndexb280d', 'OBJECT';
END
exec sp_rename N'"dbo"."TEMP$COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext"."TempPrimaryKeyIndexb280d"', N'TEMP$COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext$Key1', N'INDEX'
ParentException: NavSqlException (HResult: 0x80131500)
An unexpected error occurred after a database command was cancelled.
ExceptionStackTrace:
   at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ThrowNavSqlException(SqlExceptionAdapter exceptionAdapter, Boolean transactionNoLongerValid, String commandText, Boolean isLastExceptionARollbackCause, Boolean logExceptions)
   at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.MapException(SqlExceptionAdapter exceptionAdapter, String commandText, Boolean isRollbackAction)
   at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ExecuteFunctionWithTraceAsync[T,TState](EventTask task, Func`3 function, String commandText, SqlCommand sqlCommand, Boolean isAdoCommand, TState state)
InnerException:
RootException: SqlException (HResult: 0x80131904)
Either the parameter @objname is ambiguous or the claimed @objtype (OBJECT) is wrong.
Error: The input parameter 'OldName' is not allowed to be null.
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.

 
I've repeated all task multiple times but same error.
Any solution?
I have the same question (0)
  • CU30101423-0 Profile Picture
    2 on at
    Problem is that dbo"."COMPANYNAME$Purchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df$ext is missing because 93456c23-dc9a-4bd3-aa53-83d7bde201df is bc14baseapptablesonly extension guid. So not ext table for this extension..
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,187 Super User 2026 Season 1 on at
    Hello,
     
    The error means a table key rename failed during sync.
    In BC14, open the affected table (e.g., Purchase Header), disable the failing key, then rerun the sync.
    Also, use the latest BC25 CU and verify your DestinationAppsForMigration setup.
     
    Regards,
    Oussama Sabbouh
     
  • CU30101423-0 Profile Picture
    2 on at
    The problem is not an index but a table. It's looking for a table that doesn't exist. In fact, the table [COMPANYNAMEPurchase Header$93456c23-dc9a-4bd3-aa53-83d7bde201df
    ext] doesn't exist because the GUID is the one associated with the bc14baseapptablesonly extension. Instead, the table [COMPANYNAMEPurchase Header$437dbf0e-84ff-417a-965d-ed2bb9650972
    ext] exists, which is associated with the Base Application.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,670 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,056 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 717 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans