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

Import-D365Bacpac -ImportModeTier2 get an error #49

Closed
PaulHeisterkamp opened this issue Sep 13, 2018 · 7 comments
Closed

Import-D365Bacpac -ImportModeTier2 get an error #49

PaulHeisterkamp opened this issue Sep 13, 2018 · 7 comments

Comments

@PaulHeisterkamp
Copy link
Contributor

If you want to use Import-D365Bacpac -ImportModeTier2 you will receive the follwing error:
Import-D365Bacpac : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1

  • Import-D365Bacpac -ImportModeTier2
  •   + CategoryInfo          : InvalidArgument: (:) [Import-D365Bacpac], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,Import-D365Bacpac
    
@Splaxi
Copy link
Collaborator

Splaxi commented Sep 13, 2018

Could you share the entire cmdlet and parameters you executed?

Just replace sensitive information with dummy values...

@PaulHeisterkamp
Copy link
Contributor Author

You will get the error if you execute only Import-D365Bacpac -ImportModeTier2, so there is no question for the mandatory parameters.
The full command you used is the following:
Import-D365Bacpac -ImportModeTier2 -BacpacFile "XxxxX" -NewDatabaseName "XxxxX" -DatabaseUserName sqladmin -DatabaseUserPassword "XxxxX" -AxDeployExtUserPwd "XxxxX" -AxDbAdminPwd "XxxxX" -AxRuntimeUserPwd "XxxxX" -AxMrRuntimeUserPwd "XxxxX" -AxRetailRuntimeUserPwd "XxxxX" -AxRetailDataSyncUserPwd "XxxxX"

@Splaxi
Copy link
Collaborator

Splaxi commented Sep 13, 2018

On its own this cmdlet doesn't make sense
Import-D365Bacpac -ImportModeTier2

Did you expect to be prompted for the bacpac file path or did you put that in, like this:

Import-D365Bacpac -ImportModeTier2 -bacpac "c:\temp\config.bacpac

Just trying to make sure you share the exact command you executed when you got the error.

@PaulHeisterkamp
Copy link
Contributor Author

Ahh now a got it. The parametername for the bacpac file path has been changed from -BacpacFile to -bacpac

@Splaxi
Copy link
Collaborator

Splaxi commented Sep 13, 2018

Yeah, we are trying to simplify stuff.

Still learning how to name the parameters.

Sorry for the inconvenience we caused!

@Splaxi
Copy link
Collaborator

Splaxi commented Sep 13, 2018

Will close the issue next week if you don't make any updates.

@PaulHeisterkamp
Copy link
Contributor Author

Thanks Mötz! You can close the issue now...

@Splaxi Splaxi closed this as completed Sep 13, 2018
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

2 participants