1

When trying to create a package version using:

sfdx force:package:version:create -p "XRA2" -x -w 10 --loglevel=debug

I get an obscure error:

AppSwitcher: An unexpected error occurred. Please include this ErrorId if you contact support: 646587487-854713 (-1465083608)

I cannot figure out how to get any more information in order to pinpoint the problem.

My default is my Partner Business ORG. I can create scratch orgs, upload all the code and run it without errors.

Any help would be appreciated.

John Gibbons

1
  • You would need to contact support for details on the Gack error, but generally speaking, this is the result of one or more missing files (e.g. a tab or object that was not deployed).
    – sfdcfox
    Commented Nov 18, 2020 at 1:52

1 Answer 1

1

I took a look into backend logs and the actual error that's surfaced is

java.lang.IllegalStateException: Module does not exist locally nor does it exist globally, thus cannot resolve the originating org. on id AppSwitcher

This indicates that the metadata from which you are trying to generate the package version is missing proper metadata.

Search for AppSwitcher and delete all the references to it.

4
  • We had to explicitly forceignore the AppMenu and I wonder if this is a similar problem.
    – Phil W
    Commented Nov 18, 2020 at 9:10
  • 1
    Thanks Mohith that fixed the problem, much appreciated. I would guess that it is related to Phil's comment. Commented Nov 20, 2020 at 5:49
  • Where exactly do see the backend logs? I am in similar situation and cant seem to find the solution
    – nSv23
    Commented Jun 7, 2023 at 15:14
  • @nSv23 Only Salesforce support and the Salesforce authorized internal employees have access Commented Jun 8, 2023 at 20:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .