Questions tagged [second-generation-packaging]

Filter by
Sorted by
Tagged with
0
votes
0answers
25 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 ...
6
votes
1answer
67 views

How are global classes and/or components treated in 2nd Generation Packaging (unlocked and managed)

In 1st generation packaging, a global class cannot be modified after a managed release (and installation). There have been numerous discussions like this one on handling / upgrading / deprecating ...
1
vote
1answer
29 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 ...
0
votes
1answer
20 views

How to add feature based limit in second generation package scratch org?

I am trying to develop a second generation package with a scratch org, I need to add feature based limit parameters, however since scratch org in second gen package don't have the actual package, I ...
1
vote
1answer
46 views

Unhandled errors are not coming to user designated for 2GMP

Apex documentation has contradicting information about Second Generation(2GP) Package Apex Unhandled Exception support. This page states that Apex exception errors don’t trigger email notifications. ...
1
vote
1answer
34 views

How to use .forceignore for scratch org push but not for packaging

I'm trying to package connectedApp using 2nd generation packaging as instructed here: https://salesforce.stackexchange.com/a/325175 However, the special xml file creates a conflict between scratch org ...
0
votes
0answers
27 views

Second-Generation Managed Package with Package.xml

i would like to ask if there is a way to further restrict data which gets into package based on package.xml for example like when retrieving metadata... Basically what I need is to have a git ...
0
votes
0answers
16 views

Is there any way to set the Configure Custom Link in Second-generation managed packages?

Is there any way to set the Configure Custom Link in Second-generation managed packages? I can't find in the documentation any clues or options to get this done
0
votes
1answer
33 views

Which package type will be preferred for ISV?

I am planning to list my app in exchange, As ISV what is the preferred type for Listing. when I try to add my 2gp package for security review it does not link my dependent package. should I have to ...
3
votes
1answer
37 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 ...
9
votes
0answers
312 views

Managed Package error emails behaviour changed?

I have a First-Generation Managed Package that was updated and released for years. It's current version is 6.0. I just recent added a User to the Package page to get error notifications as described ...
0
votes
1answer
82 views

Trying to Package Connected Apps in Second-Generation Managed Packaging

I am fairly new to Salesforce, and currently trying to explore Connected App in 2GP. I have done some reading and came across some posts that is similar to my situation here. Package Connected App ...
4
votes
1answer
104 views

2GP: Package upgrade from patch to next minor version

I have a package version 1.2.0.0 and I've created a patch with some hotfixes which I packaged as 1.2.1.0 (updated the patch version). During packaging of 1.2.1.0 the ancestor version specified is ...
1
vote
0answers
66 views

2GP: How to Upgrade Beta Managed Packages

Is there any way, or is there any plan (safe harbour) to make it possible to upgrade a Beta managed package without needing to uninstall the previous version first?
2
votes
1answer
126 views

2GP: How to set Managed Package Publisher Name

How do I set an App's Publisher Name? Looking at the Project Configuration File for Packages I cannot see anywhere in the sfdx-project.json where it could be added. Using 1GP it was set in the ...
1
vote
1answer
200 views

2GP: ERROR running force:package:version:create: MyApp: Installing an app (MyApp) that has been deleted

I am trying to create a Managed package version. But when I run the command: sfdx force:package:version:create --package "MyApp" --postinstallscript AppInstallHandler.cls -w 10 --...
1
vote
1answer
82 views

2GP: Dependent class is invalid and needs recompilation

I am trying to create a Managed package version. When I run the command: sfdx force:package:version:create --package "My App" --postinstallscript AppInstallHandler.cls -w 10 --loglevel TRACE ...
2
votes
2answers
162 views

2GP Managed Package: Admin Profile changes

Is it possible to package and ship permission modifications to the System Administrator profile in a Managed Package or not? If not, am I right in assuming permissions should be shipped as a ...
0
votes
1answer
63 views

How to Upgrade Second-Generation (2GP) Unlocked Package to Second-Generation (2GP) Managed Package

Is it possible to deploy an Unlocked package to a production org, then upgrade the package to Managed and upgrade the package in the production org?
3
votes
1answer
355 views

2GP Source Push Error: The consumer key is already taken

I am trying to migrate metadata from a Partner Developer org to a Partner Developer scratch org for use with second-gen packaging. I have downloaded the 1GP package, converted the metadata, and now I ...
3
votes
2answers
138 views

Second-Gen Packaging Migration and Winter 21 release

There is a Salesforce Developers YouTube video from Dec 13th 2019: Introducing Managed Second-Generation Packages Which hinted that the Winter 21 release would include: Enabled migration of first-...
0
votes
0answers
15 views

Manage Packages Listing With Dependency?

I am currently building a app to publish in market, done with with my development based on 2gp model, but I am confused on final listing for security review that, Which package needs to be on listing ...
1
vote
1answer
181 views

Code coverage mismatched while 2gp packaging

I am currently trying to deploy my final release package but error stats that i don't have minimum code coverage to promote package. But when I create scratch org and run all test I could see no ...
1
vote
1answer
40 views

Why delete package command not working?

I am trying to delete freshly created package, but error code says delete is not a valid command. But it's available in official document Update Still not working even after installing pre-release ...
1
vote
2answers
33 views

Second Generation Packaging Parter Business Org Question For CI CD

I have a quick question on the best practices for managing the Parter Business Org when developing Second Generation Packages. As Parter Business Org act as the Dev Hub for the second generation ...
2
votes
1answer
287 views

Guidelines on the process of converting the first generation manage package to second generation manage package

We are an ISV and we have a managed package already in app-exchange which clients are already using it for few years. Last year we have migrated our codebase to to sfdx and all are working fine now. ...
1
vote
0answers
47 views

sfdx-project.json for second generation package proper ancestry structure?

Currently my sfdx-project.json looks like this: { "packageDirectories": [ { "path": "force-app", "package": "my package&...
5
votes
1answer
155 views

Anyone having problems creating a scratch org / promoting a package version today (Aug 12, 2020)? I seem to be getting Winter '21 orgs!

Sorry upfront as this is going to be a bit of a rambling question. Today I was creating a package using 2nd Generation packaging and as part of my process I install the new package into a test scratch ...
1
vote
1answer
41 views

Creating a Second Generation Managed Package with configuration link

I am creating a second-generation managed package and Install, After the Installing package there should be a link: which navigates to the lightning component present in the package and sets the ...
2
votes
1answer
339 views

Do tests in unlocked packages execute when deploying unpackaged apex code to production?

I'm sorry for the cryptic title. I'm curious what tests are forced to run when deploying to production, if that production org contains unlocked packages. Lets say we have the following test classes ...
2
votes
1answer
296 views

Second gen package error about a component being a scratch org ancestor? What does this mean?

My sfdx-project.json looks like this: { "packageDirectories": [ { "path": "force-app", "package": "my package", ...
2
votes
1answer
73 views

Second generation packaging: Include same artifact into two or more packages withing same namespace

We are trying to split our huge monolithic 1st generation package into smaller chunks of 2gp packages sharing the same namespace. There are a lot of challenges and tough decisions to make here. But in ...
10
votes
1answer
180 views

System.requestVersion() does not work in Second Generation Packaging

Environment sfdx-cli/7.58.2 win32-x64 node-v12.16.3 API 48 What's going on? When trying to create a managed packaged version with Second Generation Packaging (2GP) -with code check- that contains ...
5
votes
1answer
163 views

Solving error about NavigationLinkSet when packaging a community using 2GP

In a Community that I am trying to package using 2GP with: sfdx force:package:version:create after eliminating several errors I am now getting this one: These entities are not supported: [...
3
votes
1answer
205 views

How to use second generation packaging (2GP) for a community?

We've been running Jenkins builds for a while containing: sfdx force:package:version:create --skipvalidation ... with no problem, but now we are preparing to promote to a release, removing the --...
2
votes
2answers
42 views

Release new version of unlocked package

I have a sfdx-project.json for my unlocked package. Version 1.0.0-11 was promoted. { "packageDirectories": [ { "path": "force-app", "default": true, "...
1
vote
1answer
78 views

SFDX Deploy: How to prevent accidental deploy to my Packaging Org

From VSC, I'm deploying to my Dev Org often. I'm concerned that I may be authorized to my Packaging Org and accidently deploy code there. In theory, the only deploys to Packaging Org should be from ...
3
votes
1answer
393 views

Platform event API name imported in LWC uses “c” instead of “e” as suffix?

I'm trying to make a component in a managed package to subscribe to a certain platform event, and referencing the channel with its API name previously worked: import BATCH_EVENT_NAME from '@...
1
vote
2answers
308 views

Why I am getting error while Promoting Second Generation Package with dependent packages?

UPDATE: Facing the same issue even without package dependency. I am trying to promote a Pkg2 with a dependent package Pkg1. Both packages are 2nd generation manage package in the same namespace. I am ...
1
vote
0answers
28 views

Second Generation Unlocked Packages without Namespace not including components

I'm trying to create a package version for an Unlocked Package with no namespace specified. I can verify this works when running force:package:list and force:package:version:list. I'm including some ...
6
votes
1answer
323 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 { } ...
3
votes
1answer
119 views

Can 2GP Packages be deleted?

Due to limitations with extension packages and SFDX Must have a package installed to push extension code Inability to view debug logs from base when installed in extension SFDX org we have had to ...
3
votes
1answer
256 views

@namespaceAccessible class's properties are not accessible from another package

I am trying to create two second-generation (2GP) packages with the same namespace but running into an issue where one of the packages is not able to access the properties of a class from the other ...
4
votes
2answers
476 views

'ParentId' field missing when deploying ExperienceBundle - 2GP

We are attempting to deploy a community (ExperienceBundle) through an Unlocked Second-Generation Package. The package will create fine but once we install it in an org, we get the following error ...
6
votes
1answer
206 views

Type.forName(..) returns null for Unlocked Package with Spring 20' release

It seems that Salesforce Spring 20' release made public classes part of Unlocked 2GP not accessible when @namespaceaccessible is not mentionned. That has a huge impact. I thought this annotation was ...
2
votes
0answers
19 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:...
7
votes
1answer
1k views

Converting First Generation Managed Package to Second Generation (2GP) Packages

In light of the new Winter '20 release and that 2GP will be Generally Available, it means we'll be able to develop and release managed packages on the AppExchange through the new 2GP processes. In ...
6
votes
1answer
99 views

Nested Unlocked Packages requires Installation of Base Packages?

We're trying to create a nested package structure to keep our code organized. So far, we have a design that looks like this: core ^-- utils | ^---- marketing | ^---- support | ^---...
2
votes
1answer
120 views

Adding a post-install script to a second generation managed package

I'm creating a second gen managed package using sfdx and I'm not sure how to add a post-install script. Most information I've come across involves updating the package from within an org. Is this ...
0
votes
1answer
193 views

Second Generation Package metadata deployment to packaging org

I'm having issues deploying my mdapi output directory to my packaging org. I'm using SFDX and second generation packages. I'm almost considering trying to create a 1GP from my source. Do the following ...