Skip to main content
13 votes
Accepted

SFDX Second Generation Packaging - Managed Package questions

Currently the only way I see to register a namespace is to create a developer edition org via the environment hub. You don't need to use the Environment Hub, any Developer Edition with a Registered ...
sfdcfox's user avatar
  • 495k
7 votes
Accepted

Field level security pain in Apex tests when using packaging 2

You can specify permission sets to use for version creation. A snippet is provided in the documentation. "packageDirectories": [ { "path": "force-app", ...
sfdcfox's user avatar
  • 495k
6 votes
Accepted

How's the 2nd generation packaging today?

Second Generation Packages are still in BETA (As of Summer 18 , v43.0) . From salesforce docs As a beta feature, Second-Generation Packaging is a preview and isn’t part of the “Services” under ...
Mohith Shrivastava's user avatar
3 votes

Error when generating package version with values in account standard picklist

This is a known issue in Salesforce. The root cause is that the StandardValueSets are not supported by 2GP but have somehow been added to the package due to a bug in packaging. You can check the ...
Alok Agrawal's user avatar
3 votes
Accepted

Error when generating package version with values in account standard picklist

The Special Behavior of Components in Packages documentation states that: Changes to standard picklists can’t be packaged and deployed to subscriber orgs and picklist values deleted by the developer ...
Renato Oliveira's user avatar
3 votes
Accepted

Remove property from metadata using packaging 2

It's now working again. As said in Chatter, something was fixed on Salesforce side. I had to recreate a new package2 version (again without externalSharingModel), same source as before, but now it's ...
Fabien Taillon's user avatar
2 votes
Accepted

Any way to list the contents of a 2GP (second generation package)?

While I don't think there is a way to see it from the command line, right before installing the package in the browser (from yoursalesforcedomain.my.salesforce.com/packaging/installPackage.apexp?p0=...
tugce's user avatar
  • 2,675
2 votes

Any way to list the contents of a 2GP (second generation package)?

Install the package then go to Setup -> Installed Packages and click on the package name then click the View Components button to see the list of components. (This doesn't solve the problem for the ...
Keith C's user avatar
  • 136k
2 votes
Accepted

How to specify a managed package key in a sfdx-project.json dependencies entry?

Salesforce have responded to this in the Packaging 2 Beta Trailblazer Community: Unfortunately what you're describing is a known outage for Packaging 2 right now. We have work in progress to ...
Aidan's user avatar
  • 13.7k
1 vote

When creating package version in SFDX I get the error: AppSwitcher: An unexpected error occurred

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 ...
Mohith Shrivastava's user avatar
1 vote
Accepted

Gen2 Package, ancestor version creation failing without any code changes for 2GP Managed package

This is been brought to the attention of Salesforce Managed Package team and a bug is raised against this with Internal work item number W-7503352. Please reference this if you ever raise a support ...
Mohith Shrivastava's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible