-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-D365Bacpag faling ( teste on 0.7.1 07.0.2 and 0.7.3 ) #769
Comments
Could it be that you are taking to many of the outer parameters, via the @PsBoundParameters object? |
Are you maybe mixing this up with some other change I made? I don't think I changed any of the cmdlets involved, but maybe I'm missing something. I think you are right, and #770 should address the immediate issue. However, I would recommend the same approach used in other cmdlets is implemented: Creating a new d365fo.tools/d365fo.tools/functions/clear-d365tempdbtables.ps1 Lines 84 to 88 in b57835b
Otherwise, once a new parameter gets added to one of the four cmdlets from #770 and that new parameter is not also a parameter for |
After I played around with this for a bit, I was able to reproduce the issue. Seems that it only occurs if the @Splaxi I tried your fix and it works! |
@HC-Pin Did you try the newest version with |
No did not test it with Enable-D365Exception |
SQLpackage : sqlpackage-win7-x64-en-162.1.167.1 ( https://aka.ms/sqlpackage-windows )
New-D365Bacpac -ExportModeTier1 -BackupDirectory $AXTempFolder -NewDatabaseName $AxSqlInstance -BacpacFile $NewBackup -DiagnosticFile $AXExportLog
Error:
Get-SQLCommand : A parameter cannot be found that matches parameter name 'EnableException'.
At line:4482 char:34
The property 'CommandText' cannot be found on this object. Verify that the property exists and can be set.
At line:4486 char:5
[09:24:29][Invoke-ClearSqlSpecificObjects] Something went wrong while clearing the SQL specific objects in the database. | You cannot
call a method on a null-valued expression.
Write-PSFMessage : You cannot call a method on a null-valued expression.
At line:4499 char:9
You cannot call a method on a null-valued expression.
At line:4505 char:13
You cannot call a method on a null-valued expression.
At line:4508 char:9
Something went wrong while clearing the SQL specific objects in the database.
At C:\Program Files\WindowsPowerShell\Modules\PSFramework\1.9.310\PSFramework.psm1:5644 char:23
The text was updated successfully, but these errors were encountered: