abbgrade / PsDac

PsDac connects DacFx and PowerShell. It gives you PowerShell Cmdlets with the power of Microsoft.SqlServer.DacFx.

Home Page:https://abbgrade.github.io/PsDac/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install-Package fails on Windows

abbgrade opened this issue · comments

[-] Context Install-DacPackage.Server.DacService.Database.testdb DacPac failed
ValidationMetadataException: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
ParameterBindingValidationException: Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and
then try the command again.
at , C:\Users\s.kampmann\Repos\PsDac\test\Install-Package.Tests.ps1:58
[-] Context Install-DacPackage.Server.DacService.Database.wwi DacPac failed
ValidationMetadataException: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
ParameterBindingValidationException: Cannot validate argument on parameter 'Path'. The argument is null or empty. Provide an argument that is not null or empty, and
then try the command again.
at , C:\Users\s.kampmann\Repos\PsDac\test\Install-Package.Tests.ps1:76

todo check if linux is affected

First issue is fixed.

Now fails with

[-] Invoke-SqlPackage.SqlInstance.Publish.Publish 16.91s (16.91s|1ms)
RuntimeException: SqlPackage exit code 1; err: 'Error SQL72014: .Net SqlClient Data Provider: Meldung 596, Ebene 21, Status 1, Zeile 0 Cannot continue the execution
because the session is in the kill state.
*** Das Paket konnte nicht bereitgestellt werden.
Error SQL72045: Fehler bei der Skriptausführung. Ausgeführtes Skript:
CREATE TYPE [Website].[OrderLineList] AS TABLE (
[OrderReference] INT NULL,
[StockItemID] INT NULL,
[Quantity] INT NULL,
INDEX [IX_Website_OrderLineList] ([OrderReference]))
WITH (MEMORY_OPTIMIZED = ON);
[Description] NVARCHAR (100) NULL,
Error SQL72014: .Net SqlClient Data Provider: Meldung 0, Ebene 20, Status 0, Zeile 0 Für den aktuellen Befehl ist ein schwerwiegender Fehler aufgetreten. Löschen Sie eventuelle Ergebnisse.
Error SQL72045: Fehler bei der Skriptausführung. Ausgeführtes Skript:
CREATE TYPE [Website].[OrderLineList] AS TABLE (
[OrderReference] INT NULL,
[StockItemID] INT NULL,
[Description] NVARCHAR (100) NULL,
[Quantity] INT NULL,
INDEX [IX_Website_OrderLineList] ([OrderReference]))
WITH (MEMORY_OPTIMIZED = ON);'.
at Invoke-SqlPackage, C:\Users\s.kampmann\Repos\PsSqlLegacy\src\Public\Invoke-SqlPackage.ps1:314
at , C:\Users\s.kampmann\Repos\PsSqlLegacy\test\Invoke-SqlPackage.Tests.ps1:34

can be reproduced without DacFx with SqlPackage

maybe change the sample project

duplicate of #13