Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [2gp]

Questions about second-generation packaging (2GP). Includes the partner-centric feature of Managed 2GP as well as the customer-centric feature of Unlocked Packages.

Filter by
Sorted by
Tagged with
1 vote
0 answers
35 views

Custom SObject is locked with "Admin operation is in progress" after deployment of first portion of metadata and when trying to deploy next one

Our project contains about 30,000 of SF artifacts. Due to the limitation in 10,000 artifacts per deployment bundle, we've split our deployment into chunks to fit into mentioned restrictions, i.e. ...
user avatar
  • 2,713
13 votes
1 answer
383 views

Best practices for breaking 1 GP monoliths into 2GP modules

The wonderful capability to create 2GP Managed Extension Packages on top of 1GP Managed Base Packages is great luck for AppExchange partners that have built complicated and monolithic apps over the ...
user avatar
1 vote
1 answer
23 views

Reorganize files in source of a 2gp package

We have an existing salesforce 2GP package that follow the default directory layout with components in main/default. I would like to break that up into feature folders, but I am not able to move files ...
user avatar
0 votes
1 answer
49 views

Unable to package a digital experience site : In field: PicassoSite - no SiteDotCom named XX found, In field: Network - no Network named XX found

I am trying to create an unlocked package containing a digital experience site but without success, the latest issue that I spent hours trying to solve is that I get the following output : In field: ...
user avatar
  • 55
0 votes
0 answers
13 views

Packaging the TCRM app template

I'm currently working on a 2GP Managed Package that bundles Einstein Analytics (a.k.a. Tableau CRM) artifacts like templates, dashboards, datasets, dataflows. For Map Chart I have custom Map in ...
user avatar
1 vote
0 answers
37 views

"Developer name already exists for custom metadata of this type" while pushing source to scratch org for 2gp managed package

We have an internal (non app exchange) 2gp managed package. The source is composed of a main package and several supporting packages with protected custom metadata. The errors below are from the ...
user avatar
  • 433
3 votes
0 answers
55 views

Packaging Einstein/Tableau artifacts in 2GP Managed Extension fails

I'm currently working on a 2GP Managed Package that bundles Einstein Analytics (a.k.a. Tableau CRM) artifacts like templates, dashboards, datasets, dataflows. When I upload a new version using SFDX ...
user avatar
1 vote
0 answers
29 views

2gp tests are failing with 'No such column' when trying to access current package field dynamically from base package test code

We have our 2gp package B which depends from package A. We've also added new custom field into package B but for custom object from package A, like extending base package object with our own ...
user avatar
  • 2,713
1 vote
1 answer
131 views

2GP Managed Packages don't notify on Unhandled Apex Errors

Other than the official documentation and related SFSE questions indicate the Error reporting of Second Generation Managed Packages (2GP) seems to behave differently that with 1GP. I want to make this ...
user avatar
0 votes
1 answer
47 views

Metadata.Operations.enqueueDeployment namespace error

My Apex code that does a Metadata.Operations.enqueueDeployment of some custom metadata records including in a 2GP managed package worked in a scratch org that had the namespace set, but fails when run ...
user avatar
  • 129k
0 votes
1 answer
41 views

Can you install Unlocked packages into Professional Edition org?

We are trying to install an unlocked package into a Professional Edition org, but its not working. We are getting the error message: Mismatching Versions The AppExchange Application or component you ...
user avatar
  • 8,223
2 votes
0 answers
30 views

Question on permission packaging - does User == System? [duplicate]

This Permission Sets and Profile Settings in Packages document includes a line item: Do they include user permissions? No. No. saying that these User permissions cannot be packaged as part of a ...
user avatar
  • 129k
2 votes
1 answer
76 views

Help with SFDX 2GP release version error: "You cannot install an unlocked package without a namespace into an org with a namespace."

I am trying to release an Unlocked 2GP package that has an Unlocked package dependency (UnofficialSF component), and when SF servers verify the dependencies I get the same error every time: Error: You ...
user avatar
2 votes
1 answer
68 views

2GP dependent managed package creation failing with null explanation message

I have an sfdx-project.json of this form that worked about week ago to create an unpublished version of a package that depends on another package: { "packageDirectories": [ { ...
user avatar
  • 129k
0 votes
1 answer
24 views

Can we add the same remote site settings to two packages with the same namespace?

Is this possible to include the same remote site settings to two packages with the same namespace? I mean, won't this break the installation of these two package into the same org?
user avatar
  • 13.2k
4 votes
1 answer
55 views

How are duplicate components (e.g. label translations) handled in an extension package?

Core managed packages can have extension packages created for them that add functionality. We are considering that approach to support multiple languages so that the translation work can be on a ...
user avatar
  • 129k
0 votes
1 answer
49 views

Protected Custom Label Can't be Removed from Package

I was under the impression that one of the reasons to mark components (such as Custom Labels) as protected is so they can be removed from a Managed Package with little to no fuss as they can't be ...
user avatar
5 votes
1 answer
141 views

Packaging Connected App in 2gp package - CLI says package is deleted?

Throw away account to protect the guilty. I have an ISV app that I'm helping someone attempt to package. One of it's components is a Connected App, and I researched the careful dance described here: (...
user avatar
2 votes
1 answer
26 views

2GP Patching Fails Due to Missing SalesProcess Value Even Though Same Code Packages Fine

We've been trying to patch with 2GP for a few months now but we're constantly hitting errors even when the only change is a comment in an apex class. Many errors were around reports so to try to get ...
user avatar
4 votes
1 answer
54 views

2gp: Package ancestry for patch versions

Let's say we've just released 2.0 version of our 2gp package. And now we're releasing patch versions (one after another), e.g 2.0.1, 2.0.2, 2.0.3 and so on. The question here: is there any difference ...
user avatar
  • 2,713
13 votes
2 answers
269 views

fflib as Second Generation Managed Package (2GP)

So, in a project of mine (a Second Generation Managed Package) I have a dependency on fflib. My initial idea was to include fflib-apex-common and fflib-apex-mocks as 2GPs with the same namespace as my ...
user avatar
  • 261
2 votes
0 answers
68 views

2gp: Problem with adding custom fields to Territory2 object via DX Unpackaged Metadata feature when creating package version

We are developing 2gp which heavily uses Enterprise Territory Management feature. And as part of post install configuration subscribers should manually create some custom fields with predefined names ...
user avatar
  • 2,713
0 votes
1 answer
56 views

Move Production MetaData to Scratch Org

I am taking my first attempt at walking through 2GP. I have a production org (with no data) that I want to package and put on the AppExchange. I have followed these instructions: https://developer....
user avatar
  • 3,177
4 votes
1 answer
69 views

Simulate trusted relationship (kinda @NamespaceAccessible behaviour) for base 1gp package and 2gp extension

We have our huge monolithic 1gp legacy package as well as 2gp extension package. And there are some secret configs (e.g. s3 keys, twillio account creds etc. in protected custom settings) in 1gp ...
user avatar
  • 2,713
0 votes
0 answers
16 views

2GP: the same class name in 2 packages with the same namespace [duplicate]

We have 2(2GP) Packages for example "A" and "B" on the one namespace for example "pkg2". In Package A we have an apex trigger with the name "ContactTrigger" and ...
user avatar
  • 11
0 votes
1 answer
37 views

2gp, 2 dev hubs, 2 repositories, 1 namespace. Will there be ancestry issues?

I have a 2gp, namespaced package working great. My question is, if I want to experiment in a fork of my git repository, wipe out my sfdx-project.json file in the fork, link it to a NEW dev_hub in the ...
user avatar
  • 41
1 vote
1 answer
58 views

2GP Package Information

I am creating 2GP unlocked packages, no issue. I have created a DevHub, completed all my pre requisites (Enabled Dev Hub, 2GP), attached namespace org to the devhub. When I am trying to get the ...
user avatar
0 votes
1 answer
91 views

INVALID_SESSION_ID: force:canvasApp does not load connected app

I am trying to create a 2GP that includes an Aura component which loads a canvas app using force:canvasApp. I have successfully created this aura component in my packaging organisation, by creating a ...
user avatar
0 votes
2 answers
65 views

Why ancestors are required for 2GP?

As long as 2GP have a System Version Control as source of truth, it seems to me that the branching mechanism of SVC would be enough to create versions from another previous version of a 2GP. Having ...
user avatar
  • 833
5 votes
1 answer
143 views

How to create a canvas application displaying a connected app in a 2GP

I am trying to create a 2GP that includes an Aura component, which shows a canvas app using force:canvasApp. I have tested this Aura component by creating it in the developer console. I did this in ...
user avatar
1 vote
1 answer
92 views

SFDX: Having multiple project config files (one per dev hub) and switching between them dynamically when creating package version

We would like to switch between different dev hubs in our sfdx 2gp project. E.g. we have one dev hub representing our BPO org (for major releases) and couple free registered dev hubs to play around ...
user avatar
  • 2,713
2 votes
1 answer
233 views

Tableau CRM Dashboard Packaging with AppExchange Apps

We are working on an AppExchange App which will be an ISV app and not the OEM application. Currently there are few standard reports and dashboards are part of package which can be used by customers ...
user avatar
  • 2,212
2 votes
1 answer
88 views

Extending a picklist with additional values 2GP

I'm creating a 2 GP package packageB which depends on several 1 GP packages. In packageB, I'd like to extend a picklist from packageA, one of the managed packages, with additional values. I tried ...
user avatar
6 votes
2 answers
67 views

How to list one package on both the English and Japanese AppExchange marketplaces?

We are attempting to list our App on the Japanese App exchange. We have successfully listed on the English App exchange; the App has passed its security review recently. (The term "marketplace&...
user avatar
  • 129k
1 vote
0 answers
108 views

Global Value Set is not translated in managed package

I developed a 2GP managed package. I enabled the translation workbench in the package and translated custom fields. These are well working in the organization where the package is installed. I also ...
user avatar
0 votes
0 answers
137 views

2gp: How to debug/fix tests failing ONLY on package version creation

We are trying to create our first major version of new 2gp package and getting some tests failures as result of 'package version create' command. These failures look sort of weird for us (basically ...
user avatar
  • 2,713
1 vote
1 answer
72 views

2GP push error modify managed object

i have the following error when i want to push a 2GP in a new Scrach org force-app\main\default\objects\Country__mdt\fields\Country_Code__c.field-meta.xml Cannot modify managed object: entity=...
user avatar
2 votes
1 answer
144 views

2gp: Should components names be unique across all the packages of the same namespace?

Let's say that we have couple 2gp managed packages all sharing the same namespace. Should all components/classes/pages etc. have unique name across all the packages of the same namespace? Are there ...
user avatar
  • 2,713
4 votes
1 answer
173 views

2GP Workflow and Upgrade Questions

I am having difficulty understanding the 2GP workflow. I have read through the documentation and have watched a number of videos but it is still not clicking for me. I was hoping to have someone point ...
user avatar
  • 3,177
0 votes
0 answers
20 views

Experiences Security warning with custom components

I am getting a security warning in Digital Experiences after packaging my custom components. I am not calling any third party scripts from my components. I tried reducing the Site's CSP settings but ...
user avatar
  • 111
0 votes
1 answer
63 views

Second Generation Packages: ERROR running force:package:version:create: : The object 'Object' of type Settings metadata does not exist

I am getting this error when I create version of a new second generation managed package. The project has simple Apex class without code and dependency on single 1st generation managed package. Are ...
user avatar
0 votes
1 answer
48 views

2GP packaging error: These entities are not supported: [NavigationLinkSet]

I am creating a new package for communities. I have included the communityTemplateDefination/lightning bolt/theme defintion and my NavigationMenu (in the navigation menu folder) but when I package it ...
user avatar
  • 111
1 vote
1 answer
90 views

2GP package dependency version

When configuring sfdx-project.json for 2GP managed package you specify it's dependencies. My package depends on our 1GP managed package. So I specified 1GP package version Id in depencensies. But what ...
user avatar
  • 196
2 votes
2 answers
74 views

Trouble creating a version for 2GP

Following is my sfdx-project.json : { "packageDirectories": [ { "path": "force-app", "default": true }, { "path": &...
user avatar
1 vote
0 answers
126 views

Unable to package Flow with scheduled path

We are trying to add a Flow to a 2GP Managed Package the Flow has a scheduled action. When we run the command: sfdx force:package:version:create .... We get an error message: ERROR running force:...
user avatar
  • 8,223
3 votes
1 answer
80 views

Can objects such as PackagePushRequest be made available in a scratch org?

The question relates to some new API 51 objects that allow second generation packaging push upgrades to be scheduled. Running this script in our Partner Business Org (PBO): List<String> names = ...
user avatar
  • 129k
5 votes
2 answers
201 views

Push upgrade app for second generation packages?

Based on the Scheduling Push Upgrades and the Push a Package Upgrade documentation, while Salesforce UI to schedule push upgrades is available for first generation packages (1GP), for second ...
user avatar
  • 129k
3 votes
1 answer
399 views

How do I package an upgradable Experience Builder Site?

I need to provide an unlocked package containing a customizable "starter kit" for using features of my managed package so customers have an easy starting point to create their own experience....
user avatar
  • 26.7k
0 votes
0 answers
65 views

2GP Managed Package Installation Error: (My_Flow) A flow can’t be triggered by My_Event__e records. Change the object in the Start element

I have a 2PG Managed Package which includes two Flow which use Platform Event as the starting object. When we try and install the Beta package into a Scratch Org it fails with error: (On_My_Flow1) A ...
user avatar
  • 8,223
0 votes
0 answers
23 views

Provider Free Capacity [duplicate]

I've updated the cachePartition metadata of a 2GP package, which has previously passed security review. <platformCachePartitionTypes> ... <allocatedPartnerCapacity>2</...
user avatar