Skip to main content

Questions tagged [unlocked-package]

The tag has no usage guidance.

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

Define the case status for retained cases after merge

I'm looking for the metadata where the status for cases is defined after a merge. Without this the test for our case merge are failing with this error msg: Merge failed. First exception on row 0 with ...
Patrick's user avatar
  • 11
0 votes
1 answer
50 views

Errors "Not available for deploy for this organization" and "Invalid type: AgentWork" when try to create a unlocked package

I've recently started working with Salesforce. I've made an omni-channel application and would like to create an Unlocked package that would deploy my classes, lwc components, and omni configuration. ...
Daeron's user avatar
  • 1
1 vote
0 answers
30 views

Why are my SF CLI deployment errors in other language than English?

I'm trying to build an unlocked package and there are some errors received. I'm not concerned about the issues themselves though, the problem is that they are in German: [...] ...
Przemysław Długoszewski-Tamoń's user avatar
0 votes
2 answers
135 views

Getting error while installing unlocked pacakge

Hi I am trying to learn SFP. I am following steps defined in: https://docs.flxbl.io/sfp/configuring-a-project/setup-salesforce-org#id-2.-install-sfpowerscripts-artifact-unlocked-package I have enabled ...
वरुण's user avatar
3 votes
1 answer
104 views

Moving code from unlocked package back to "happy soup" - how?

We've been experimenting with moving some of our code into unlocked packages, however we'd like to understand how to back-out of this if necessary. As a test, we moved a bunch of "utility" ...
James's user avatar
  • 205
2 votes
0 answers
33 views

Unlocked 2GP org dependant package

I'am trying to call a apex class method from another apex class which is a part of unlocked org dependant package. Below is the class in package (Class is present as a part of installed package): ...
Rohit's user avatar
  • 2,091
0 votes
1 answer
21 views

can i add only 1 field to unlocked package

I am starting to learn about unlocked packages. The question I have is if I have an app with a few classes and lwc components and just 1 field from Account object, can I create an unlocked package ...
user20850916's user avatar
0 votes
1 answer
41 views

Multiple unlocked packages with different namespace possible in one salesforce org?

Hello Salesforce Ohana, I am looking for suggestions/help if someone has implemented Unlocked packages with multiple namespace in single org as we have 3-4 applications in salesforce and we are trying ...
Sushil Dholani's user avatar
0 votes
1 answer
59 views

Unlocked Package Generation fails due to dependency on Manage Package

I have created and released a Managed package "A". I am now trying to create a small extension (which includes some Reports and Dashboards) as an Unlocked Package. The reports contains ...
Aditya Sehgal's user avatar
1 vote
1 answer
37 views

Modify/Alter Namespaced Unlocked Package data and metadata

What I am facing is that, I have an Unlocked Package without a namespace and I am able to alter/modify in that package, but in another package which is namespaced I am not being able to make any ...
Dheeraj Varyani's user avatar
0 votes
0 answers
73 views

How do I solve this kind of circular dependencies?

In our project, we are trying to divide the different functionalities into separate unlocked packages. While trying to divide the metadata into different packages we've encountered this case of ...
Jucamola's user avatar
0 votes
0 answers
42 views

The value of the $.routeType property isn't supported for this site when installing an unlocked package to a sandbox

When we are installing an unlocked package using sfdx:force:package:install to a Salesforce sandbox, we are getting the following error: Encountered errors installing the package! Installation errors: ...
ThreeThirteenTwentyFour's user avatar
0 votes
1 answer
22 views

Adding threshold to the metadata count - Salesforce 2GP packaging

For the Salesforce packaging, there is a limit of 10,000 metadata components. We have several packages and we once reached that limit for one of the packages and had to make a lot of last-minute ...
Ysr Shk's user avatar
  • 3,157
0 votes
1 answer
22 views

Default record page assignment in unlocked package: how to achieve that?

It is possible to define default record page assignment in metadata of the standard or custom object. However, if such metadata is included into unlocked package and installed, default record page ...
Patlatus's user avatar
  • 17.3k
1 vote
1 answer
41 views

How to deal with Metadata which do not support deletion like LiveChatButton and Skill? I can't uninstall the unlocked package because of them

Looks like if some metadata components are ever included into unlocked package, it is completely impossible to uninstall such unlocked package or even remove these metadata from unlocked package. Such ...
Patlatus's user avatar
  • 17.3k
0 votes
1 answer
99 views

Allow calls to most Salesforce APIs from Apex in Unlocked Package

This Apex code from an Unlocked Package HttpRequest request = new HttpRequest(); request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionId()); request.setHeader('Content-Type', '...
Robert Sösemann's user avatar
0 votes
1 answer
186 views

How to overcome the error `Specify a guest user’s nickname for the guestUser field`?

We are trying to put Sharing Rule into unlocked package to share access to the Knowledge records using Sharing Rules and we receive the following error: Details: Knowledge__kav....
Patlatus's user avatar
  • 17.3k
0 votes
1 answer
65 views

Why is 2nd Gen Unlocked recommended over 2nd gen Managed package for Internal App development

As per Salesforce - "Salesforce offers different types of packages, and unlocked packages are especially suited for internal business apps. Unless you plan to distribute an app on AppExchange, an ...
Alokste's user avatar
0 votes
1 answer
257 views

Has anyone deployed a embedded service config?

I created a embedded service config for a chatbot using a messaging channel, I am trying to package it (org depended package). I had to include 'customSite, 'Network', and 'StaticResource' metadata ...
user130667's user avatar
1 vote
0 answers
40 views

what can be different status while fetching the status of new unlocked package version creation

I am trying to create a new package version using command sfdx force:package:version:create -p "test" and need to know what can be different status of version creation I can get when I run ...
rajkumar11's user avatar
0 votes
1 answer
52 views

Has anyone tried to package omnichannel as part of an unlocked package?

I am deploying an Einstein Bot that uses omnichannel for routing. I am having a hard time deploying a LiveChatButton using omnichannel routing b.c it does not add the routing type in the metadata file....
user130667's user avatar
0 votes
0 answers
51 views

How can I push code to a scratch org that belongs to an installed package?

I am working on an application that is built from several separate unlocked packages, managed through cumulusci. The packages all share the same namespace. When cumulusci creates a development org it ...
TemporaryFix's user avatar
  • 2,946
2 votes
1 answer
188 views

Where is unlocked package version metadata stored?

Suppose we created 2 versions of a unlocked package. These two versions have assigned a package version ID in the Dev Hub org and are added to the sfdx-project.json: { "name": "...
DevelBase2's user avatar
1 vote
0 answers
43 views

Triggering Scheduled Job During Unlocked Package Installation/Upgrade

Within our unlocked package, we have implemented a class TimesheetWindowScheduler that implements the Schedulable interface. This class is responsible for executing specific tasks. public with sharing ...
vctqs1's user avatar
  • 95
1 vote
1 answer
100 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 ...
alesremta's user avatar
  • 463
2 votes
2 answers
313 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 ...
Robert Sösemann's user avatar
0 votes
1 answer
321 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 ...
vctqs1's user avatar
  • 95
0 votes
0 answers
40 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 ...
Andrew Stopchenko's user avatar
0 votes
0 answers
29 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 ...
Doug's user avatar
  • 783
0 votes
1 answer
24 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 ...
J.0's user avatar
  • 31
1 vote
0 answers
58 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 ...
Strong Like Bull's user avatar
0 votes
0 answers
149 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 ...
jfraser's user avatar
1 vote
0 answers
79 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: ...
Eugene Vabishchevich's user avatar
1 vote
1 answer
263 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.
Eugene Vabishchevich's user avatar
0 votes
1 answer
46 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:
DevelBase2's user avatar
1 vote
0 answers
249 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 ...
Neel's user avatar
  • 11
1 vote
1 answer
136 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 ...
Zosoled's user avatar
  • 103
0 votes
2 answers
304 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 ...
Keith C's user avatar
  • 136k
1 vote
1 answer
224 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 ...
Mary Hamlin's user avatar
1 vote
0 answers
31 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 ...
Rob Davis's user avatar
  • 166
0 votes
1 answer
90 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 ...
Siarhei's user avatar
  • 121
4 votes
1 answer
988 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 ...
wesaw's user avatar
  • 3,130
0 votes
2 answers
85 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 ...
whoisnilu's user avatar
  • 115
0 votes
1 answer
275 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 ...
kennyc's user avatar
  • 359
1 vote
0 answers
76 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 ...
Eduard's user avatar
  • 5,181
1 vote
1 answer
591 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 ...
andrew's user avatar
  • 149
1 vote
3 answers
277 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 ...
Json's user avatar
  • 1,667
0 votes
0 answers
180 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 ...
Muhammad Umair's user avatar
0 votes
1 answer
233 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 ...
andrew's user avatar
  • 149
1 vote
1 answer
189 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:...
andrew's user avatar
  • 149

1
2 3 4 5 6