diff --git a/d365fo.tools/functions/import-d365bacpac.ps1 b/d365fo.tools/functions/import-d365bacpac.ps1 index 98389379..7546546d 100644 --- a/d365fo.tools/functions/import-d365bacpac.ps1 +++ b/d365fo.tools/functions/import-d365bacpac.ps1 @@ -363,14 +363,14 @@ function Import-D365Bacpac { else { Write-PSFMessage -Level Verbose "Building sql statement to update the imported SQL database" - $res = Set-SqlBacpacValues @Params -TrustedConnection $UseTrustedConnection + $res = Set-SqlBacpacValues @Params if (-not ($res)) { return } } if ($ExecuteCustomSQL) { Write-PSFMessage -Level Verbose -Message "Invoking the Execution of custom SQL script" - $res = Invoke-D365SqlScript @Params -FilePath $CustomSqlFile -TrustedConnection $UseTrustedConnection + $res = Invoke-D365SqlScript @Params -FilePath $CustomSqlFile if (-not ($res)) { return } }