Questions tagged [unlocked-package]
The unlocked-package tag has no usage guidance.
242
questions
0
votes
1
answer
30
views
Is it possible to (Unlocked) Package field encryption settings?
I'm having issues proving whether it is or isn't possible to have field encryption settings packaged as part of an Unlocked Package (with a Namespace) and this encryption be enabled automatically upon ...
2
votes
2
answers
141
views
Flow in Unlocked Package fails as Formula uses no namespace
I created a Namespaced Unlocked package out of that repo.
https://github.com/rsoesemann/salesforce-isv-cockpit/blob/master/force-app/main/default/flows/NotifySlackOnError.flow-meta.xml
It contains a ...
0
votes
1
answer
97
views
Best Practices for Managing Unlocked and Managed Packages in Salesforce Development
I'm new to Salesforce package development, and my team is currently following a package development model that involves both Unlocked and Managed packages. We're facing some challenges with setting up ...
0
votes
0
answers
26
views
DX: Unlocked Package - override packaged formula field locally, but keep packaging the "original" formula field
Package description
I am trying to create an unlocked package (e.g. package1), which adds multiple formula fields to the Opportunity object. Part of those formulas calculate the Opportunity's Revenue ...
0
votes
0
answers
19
views
Package Creation fails due to components in an unrelated package
I'm trying to set up a package and when creating, I get errors related to code from the default directory (not the one I'm trying to create the package for).
Structure could be (simplified, the ...
0
votes
1
answer
22
views
Impact of Unlocked Package still installed and Classes are added to Salesforce org
Background:
There is a salesforce production org that has both an unlocked package with integrationClassOne in it, installed in productive and integrationClassOne is created and deployed into ...
1
vote
0
answers
44
views
Unlocked packages dont support standardValueSets so why is package version creation failing without standardValueSet folder?
I have an unlocked package that has standardValueSet folder and we are able to create versions just fine. As part of technical debt I want to remove standardValueSet folder as it is not packageable ...
0
votes
0
answers
62
views
Working with managed files in Unlocked Packages
I am working on an org where we are building a custom solution on top of a managed package. The managed package provides the base objects and a number of standard fields. I have extended this with ...
1
vote
0
answers
48
views
Use OpportunityLineItemSchedule custom fields in the unlocked package
is it possible to use custom fields from the OpportunityLineItemSchedule object in the unlocked package? We received an error when tried to create a package version
OpportunityLineItemSchedule: ...
1
vote
1
answer
104
views
Address custom field in the unlocked package
is it possible to include custom address fields in the unlocked package? Currently, we received an error "Invalid data type" when tried to create a package version.
0
votes
1
answer
30
views
What is the Remote Access section under Installed Packages for?
I was not able to find any relevant documentation that would explain what the Remote Access section under Installed Packages is for. Please see the image below for illustration:
1
vote
0
answers
131
views
OrgShape for unlocked packages with encrypted fields
OrgShape is a brilliant concept and useful in many ways especially for larger orgs.
Unfortunately, creating unlocked packages fails when a repo has encrypted fields. It also fails while creating ...
1
vote
1
answer
96
views
Can default product quantity of 1 be enabled with Opportunity settings via Metadata API?
From the UI, there is a setting that can be enabled: Setup > Opportunity Settings > When users add a product to an opportunity, insert a quantity of 1
I cannot find a way to enable this via ...
0
votes
0
answers
27
views
Import translation file without using the salesforce interface
I have a question after generating the package of my salesforce application.
In the organization that develops my app, use the translation system, even generate my .xlf file to have the tags you used ...
0
votes
2
answers
120
views
How to bulk remove components from an unlocked package?
As part of this effort Preserving org data when converting orgs from an unlocked package to a managed package version of the same code? I'm looking for a way to remove hundreds of items from an ...
1
vote
1
answer
106
views
Code Coverage requirements for External Services and Flows in Unlocked Packages
I created an unlocked Salesforce package that contains an External Service and an Inactive Autolaunched Flow that calls methods in the External Service. The package does not contain any Apex classes ...
1
vote
0
answers
24
views
Package Version Creation Erroring on BusinessProcess
I have a business process on Case which references some Status values that I'd like to package. I have the CaseStatus values in an unpackaged standardValueSet that is being included via ...
0
votes
0
answers
62
views
How to uninstall Unlocked Package that contains Experience Bundle
How to uninstall the unlocked package that contains Experience Bundle?
Attempt to uninstall fails with the next error
*Digital experience name* could not be removed during uninstall.
I tried to ...
2
votes
1
answer
430
views
Unlocked Packages: How to properly manage upgrades and promotions to release version
We are developing our first unlocked package and I have couple questions re how to properly manage package upgrades, promotion to release version etc., seems like documentation is quite vague about ...
0
votes
2
answers
67
views
How to get rid of different object dependency from unlocked package
I have created unlocked package with all of necessary meta data.
The problem is I've test class which content code with different object fields and to create package it's asking to add those fields in ...
0
votes
1
answer
176
views
How do you properly include metadata in an unlocked package for custom fields that already exist in Production?
When creating an unlocked, second-generation package for a new Lightning Web Component, how should you include the requirement for a custom field to exist if that field already exists in the ...
1
vote
0
answers
50
views
Skip running tests from external Unlocked package
We use Nebula Logger as an unlocked package. During a CI job we create a scratch org and run all local tests:
sfdx force:apex:test:run --codecoverage --resultformat human --wait 60 --testlevel ...
1
vote
1
answer
289
views
Adding Object Settings into a Package.XML
I would like to enable Field History Tracking for the Account, Opportunity, Contact and Lead objects.
I understand that I need to include the Setting's type in the Package.XML and I did so for the ...
0
votes
0
answers
107
views
2GP Version Create command failed and giving ' The object "MemberPlan" can't be created through a flow' error
2GP Version Create command failed and giving ' The object "MemberPlan" can't be created through a flow' error
(1) XYZ_Test: XYZ_CreateMemberPlanRecords (Create Records) - The object "...
0
votes
1
answer
139
views
How to add description to installed package AND how to add description to package version?
When I create an unlocked package, I want to also specify the description for it. How can I do it?
When I create a new package version I use the -e flag to indicate description however I don't see it ...
0
votes
0
answers
129
views
Getting a alot of errors while creating the 2GP Unlocked Package
While creating the Package version after a long wait of 'verifying metadata' it shows me a lot of errors related to Apex classes, objects and their fields that this custom metadata doesn't exist in ...
0
votes
1
answer
143
views
License Management App without being in the AppExchange
Is it possible to receive access to the License Management App without being in the AppExchange?
The scenario would be that I would deploy a managed or unlocked package to a customer environment and ...
1
vote
1
answer
82
views
Related List Error on Package Creation
I have been able to do all the steps in creating an unlocked package,
Authenticate
Retrieve
Convert
But when I go to create the package, I am getting 2 types of errors:
Component [force:...
1
vote
1
answer
407
views
Getting error when generating unlocked package version
I'm trying to create 2nd gen unlocked package version for a Trigger framework which is custom metadata driven. Every time I try to generate a version i'm getting error that custom fields in metadata ...
2
votes
1
answer
67
views
Preserving org data when converting orgs from an unlocked package to a managed package version of the same code?
This is a question about orgs containing a namespaced unlocked package that have been in use for some time so there is lots of valuable data.
The goal is to move to a second generation managed package ...
3
votes
1
answer
749
views
The object "VoiceCall" can't be updated through a flow - When creating a package version
We have stumbled upon The object "VoiceCall" can't be updated through a flow. error when introducing the required metadata for our Service Cloud Voice with BYOT (Bring Your Own Telephony - ...
1
vote
0
answers
56
views
Exception during creation of version of unlocked package: "Field is not writeable: DatedConversionRate.IsoCode"
Trying to create a version of an unlocked package...
sfdx force:package:version:create -p curry42 -d force-app -x --wait 10 -v multi-cur-dev-hub -f config/project-scratch-def.json -c
... I'm getting......
3
votes
1
answer
389
views
Converting application to deploy Using unlocked packages
We are in the process of writing a gitlab pipeline for our application. We have a couple of questions on Unlocked packages vs just using the metadata api and the package.xml to deploy our project.
...
0
votes
2
answers
359
views
Package dependencies
I have a problem with the dependencies in the package and I don't understand why.
sfdx-project.json
{
"packageDirectories": [
{
"path": "force-app",
&...
0
votes
1
answer
2k
views
ERROR running force:package:create: Unexpected end of JSON input
Can someone please help for the below error?
my sfdx-project.json file is as follows:
when I hit the below command I get an error like Unexpected end of JSON input
sfdx force:package:create --name &...
1
vote
1
answer
132
views
Unable to create package version from an unlocked package that has dependancies on another unlocked package (w/ dependancies with a managed package)
Apologies for the long title, but essentially I have an unlocked package (unlockedPackageB) that is dependencies to another unlocked package (unlockedPackageA).
unlockPackageA has classes that refer ...
0
votes
2
answers
902
views
Invalid Cross Reference Id - Sfdx Package w Custom Application
I'm trying to create an unlocked package version using sfdx force:package:version:create that contains Custom App metadata (among other metadata).
However I'm receiving the following error for the ...
2
votes
1
answer
448
views
DX Standard Value Sets not included in unlocked package so dependencies on packages Standard Value Sets are not recognized
We build all our packages as "unlocked" packages.
We have a package called "common". Common holds anything that is related to standard objects, like standard value sets. ie: ...
1
vote
1
answer
662
views
How to know if a sfdx package is a second generation package (2GP)
I have gone trough the documentation about first and second generation packages to figure If our current package is a second generation package. I read the comparisons: https://developer.salesforce....
0
votes
3
answers
133
views
How to remove 2gp package password using SFDX?
Can we able to remove the published package password or remove it?
We have already submitted the package now we need to remove the password how to do it using sfdx.
sfdx force:package:version:update -...
4
votes
1
answer
130
views
Unlocked 2GP - Is unpackaged Setup Object data available for tests?
Background
I'm starting to get serious about breaking my org up into a collection of unlocked packages. I've made a few unlocked packages, but have encountered a bit of a roadblock when it comes to ...
0
votes
1
answer
311
views
Is it possible to create managed package referring to Org's custom objects?
I have a requirement to split project's code into two parts:
Unmanaged part - mostly, it's custom data model. Should be editable in client's org.
Managed part - wrapped in 2GP Managed Package. There ...
0
votes
0
answers
211
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
1
answer
380
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
49
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
389
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
336
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
243
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
378
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
118
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 ...