Questions tagged [second-generation-packaging]

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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
139 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
27 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
26 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
54 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
15 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
92 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
27 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
74 views

Does 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
66 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
32 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
83 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
90 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
97 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
28 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
31 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
0answers
113 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
1answer
70 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
22 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
164 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
67 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
138 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 ...
3
votes
2answers
319 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
156 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
18 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:...
5
votes
1answer
834 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
70 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
0answers
79 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
144 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 ...
4
votes
3answers
314 views

Second-Generation Managed Package Security Review

Generally, the question stands as what steps need to be done in order to send 2-nd generation managed package for security review. Current conditions: I have developed 2-nd generation managed ...
4
votes
0answers
39 views

Extending metadata xml without overwriting in org

I'm creating a 2GP managed packaged that adds a custom tab to the Service Console. While developing in a scratch org, the metadata pulled into my project includes a customised version of the Service ...