Questions tagged [unlocked-package]
The unlocked-package tag has no usage guidance.
203
questions
0
votes
0
answers
26
views
Creating Unlocked Package with Apex class that refers a record type
I need suggestions to package an apex class that references record type.
The record type xml refers to many custom fields which do not belong to that package.
When I package this apex class, I end up ...
0
votes
0
answers
23
views
How to downgrade an unlocked 2GP package?
In documentation I am unable to locate the commands or alternative to do it in Salesforce org.
0
votes
1
answer
36
views
Unlocked Package with Dependency in a different folder
In the past I was able to have a base package with its repo in one folder and then in a completely separate folder the app package with its repo. The sfdx force:source:push command would push the ...
0
votes
1
answer
21
views
Unlocked package - Can't package with PesonEmail field
I am unable to package some sObject & Apex classes with SFDX.
I have this error :
No such column 'PersonEmail' on entity 'Account'.
If you are attempting to use a custom field, be sure to, be sure ...
1
vote
2
answers
35
views
Create Unmanaged package with dependencies
I have a commonly used object let's say object A it is being referenced in lookup's and formula fields. I have to create an unmanaged package without including "object A" how should I go ...
0
votes
0
answers
48
views
Deploy LWC component of Unlocked package with namespace from vs code
We have installed the unlocked package(with namespace) into the org.
We are trying to deploy the LWC component through VS code, which is a part of the unlocked package(with namespace). Instead of ...
0
votes
0
answers
33
views
How can I find the dependent packages of a package version?
Given that I have two packages (packageA, packageB) and packageA depends on packageB, I would like that when I release a new version of packageB, I can automatically upgrade the package version Id of ...
0
votes
1
answer
48
views
Unlocked package installation error
Hi there, i am tring to create an unlocked package with skip validation command. after creating the package while installing i am an error
package.xml cannot be a component in managed or unmanaged ...
0
votes
1
answer
40
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 ...
1
vote
2
answers
135
views
Unlocked packages - move or remove a component from a package
I have multiple unlocked packages in my org
I want to remove some of the components from some of the packages and re-organize
I Cannot find a way to do these actions:
remove a component from a ...
-2
votes
2
answers
76
views
What is the recommended tool to start CI/CD for Salesforce development? [closed]
I'm new to this subject, but trying to start on the right foot.
What are the recommended tools to start CI/CD for Salesforce development source version control and SFDX context?
0
votes
1
answer
106
views
force:package:version:promote in CI script not finding package Alias: Subscriber Package Version Id not defined in sfdx-project.json
I am in the process of creating a CI script that uses GitHub actions for the creation and promotion of new package versions.
For this I have created a shell script that is run after test classes have ...
0
votes
0
answers
51
views
SFDX: Issue with 'sfdx force:source:retrieve -n <package name>' command while trying to retrieve unlocked package
I am trying to retrieve an unlocked package from the sandbox. When I try to use 'sfdx force:source:retrieve -n <package name>' command it is throwing below issue
ERROR running force:source:...
0
votes
0
answers
62
views
unlink Custom Label from Unlocked Package
I have a similar issue as the author of this post :
Unlocked package component overridden metadata components in the org
Basically, I generated an unlocked package version (org dependent) that wrongly ...
0
votes
1
answer
158
views
Version Create Error - Profile In Field - No CustomField named found
I ran this command
sfdx force:package:version:create -p MyPackage -d force-app -k test1234 --wait 20 -v DevHub
I get the errors below for the 2 profiles
ERROR running force:package:version:create: ...
0
votes
1
answer
47
views
Missing Organization Feature: MultiCurrency error when trying to create a package version
So, when I'm trying to create a package version, sfdx fails with:
ERROR running force:package:version:create: An error occurred while
trying to install a package dependency, ID 04XXXXXXXXXX: Missing
...
1
vote
2
answers
139
views
How to exclude objects from other packages in sfdx
How to exclude objects from other packages (prefix) in sfdx? Since I created a dependent unlocked package when I add custom fields to objects of the "needed/parent" package when I retrieve ...
2
votes
1
answer
51
views
Risks & Benefits of Installing Someone Else's Unlocked 2nd Gen Package
I'm interested in introducing a GitHub project into our enterprise org. That GitHub project currently offers the tool in both Managed Package and Unlocked Package format. The Unlocked Package format ...
0
votes
1
answer
33
views
Merge installed packages to new org using unlocked packages [closed]
Since unlocked packages are quite new, I'm wondering what their limitations are. For example i want to merge an installed package (in this case the Sumo App) using unlocked packages to a new org. Is ...
1
vote
1
answer
514
views
Can't find Custom Metadata Records in Change Set Components
I have Custom Metadata Records, the Type being in an unlocked package, which I want to add to an Outbound Change Set.
I have all Custom Metadata Types enabled for my Profile (even necessary?), but ...
0
votes
2
answers
158
views
Extrelated-quip route type error installation for Experience Bundle unlocked package
We started getting an error while installing our unlocked package for Experiences last week: "Your site needs a route with route type extrelated-quip. Update your file and try again." We had ...
14
votes
2
answers
661
views
Project structure and modular development best practices
I want to stop using the usual force-app/main/default single folder project structure in order to better organize my projects and decouple dependancies.
While researching about this practice, I found ...
0
votes
1
answer
183
views
Skip test coverage while deploying to sandboxes and production
I would like to deploy to my sandboxes and production a library called fflib; however, I do not want to include the test or run the test code, anyways, it is a library and we will never change the ...
0
votes
1
answer
38
views
Lightning Web Components, How to include a static resource in an unlocked package?
We are wanting to add a static resource file to an unlocked package for a learning project. It is a JS file that we would like to add to the static resources. Can we include that with a package ...
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 ...
1
vote
0
answers
36
views
How to package a custom domain name for Experience (Community)
I have an experience that is packaged in an unlocked package. In production, we are using a custom domain, but we are not using that in the sandboxes. Whenever we deploy the package to production, ...
1
vote
1
answer
36
views
PermissionSetGroups in Unlocked Packages
Is there any restriction to PermissionSetGroups in Unlocked Packages?
saulo_XXXXX@SAULOS-MBP commerciallending % sfdx force:package:version:create \
--package "XXXXXXXX" \
--path force-app \
...
3
votes
1
answer
137
views
Unlocked Packages: permission set names error on creating a package version
When executing sfdx force:package:version:create to create a (namespaced) unlocked package version I am getting the error bellow:
ERROR running force:package:version:create: Multiple errors occurred:
...
0
votes
1
answer
33
views
Why does package version creation care about installed packages in org in certain scenarios and not others?
Package A is installed in Devhub
Some code is taken out of package A and a package B version is created from it (not installed)
Newest package A version is made dependent on the same package B version ...
0
votes
0
answers
19
views
Package create label and fieldset error
I have some package and trying to create new version. In old version there are object.xml with fieldset, but with adding new project (that works in another package) to that package it gives me error ...
2
votes
0
answers
36
views
jsconfig.json Problem in a Package Dependency
I have been trying to build (force:package:version:create) a package first-project which depends on an other package other-project of mine.
I got the following error:
Unexpected file found in package ...
2
votes
0
answers
207
views
Cannot add component to another package because it is installed so how else to move metadata without data loss?
I am trying to take out 3rd party libraries from a large monolith package called package M. These libraries are FFLIB, ApexMocks, ForceDI, and At4DX. Package M also has some code that references these ...
0
votes
1
answer
107
views
How is one to organize metadata under unpackagedMetadata setting specified folder in sfdx-project.json?
I want to build a package version of a third party library (Reltio) but I have a some errors that are popping up when I try to create a package version:
Request in progress. Sleeping 30 seconds. Will ...
3
votes
1
answer
102
views
How to move third party code (FFLIB) out of a unlocked package that has references to FFLIB?
I am trying to break up a large unlocked package (package A) by moving open source libraries to their own package (Package B). Package A has some custom code that references these libraries (FFLIB).
...
2
votes
1
answer
83
views
Unlock Package error: Invalid Type
I install a manage package on my scratch org first, found few issues so I uninstalled and uploaded the same metadata as unlock package to test the code, but when I update any apex class getting an ...
3
votes
2
answers
148
views
Can I distribute unlocked packages for free to my customers to connect to my org?
Can unlocked packages be used to distribute an app to one's customers, as long as provided without fee? (same question but with fees here) Or would this constitute a commercial distribution in the ...
0
votes
1
answer
199
views
Error: This component already exists in PackageX which PackageA depends on. You can't include the same component in both packages
Error: You're trying to include RecordType > NAMESPACE__CustomObject__c.NAMESPACE__Recordtype_Name in Package
MyPackageName 1.X.X. This component already exists in Package null,
which Package ...
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": &...
1
vote
1
answer
628
views
Service Not Available Page in Experience Bundle deployment issues [duplicate]
We are not using the new custom Service Not Available Page in Experience Bundle (as we do not have a CDN enabled). We're getting the following error while trying to install our package:
"Your ...
0
votes
1
answer
103
views
Postinstallation Action in Unlocked Package
To my dismay I find that, according to the documentation, post-install scripts are not supported for Unlocked Packages.
Now I am looking for a (hopefully comparably painless) way to make up for that ...
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....
0
votes
1
answer
49
views
Is it wise to create a unlocked package around a single open source library or to have multiple open source libraries in a sort of open source pkg?
We are breaking up our monolith unlocked package which has the following libraries and custom code:
FFLIB
Force-DI
ApexMocks
Apex Enterprise Patterns
3rd party integrations
Some Inhouse selectors/...
2
votes
1
answer
130
views
Update Lookup filter of Unlock package metadata
Please hear me out before marking this question as a duplicate or downvote.
We are trying to migrate from Unpackage monolith to Unlock packages.
For this, We have decided to split into 3 packages.
...
0
votes
0
answers
42
views
Not able to add public site to unlocked package
I have public site metadata in my local project.
I have created an unlocked package and now I am trying to create a first package version and face an issue:
[Site Name]: The Force.com Site subdomain ...
1
vote
1
answer
245
views
Unlocked extension package version error "Invalid field name" for report metadata
Scenario:
I'm creating an unlocked package that is dependent on 3 other packages:
Package A - Managed base package (1st gen managed)
Package B - Managed extension package (extension of base, 1st gen ...
0
votes
2
answers
82
views
Custom Metadata w Record Ids & Unlocked Packges -> Don't Overwrite Values
We have an unlocked package with some custom metadata records. These custom metadata records contain record ids for data in the org, which are configured by our admins after package installation.
The ...
0
votes
0
answers
43
views
Error extending abstract class from unlocked package
I'm trying to extend an Apex class from an unlocked package (of mine). I was able to declare the Apex Class and save to the org, but when I tried to instantiate an instance of the class in a trigger ...
5
votes
1
answer
63
views
Compiled size of formula field error when using unlocked packages
So I was working on a task to package some metadata using the unlocked packages that I retrieved from an org. Some of the metadata are objects and they have different field types, of them are formula ...
1
vote
0
answers
21
views
Salesforce DX - Getting compilation error for field already specified on "Parent" package
My team and I have been facing an issue when trying to version an unlocked DX package that we have just created. This package, includes only classes, lightning components, and apex pages. Let's call ...
0
votes
1
answer
32
views
Where to place eslintrc.json and jsconfing.json when we use multiple package directories?
Should I have signle jsconfing.json and eslintrc.json in sfdx project that is in fact monorepo or I need separate configurations for each directory/package? What are pros and cons of mentioned ...