Skip to content
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

attempting to your Invoke-D365FFOAxDBRestoreFromBACPAC.ps1 #4

Open
eqgithub opened this issue Feb 7, 2024 · 0 comments
Open

attempting to your Invoke-D365FFOAxDBRestoreFromBACPAC.ps1 #4

eqgithub opened this issue Feb 7, 2024 · 0 comments

Comments

@eqgithub
Copy link

eqgithub commented Feb 7, 2024

When I run your Invoke-D365FFOAxDBRestoreFromBACPAC.ps1

it throws a error at Switch-D365ActiveDatabase -NewDatabaseName $NewDB -Verbose

upon further digging the bacpac restores but the database is empty of all content which is why it throws the error:

16:11:57][Switch-D365ActiveDatabase] It seems that the new database either doesn't exists, isn't a valid AxDB database or your don't have enough permissions. | Exception calling "ExecuteScalar" with "0" argument(s): "Invalid object name 'dbo.USERINFO'."
Write-PSFMessage : Exception calling "ExecuteScalar" with "0" argument(s): "Invalid object name 'dbo.USERINFO'."
At line:33251 char:9

  •     Write-PSFMessage -Level Host -Message $messageString -Excepti ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (USE [costco_mfg... ID = 'Admin'
      :String) [Write-PSFMessage], MethodInvocationException
    • FullyQualifiedErrorId : d365fo.tools_Switch-D365ActiveDatabase,PSFramework.Commands.WritePSFMessageCommand

2024-02-07_8-17-45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant