From dd24718bf38be75040c6d3529acc4a17644f0801 Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Thu, 18 May 2023 09:32:11 +0200 Subject: [PATCH] Issue #3055 --- Bacpac/Restore-BcDatabaseFromArtifacts.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bacpac/Restore-BcDatabaseFromArtifacts.ps1 b/Bacpac/Restore-BcDatabaseFromArtifacts.ps1 index 57ddb70e..7e980cdb 100644 --- a/Bacpac/Restore-BcDatabaseFromArtifacts.ps1 +++ b/Bacpac/Restore-BcDatabaseFromArtifacts.ps1 @@ -63,7 +63,10 @@ try { $ManagementModule = Get-Item -Path (Join-Path $artifactPath[1] "ServiceTier\program files\Microsoft Dynamics NAV\*\Service\Microsoft.Dynamics.Nav.Management.dll") if (!($ManagementModule)) { - throw "Unable to locate management module in artifacts" + $ManagementModule = Get-Item -Path (Join-Path $artifactPath[1] "ServiceTier\program files\Microsoft Dynamics NAV\*\Service\Management\Microsoft.Dynamics.Nav.Management.dll") + if (!($ManagementModule)) { + throw "Unable to locate management module in artifacts" + } } $manifest = Get-Content -Path (Join-Path $artifactPath[0] "manifest.json") | ConvertFrom-Json