Questions tagged [unlocked-package]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
20 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
40 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
48 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
114 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
31 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
31 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: ...
0
votes
0answers
19 views

How to throw AuraHandledException in unlocked and unmanaged package

I have created a lightning component with a controller which throws an exception. This works fine. I added this lightning component to a unlocked package and had to deal with some prefix issues which ...
1
vote
0answers
41 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
45 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
14 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
28 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
33 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
128 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
28 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
44 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
51 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
74 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
21 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
60 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
39 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
49 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
55 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
38 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 ...
5
votes
3answers
217 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 ...
0
votes
1answer
23 views

Full validation in change sets still needed in unlocked package installation?

My team would like to gradually replace change set deployment model with unlocked packages. I did some experiments and found out that installing package in an org is somehow like running partial ...
3
votes
0answers
45 views

sfdx package version create error: CustomizableCampaignInfluence report type is not available

I'm trying to create an unlocked package version with sfdx. The package has components that require custom campaign influence to be enabled in the org, and I have the appropriate setting in my ...
0
votes
0answers
18 views

Unable to create unlocked package on a dev hub org with Pardot installed

My dev hub org has Pardot installed. I have already successfully created a bunch of unlocked packages. The package I am unable to create involves a new custom object with a master-detail relationship ...
0
votes
1answer
32 views

Add custom metadata records to unlocked package [closed]

Like the question says. I'm trying to find a way to add custom metadata records to an unlocked package.
2
votes
2answers
25 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
2answers
85 views

Create an unlocked package - errors

I'm trying to create an unlocked package for objects, fields, layouts, tabs and couple of other metadata. In order to make sure that there is no dependencies with other metadata out of my package, I ...
8
votes
0answers
79 views

Create Profile for External Apps Login licence in Unlocked Package

I created an Unlocked package with Community enabled. Because Apex code references it, I need to package a Profile for the External Apps Login User License. But I don't see this license in my scratch ...
0
votes
0answers
15 views

Unlocked package installation with Person Account and Community enabled

If we have 2 sandboxes and if we enable Person Account and create community in Sandbox1 and create an unlocked package with some components, please let me know if it is a prerequisite to enable Person ...
0
votes
1answer
35 views

Create Unlocked Packages without using Salesforce DX?

Is there any way to create an unlocked package from salesforce ui instead of having to use Salesforce DX? Thanks, Asif K
2
votes
0answers
36 views

How to avoid naming conflicts or collsions with Salesforce unlocked packages

In Java or C# or similar languages there is the package/namespace structure to avoid collisions between class names. With Salesforce unlocked packages where there are multiple projects within a domain ...
1
vote
0answers
23 views

How to use integration tests with unlocked packages?

How integration tests paradigm matches with the multiple unlocked packages in the org? Should one package has it's own unit tests and only UNIT tests (no integration tests)? Is it a good idea to ...
1
vote
1answer
33 views

Adding tab to another unlocked lightning APP

I am trying to assign a tab to the Lightning App, which is part of another unlocked package. However, I am unable to add any tab(standard object or custom objects) to Lightning App. I am getting the ...
0
votes
0answers
42 views

SFDX: Create a version for an unlocked package [duplicate]

I'm trying to create an unlocked package for all custom objects, custom fields, page layouts. Creating the package itself is going well, but when I tried to create a version, it failed with a very ...
2
votes
0answers
38 views

Modifying 1GP Managed components in an Unlocked Package

I would like to make changes to the visible fields of a 1gp Managed FieldSet in my 2gp Unlocked package. My 1gp Custom Object pkg__Object__c contains FieldSets pkg__FieldSet1 and pkg__FieldSet2. My ...
2
votes
1answer
183 views

Running the packaged tests while installing with sfdx:force:package:install

Is there a way to run packaged or org tests when we install a Managed/Unlocked SFDX package to an org using sfdx force:package:install?
3
votes
2answers
126 views

Change version number scheme in sfdx-project.json

For the sake of simplicity, I want to change the default version number scheme of SFDX projects from Major.Minor.Patch.Build to Major.Minor like "versionNumber": "0.1.0.NEXT" to something like "...
0
votes
1answer
31 views

Errors when creating unlocked package version with Apex Territory2 dependencies

Creating an unlocked package version: sfdx force:package:version:create -p MyPackage --apiversion 48.0 -d force-app -x --wait 10 with classes that depent on Territory2 objects returns the following ...
1
vote
1answer
44 views

Unlocked package name changed or package delete option

I have below questions: Can we change the name of a created unlocked package? Also can we delete any unlock package which is already created? Please provide solution if available.
1
vote
1answer
40 views

How to use forceignore to ignore all fields on an object and add exceptions

I am trying to do an ignore on all fields on the object Account and only want to add the custom field Name__c on the object Account. How do I achieve this I tried the following: # Ignore Object **/...
1
vote
1answer
98 views

Enable Account Teams in scratch org definition file

Is there a way to enable Account Teams in a scratch org definition file? I know I can manually enable it in a scratch org via Setup, but in order to create an unlocked package version that contains ...
2
votes
0answers
115 views

Unlocked Package - Modify Custom Metadata Type in Subscriber Org

I created an Unlocked Package that contains a Custom Metadata Type (CMT). When I install this package inside an org, I would like to give access to admins to edit this deployed CMT (e.g. - create a ...
1
vote
1answer
55 views

Unlocked Packages - Install using URL

Is it possible to distribute an unlocked package using an installation URL? Intent is to install the package into a different production org. (assuming the organization has multiple orgs)
0
votes
0answers
67 views

Unable to deploy unlocked packages created with SFDX/CLI

I am unable to deploy unlocked packages created with SFDX/CLI . I am receiving the "The package version is not fully available. If this is a recently created package version, try again in a few ...
1
vote
0answers
100 views

Issue creating unlocked package version with translations (not available for deploy for this organization)

I'm trying to create an unlocked package in API v47 that contains translations (which I think should be supported in unlocked packages) but I'm getting the following error: Error force-app/main/...
3
votes
1answer
149 views

Enable Multiple Languages via knowledgeSettings in Scratch Org Definition File

I'm creating a scratch org definition file (project-scratch-def.json) in order to create an Unlocked Package that will interact with Salesforce Knowledge. I'm currently stuck when I try to add a ...
2
votes
0answers
32 views

How do I use an open source GitHub repo in an unlocked package?

I have recently started exploring unlocked packages. I want to use features from https://github.com/apex-enterprise-patterns/fflib-apex-common in my packages. I could clone the repo and convert it ...