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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

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

(1) ShareShare
ReportReport
Posted on by
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
    on at
    Upgrade from v14 to v25 error in command Sync-NAVApp finalextension (Task 14)
    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..

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,568

#2
Sumit Singh Profile Picture

Sumit Singh 2,536

#3
YUN ZHU Profile Picture

YUN ZHU 2,015 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans