Questions tagged [unlocked-package]

The tag has no usage guidance.

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

Retrieve Unmanaged package [closed]

I want to retrieve an Unmanaged package from the SF org. Found a very useful video : https://www.youtube.com/watch?v=CUvIuY6l8gM&t=960s, which mentions to use a command: sfdx force:source:retrieve ...
0
votes
1answer
36 views

Remove component from Unlocked Package programmatically

My org is using multiple unlocked packages to organize components by purpose. This has caused the process of package version creation to be incredibly long due to a chain of dependencies. Combining ...
2
votes
1answer
19 views

Create an unlocked package with references to custom fields in target system

i'm trying to create a version of my unlocked package. It contains like 3 sobjects and 2 classes. In my objects i have fields, which are related to other custom objects from the target system. The ...
0
votes
1answer
12 views

Is it possible to overwrite custom fields from an unlocked package

I am creating an unlocked package from a separate Developer edition. In a sandbox we are adding custom fields which at first are not clear if they have to be added to the package to gain speed. Is it ...
0
votes
0answers
30 views

Where can we get appexchange before payment coupon codes?

I am about to submit my app for security review, in payment page i could see coupon code available. I would like to get one. so where can I get one coupon code ? Also from the security review video ...
0
votes
1answer
15 views

Unlocked package is not fully deployed

I have unlocked org-dependet package. There are some layouts on org, for example: Account- layout A, Account- layout B, Account- layout C, Account- layout D, Account- layout E Then I retrieve theese ...
0
votes
1answer
41 views

scratch org Deployment failed

Below is the config file for the sfdx project { "orgName": "Test company", "edition": "Developer", "features": ["MultiCurrency"], &...
2
votes
1answer
67 views

Timeout when polling for Unlocked Package Version Create report

I have an Unlocked Package with many dependencies. Its creating takes more than 30 minutes. My Backend code is polling every 5 seconds using sfdx force:package:version:create:report --json --...
1
vote
1answer
30 views

While using sfdx force:package:version:create -codecoverage get erro: No such column 'SourceOrg' on sobject of type Package2VersionCreateRequest

so for background. We are working for client with SFDX and packaged. We have build 3 packages trough last 2 years. Everything worked fine until today. We have huge development for last 4 months and ...
2
votes
1answer
86 views

Using Apex to mimic semantic string versioning (to validate “increment only” logic to a text field that represents semantic version

Hey versioning experts, Has anyone used Apex to construct a semantic version bumper? Im looking to implement an Apex-driven "versioning" concept to a custom app, functioning somewhat similar ...
0
votes
1answer
22 views

Remove permission to install unlocked packages

is there a specific permission that I can remove from a profile in order to not allow users to install unlocked packages in Prod? I want to keep the possibility to create and update unlocked packages ...
0
votes
0answers
15 views

Strange/Unexpcted behavior with unlocked packages | Trigger Deactivation &/or Sharing Model update in subsequent installation

There is some behavior which I am feeling strange about unlocked packages. Does anyone knows is it really strange or my assumtion/expectation is wrong ? Trigger Deactivation in Subscriber org(Sandbox)...
0
votes
1answer
42 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?
5
votes
2answers
111 views

Permission set is deployed with unlocked package, but is missing permission. What could be the reason?

I am trying to deploy permission set with only one permission included: AllowViewEditConvertedLeads. I've created the unlocked package, and put this permission set there. Then, when I install this ...
1
vote
0answers
50 views

Error “filterlanguage: Invalid value specified: 1.” when trying to create sfdx package version

I have the task of creating a sfdx package that includes various reports and dashboards. Sadly when I tried to create the package version I got this error for a lot of my reports: "filterlanguage:...
1
vote
1answer
34 views

2GP Package Creation - Email Template include error

i have created a 2gp package which contains email template from public classic email template folder. But while installing package it throws error as below
0
votes
0answers
38 views

Getting an error while creating unlocked package with --codecoverage option in salesforce

As per the current requirement new versions of packages can be created only buy running the sfdx force:package:version:create with --codecoverage option, however I am getting an exception related to ...
0
votes
2answers
46 views

Unlocked Package Version Create Failing Using codecoverage CLI parameter

I'm trying to create a version of an unlocked package using the codecoverage parameter, but it's failing at the first line of the first method in the test class. @TestSetup static void ...
1
vote
2answers
44 views

Receiving “no CustomObject named DandBCompany found” when Installing SFDX Unlocked Package

I'm working on publishing a Unlocked Package. I am using a developer org as a devhub and devloping using SFDX, VS Code, Scratch Orgs, etc... I am able to package the code without a problem, but when ...
1
vote
0answers
13 views

Best Pretter Formatting Structure for Unlocked Package structure

I am moving towards an unlocked package structure on the Org I work on. The instance was inherited and did not have any version control so seems like 2 birds with one stone. I've always used Prettier (...
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
154 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 ...
0
votes
1answer
17 views

Can we create an unlocked package in the salesforce unlimited edition?

Can we create unlocked package in the salesforce unlimited edition?
0
votes
2answers
77 views

Create 2GP package version with multiple dependency

I have below JSON file having more than one package dependency link to single package. When a package has single dependency it executed without error but if a package has two dependency I am getting ...
2
votes
1answer
34 views

Error while creating unlocked package

I got a requirement to create second generation managed package with namespace prefix, I created a developer edition, enabled Devhub and created second generation package, but later the requirement ...
1
vote
0answers
75 views

ERROR No subscriber package version found for package id '0Ho<ID>'

We're getting this issue all of a sudden in on-going CICD pipelines(Gitlab). It was working fine till date and suddenly this error is coming with each build trigger Error - ERROR No subscriber package ...
2
votes
2answers
65 views

Consolidate Multiple Manage Packages 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 package creation that Should i need to create single manage package ...
1
vote
1answer
32 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
1answer
48 views

How does one work on two unlocked packages at once?

Say for example I have broken my metadata up by having one package for standard objects, a number of packages for functional groupings of custom objects and a package for apex classes. I'm not clear ...
5
votes
1answer
101 views

new --codecoverage parameter in package build not showing up

I'm running a package build on our packages to get the --codecoverage parameter like so: sfdx force:package:version:create -p myPackage -w 100 -x -v DevHub --json --codecoverage This runs, and ...
2
votes
2answers
139 views

Package installation time is getting *drastically* vary, how to optimize it?

We have unlocked packages with CICD enabled. Sometime those package installation takes 5 mins and sometime goes till 30+ mins. Since I know it had been installed in 5 mins, why its getting weird ...
0
votes
0answers
34 views

How to find out all custom fields, LWC/Aura/VF, apex classes and triggers required in a Lightning Community?

I would like to include a Lightning community (ExperienceBundle, Network and Custom Site) in an unlocked package so as to be able to develop codes using scratch orgs as well as have it in CI/CD ...
0
votes
0answers
93 views

Salesforce DX failing on force:package:version:create: Not in package.xml error

I'm working on a SFDX package within a project that has no dependencies. Every time I create a package version, it fails with the following error: ERROR running force:package:version:create: ...
1
vote
0answers
69 views

Salesforce DX: Unlocked Package: Specifying HEDA/EDA as a package dependency

I am trying to create a package version using Salesforce DX for a package that includes EDA 1.103 as a package dependency, but when I attempt to create a package version, I got the following error: ...
2
votes
1answer
99 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. ...
0
votes
0answers
43 views

Unlocked package - Including field security settings, page layout settings for a standard Salesforce profile to access/view a custom field

I have an unlocked package that adds custom fields to the Contact object. Some of these fields need to be made read-only. In my scratch org, I have modified the Salesforce Standard User profile to ...
1
vote
1answer
67 views

Selecting between 1GP Managed, 2GP Managed, 2GP Unlocked Package

My company needs to be publish a set of Salesforce packages that enable two way integration between Salesforce and a proprietary student registration system. These packages will be installed by ...
0
votes
1answer
113 views

Communities error when building new package version for code coverage

I'm attempting to build a new version of a package by using the --codecoverage switch like so: sfdx force:package:version:create -p myPackageName -w 100 -x --json --codecoverage --loglevel DEBUG ...
4
votes
3answers
195 views

Installing Salesforce EDA (Education Data Architecture) via Salesforce CLI (sfdx)

Problem Need to figure out how to install Salesforce EDA through Salesforce CI in a Scratch org by running sfdx force:package:install so that CI tools can automatically test packages dependent on EDA ...
1
vote
1answer
35 views

How can/should I do unlocked package version management?

I followed this Trailhead module (Build an Automated CI/CD Pipeline with GitLab) and have successfully created an unlocked package that has a CI/CD pipeline. There is this part (in the Trailhead ...
0
votes
1answer
105 views

Error running sfdx force:package:list

Please help, I'm getting errors with the sfdx package list and package version report commands. Other sfdx commands are working fine. ERROR running force:package:list: NamespacePrefix, ...
1
vote
1answer
144 views

Profile with Unlocked package is having issues

I have unlocked package with some profiles. As of now I cloned those profiles from Minimum access - Salesforce and Customer Community Plus Login and it doesn't contain any of the extra permissions. I ...
4
votes
1answer
155 views

Difference between Unlocked vs Second Generation Managed Package

Bear with me, I'm not sure I fully understand what's given in the documentation. I understand the difference between 1GP vs 2GP. From what I read Unlocked Packages are different than Second-Generation ...
0
votes
0answers
26 views

I Can't install my Unlocked package application

I'm trying to build an unlocked package with a custom namespace. I've create a package and a package version. but when i'm installing the package version i got this error: This app can't be installed. ...
1
vote
1answer
133 views

Open Lightning Web Component which belongs to unlocked package

How to open and edit lwc which belongs to unlocked package? In VScode it doesn't displayed and when I go to package in salesforce site code of component is not displayed as well. So VScode doesn't ...
0
votes
1answer
57 views

Can I use unlocked packages to package my managed package code?

We have a managed package let's call it ABC. The requirement is that we want to setup demo orgs for clients but setting up the org with ABC + customization as per client needs for a demo takes up a ...
2
votes
1answer
183 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 ...
0
votes
1answer
108 views

sfdx force:package:version:create gave me erros

Now, I'm creating package version with community, custom object, custom tab, custom application but can't create version with the following errors. How can I solve it? test-unlocked-package git:(...
1
vote
0answers
47 views

Version (and keep) source of dependant Unlocked package in seperate folder

As I detail here I am going to install the external libraries I use when building Managed Packages in scratch orgs using dependencies in the sfdx-project.json being installed in an scratc-org ...
6
votes
3answers
443 views

Organize Managed Package Dependencies with Unlocked Packages

I build Managed Packages (with namespaces) for my ISV customers. I use external libraries and Open-Source frameworks like fflib or apex-domainbuilder and find dependency management gets more ...