Questions tagged [packaging-2]

Packaging 2 is reimagining how our Enterprise Customers and Partners can organize, distribute, deploy and manage Apps and Metadata on Salesforce Platform. It is part of Salesforce DX and works in tandem with other DX technologies like CLI and scratch orgs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Package Creation fails due to components in an unrelated package

I'm trying to set up a package and when creating, I get errors related to code from the default directory (not the one I'm trying to create the package for). Structure could be (simplified, the ...
Doug's user avatar
  • 773
4 votes
2 answers
274 views

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

I have an obscure error when installing a 2GP beta package about a component I don't expect to be the in the package. Is there a way to list the contents of a package given just a package version Id ...
Keith C's user avatar
  • 135k
2 votes
1 answer
742 views

Field level security pain in Apex tests when using packaging 2

In line with current security standards, we use with security_enforced extensively in our code. When doing CI (Continuous Integration) builds or working interactively we use sfdx force:user:permset:...
Keith C's user avatar
  • 135k
4 votes
2 answers
411 views

Error when generating package version with values in account standard picklist

I have a couple of values on the Account's Type field in a managed package. A couple of days ago I generated a package version successfully, but now when generating a new version I'm getting this ...
Renato Oliveira's user avatar
1 vote
1 answer
1k views

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

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. ...
John Gibbons's user avatar
6 votes
1 answer
611 views

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

I have the following issue with the Second Generation Package, I have this Apex class: global with sharing class TestClass { global virtual class B { } global class C1 extends B { } ...
Louis Bompart's user avatar
2 votes
1 answer
947 views

Any gotchas using sfdx force:package:version:create --skipvalidation?

Using sfdx force:limits:api:display, our results include: NAME REMAINING MAXIMUM ─────────────────────────────────────────── ───────── ───────── ...
Keith C's user avatar
  • 135k
8 votes
0 answers
85 views

How can soft managed package dependencies be handled in packaging 2?

We have a managed package under development that makes significant use of dynamic SOQL and the map-like methods of SObject so the package can work with multiple "other" managed packages, and those ...
Keith C's user avatar
  • 135k
2 votes
0 answers
51 views

Getting "Not available for deploy for this organization" when creating a package version with translations. Is there a particular reason? [duplicate]

I'm getting the following error running the command to create a new version of my package. In this version I just added the translations for Brazilian Portuguese. ERROR running force:package:...
Renato Oliveira's user avatar
1 vote
0 answers
73 views

Salesforce Package 2nd generation - PlatformCachePartition - AllocatedCapacity has not been assigned

We have a package (second generation) which has a platform cache partition. The current code of this partition is like: <?xml version="1.0" encoding="UTF-8"?> <PlatformCachePartition xmlns="...
Diéffrei Quadros's user avatar
0 votes
1 answer
94 views

Add Individual Object in unlocked package

Does anyone know if Individual Object is supported in Unlocked Packages? I tried to look in the list of available features, similar to what is necessary for Person Accounts, but I did not find ...
Ivano Guerini's user avatar
13 votes
1 answer
3k views

SFDX Second Generation Packaging - Managed Package questions

Looking at second generation packaging for managed packages and am a bit confused on feature parity with 1st gen with regards to managed packages.. Primary concern is that things are set up correctly ...
Eric's user avatar
  • 54k
5 votes
1 answer
643 views

How's the 2nd generation packaging today?

I am thinking of using the 2nd generation packaging for my project for automation. I'm wondering if it's already ready for production use. What are the limitations? When will it go GA?
rrey's user avatar
  • 107
2 votes
0 answers
55 views

Using Packaging 2 can I reference a non namespaced field from a namespaced package

So, we're trying to convert out metadata into packages and namespaces, and it's proving to be difficult. Right now we have 2 different domains and we've created a namespace for each of those domains (...
Ben Naylor's user avatar
1 vote
0 answers
258 views

Rename a custom object from package using SFDX/Packaging 2

I'm trying to rename a custom object I created as part of a managed package I created with packaging 2/SFDX. I would also be happy with deleting it and creating a new one. The problem I'm running ...
James van Dyke's user avatar
4 votes
1 answer
164 views

Remove property from metadata using packaging 2

We're using packaging 2.0 (SFDX) to develop and create our package, but have made a mistake and wound up with <externalSharingModel>ReadWrite</externalSharingModel> in a custom object. ...
James van Dyke's user avatar
9 votes
1 answer
2k views

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

It seems like it should be simple, but I have googled this and failed. I'm writing a project using Packaging 2 in sfdx, and it depends on an old managed package. I've installed that package into my ...
Aidan's user avatar
  • 13.5k