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

Does pac solution import --stage-and-upgrade work on new solution import? #1078

Open
FloraYang23 opened this issue Nov 14, 2024 · 1 comment

Comments

@FloraYang23
Copy link

We are running solution deployment in DevOps for Power Platform dev. We found the below code errored out when it is an new import and works if it is an solution upgrade.
pac solution import --path /home/vsts/work/1/FOBDSPNotes-managed/FOBDSPNotes.zip --skip-dependency-check --max-async-wait-time 60 --convert-to-managed false --publish-changes --stage-and-upgrade --async --settings-file /home/vsts/work/1/settings/settings.qa.json

Here is the error we got:
ImportAsHolding failed with exception :Solution manifest import: FAILURE: Cannot create a holding solution for missing base FOBDSPNotes.

--stage-and-upgrade seems to do import and upgrade the solution. If that is not the correct command, what we should use when doing a new import?

@mannybellas
Copy link

If you are importing it for the first time, import it using update (default, no switches). After that you can use --stage-and-upgrade

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