BACPAC Error from SQL Using Deploy Database to Microsoft Azure SQL DB Task in SQL Server Mgmt Studi

Copper Contributor

I can see that it is referencing one of my tables, tblEmployees, but I do not know how to fix the issue. Can someone help? Thanks!

 

TITLE: Microsoft SQL Server Management Studio
------------------------------

Could not import package.
Warning SQL72012: The object [GreatDayDatal_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [GreatDayDatal_Log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Error SQL72014: .Net SqlClient Data Provider: Msg 195, Level 15, State 10, Procedure Tbl_Employees_updatemetadata, Line 14 'get_new_rowversion' is not a recognized built-in function name.
Error SQL72045: Script execution error. The executed script:
CREATE PROCEDURE [dbo].[Tbl_Employees_updatemetadata]
@P_1 INT, @sync_scope_local_id INT, @sync_row_is_tombstone INT, @sync_create_peer_key INT, @sync_create_peer_timestamp BIGINT, @sync_update_peer_key INT, @sync_update_peer_timestamp BIGINT, @sync_check_concurrency INT, @sync_row_timestamp BIGINT, @sync_row_count INT OUTPUT
AS
BEGIN
SET @sync_row_count = 0;
DECLARE @nextRowVersion AS BIGINT;
SELECT @nextRowVersion = get_new_rowversion();
DECLARE @was_tombstone AS INT;
SELECT @was_tombstone = [sync_row_is_tombstone]
FROM [dbo].[Tbl_Employees_tracking]
WHERE ([Employee ID] = @P_1);
IF (@was_tombstone IS NOT NULL
AND @was_tombstone = 1
AND @sync_row_is_tombstone = 0)
BEGIN
UPDATE [dbo].[Tbl_Employees_tracking]
SET [create_scope_local_id] = @sync_scope_local_id,
[scope_create_peer_key] = @sync_create_peer_key,
[scope_create_peer_timestamp] = @sync_create_peer_
(Microsoft.SqlServer.Dac)

------------------------------
BUTTONS:

OK
------------------------------

PROGRAM LOCATION:

at Microsoft.SqlServer.Dac.DeployOperation.ThrowIfErrorManagerHasErrors()
at Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass14.<>c__DisplayClass16.<CreatePlanExecutionOperation>b__13()
at Microsoft.Data.Tools.Schema.Sql.Dac.OperationLogger.Capture(Action action)
at Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass14.<CreatePlanExecutionOperation>b__12(Object operation, CancellationToken token)
at Microsoft.SqlServer.Dac.Operation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
at Microsoft.SqlServer.Dac.ReportMessageOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
at Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
at Microsoft.SqlServer.Dac.DeployOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
at Microsoft.SqlServer.Dac.OperationExtension.Execute(IOperation operation, DacLoggingContext loggingContext, CancellationToken cancellationToken)
at Microsoft.SqlServer.Dac.DacServices.InternalDeploy(IPackageSource packageSource, Boolean isDacpac, String targetDatabaseName, DacDeployOptions options, CancellationToken cancellationToken, DacLoggingContext loggingContext, Action`3 reportPlanOperation, Boolean executePlan)
at Microsoft.SqlServer.Dac.DacServices.ImportBacpac(BacPackage package, String targetDatabaseName, DacImportOptions importOptions, Nullable`1 cancellationToken)
at Microsoft.SqlServer.Dac.DacServices.ImportBacpac(BacPackage package, String targetDatabaseName, DacAzureDatabaseSpecification creationDefaults, Nullable`1 cancellationToken)
at Microsoft.SqlServer.Management.Dac.DacWizard.ImportDatabase.DoWork()
at Microsoft.SqlServer.Management.TaskForms.SimpleWorkItem.Ru

 

2 Replies