Error applying BT2020 CU6

Klashorst, Marc van de 5 Reputation points
2025-02-14T07:25:43.9133333+00:00

I'm trying to apply BT2020 CU6 to our servers, but I run into this error, and I have no clue where this goes wrong since it fails in one of the executables that comes with the update, not one of the SQL scripts:

Information: Remove tracking profile for assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".

Error: SQL exception: "Cannot find either column "dbo" or the user-defined function or aggregate "dbo.dpl_fn_CountOrphanedProperties", or the name is ambiguous."

I seem to be the first person on the internet to run into this issue, but maybe here somebody has a clue? Running the failing CAWrapper command from the command-line gives the same result.

Full context from the upgrade log:
[02/13/25 10:28:12] Apply patch: Server="OTD-VSW-APL-039\SQLBTSDEV", Database="ont_BizTalkMgmtDb", Script="C:\ProgramData\Microsoft\E-Business Servers Updates\Updates\Uninstall5043408\CAWrapper.exe".

[02/13/25 10:28:12] "C:\ProgramData\Microsoft\E-Business Servers Updates\Updates\Uninstall5043408\CAWrapper.exe" 3 3.13.798.0 OTD-VSW-APL-039\SQLBTSDEV ont_BizTalkMgmtDb EXE "BtsDeploySystemAssemblyTask.exe /assembly:Microsoft.BizTalk.GlobalPropertySchemas" HRESULT=0

[02/13/25 10:28:12] Creating Process to execute script: "C:\ProgramData\Microsoft\E-Business Servers Updates\Updates\Uninstall5043408\CAWrapper.exe" 3 3.13.798.0 OTD-VSW-APL-039\SQLBTSDEV ont_BizTalkMgmtDb EXE "BtsDeploySystemAssemblyTask.exe /assembly:Microsoft.BizTalk.GlobalPropertySchemas" HRESULT=0

[02/13/25 10:28:20] Execution of Script "C:\ProgramData\Microsoft\E-Business Servers Updates\Updates\Uninstall5043408\CAWrapper.exe" 3 3.13.798.0 OTD-VSW-APL-039\SQLBTSDEV ont_BizTalkMgmtDb EXE "BtsDeploySystemAssemblyTask.exe /assembly:Microsoft.BizTalk.GlobalPropertySchemas" failed. HRESULT=0x80004005

[02-13-25 10:28:12] CAWrapper: Argument count: 6

[02-13-25 10:28:12] CAWrapper: cuNum: 3, btsVer: 3.13.798.0, servername: OTD-VSW-APL-039\SQLBTSDEV, databasename: ont_BizTalkMgmtDb, command: EXE

[02-13-25 10:28:12] CAWrapper: cmdArg#0: BtsDeploySystemAssemblyTask.exe /assembly:Microsoft.BizTalk.GlobalPropertySchemas

[02-13-25 10:28:12] CAWrapper: Entering isDbVersionLower

[02-13-25 10:28:12] CAWrapper: Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ont_BizTalkMgmtDb;Data Source=OTD-VSW-APL-039\SQLBTSDEV

[02-13-25 10:28:12] CAWrapper: No DB Version info found so assuming DB Version is lower.

[02-13-25 10:28:12] CAWrapper: DB Version in OTD-VSW-APL-039\SQLBTSDEV, ont_BizTalkMgmtDb is lower so need to run command.

[02-13-25 10:28:12] CAWrapper: Entering callEXE

[02-13-25 10:28:12] CAWrapper: Calling BtsDeploySystemAssemblyTask.exe with args /assembly:Microsoft.BizTalk.GlobalPropertySchemas

******************************* Processing Microsoft.BizTalk.GlobalPropertySchemas migration from Registry to Database *******************************

Server = OTD-VSW-APL-039\SQLBTSDEV Database = ont_BizTalkMgmtDb

Taking Backup of tables

Getting Id of Microsoft.BizTalk.GlobalPropertySchemas

Old Id of Assembly : 1

Clearing table [dbo].[bts_libreference]

Clearing table [dbo].[bts_itemreference]

Marking Microsoft.BizTalk.GlobalPropertySchemas as Non-System Assembly.

Executing BtsTask

Microsoft (R) BizTalk Application Deployment Utility Version 3.13.717.0

Copyright (c) Microsoft Corporation. All rights reserved.

Information: Adding resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") to application "BizTalk.System"...

Serialized BizTalk assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from "D:\Program Files (x86)\Microsoft BizTalk Server\Microsoft.BizTalk.GlobalPropertySchemas.dll".

Information: Validating resources (count=1)...

** Validating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")...*

Information: Performing change requests...

Information: Calling BeginTypeChangeRequest for all selected resource types...

PerformingBeginChangeRequest

Updating resource (-Type="System.BizTalk:BizTalkAssembly" -Luid="Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") in store.

Information: * Performing change request on type "System.BizTalk:BizTalkAssembly" (count=1)...

Information: Reading binding information for assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".

Information: Successfully selected binding information.

Information: Saved binding information to XML file "C:\Users\tab.klam2809\AppData\Roaming\Microsoft\BizTalk Server\Deployment\BindingFiles\Microsoft.BizTalk.GlobalPropertySchemas_3.0.1.0_neutral_31bf3856ad364e35.BindingInfo.xml".

Information: Assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" is not used by any other assemblies. Skipping pre-update operations.

Information: Updating assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"...

Information: Reading binding information for assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".

Information: Successfully selected binding information.

Information: Saved binding information to XML file "C:\Users\tab.klam2809\AppData\Roaming\Microsoft\BizTalk Server\Deployment\BindingFiles~Microsoft.BizTalk.GlobalPropertySchemas_3.0.1.0_neutral_31bf3856ad364e35.BindingInfo.xml".

Information: Updating binding information.

ConnectionString="Data Source=OTD-VSW-APL-039\SQLBTSDEV;Initial Catalog=ont_BizTalkMgmtDb;Integrated Security=Tru HRESULT=0 e;Enlist=True;Application Name=Microsoft.BizTalk.ApplicationDeployment.Engine"

Information: Updating send ports, send port groups, and receive ports...

Information: Updating parties and enlistments...

Information: Updating orchestration bindings...

Information: Successfully updated binding information.

Information: Successfully updated schedule Information (if required).

Information: Remove server="OTD-VSW-APL-039\SQLBTSDEV" database="ont_BizTalkMgmtDb" assembly="C:\Users\tab.klam2809\AppData\Local\Temp\BT\PID3924\BizTalkAssembly\ab635739269b8968f90509a0f8a3bf48\Microsoft.BizTalk.GlobalPropertySchemas.dll"

Information: No started orchestrations.

Information: Remove tracking profile for assembly "Microsoft.BizTalk.GlobalPropertySchemas, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".

Error: SQL exception: "Cannot find either column "dbo" or the user-defined function or aggregate "dbo.dpl_fn_CountOrphanedProperties", or the name is ambiguous."

Error: SQL exception: "Cannot find either column "dbo" or the user-defined function or aggregate "dbo.dpl_fn_CountOrphanedProperties", or the name is ambiguous."

Information: PerformingEndChangeRequestsWithRollBack

** Performing EndTypeChangeRequest for resource type "System.BizTalk:BizTalkAssembly".*

Error: Failed to add resource(s).

Change requests failed for some resources.

BizTalkAssemblyResourceManager failed to complete end type change request.

SQL exception: "Cannot find either column "dbo" or the user-defined function or aggregate "dbo.dpl_fn_CountOrphanedProperties", or the name is ambiguous."

Command failed with 1 errors, 0 warnings.

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
376 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.