Questions tagged [unlocked-package]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 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
20 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
25 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
24 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
27 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
33 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 ...
0
votes
0answers
26 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
50 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
23 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 ...
1
vote
0answers
37 views

Cannot upgrade unlocked package: This app can't be upgraded

I'm trying to upgrade an existing unlocked package in an org. The installer is complaining about a Lightning event: Cannot add component of type:AuraDefinitionBundle named:...
5
votes
2answers
79 views

Upgrade unlocked package fails due to “Cannot use unfiled-public or user folders in a package”

I'm trying to install the unlocked package to a sandbox org, where a previous version of it already exists. I used to have an email template in unfiled public, but I moved it to a public read/write ...
6
votes
2answers
158 views

How to create unlocked package version with dependency to managed package?

I'm trying to create a package version to an unlocked package I've created and keep getting error messages. The first problem I've encountered was a long error message about invalid type and ...
5
votes
0answers
68 views

Can we download the contents of an Unlocked Package?

I had created a number of packages and package versions in order to help prepare for moving our metadata to packages in production. At some point, I accidentally pulled in a bunch of metadata that I ...
1
vote
1answer
31 views

Include sharing settings in an unlocked package?

Is it possible to include a sharing setting change in an unlocked package? Essentially the change is to make an object Public Read/Write for External users, whereas now it is Private.
4
votes
1answer
44 views

How to use public sites with SFDX and Unlocked Packages

I have some code which integrates with a third party service by exposing webhooks (REST Methods) via a public (non-authenticated) site. I'm trying to figure out how this should work as part of ...
3
votes
1answer
82 views

Installing Unlocked Package in Production fails with conflicts

I have an unlocked package with custom object Person__c and field Account__c as a lookup on the account. I tried installing this package in an org where Person__c object is already available with ...
3
votes
1answer
105 views

Unable to parse package2-descriptor.json: invalid attribute 'orgPreferences'

Suddenly, the following error message pops up when trying to build a new package using sfdx force:package:version:create. Unable to parse package2-descriptor.json: invalid attribute 'orgPreferences' ...
1
vote
0answers
24 views

Trying to resolve errors when creating package version

I'm currently getting the following errors when I'm creating a package version: (1) Case.RMA: Picklist value: Chat in picklist: Origin not found (2) Case.Case: Picklist value: Chat in picklist: ...
0
votes
0answers
32 views

force:mdapi:convert command fails when source has a utility js file

I'm trying to follow the SFDX Developer Guide to convert an unlocked package to SFDX source format I'm receiving the following error: $ sfdx force:mdapi:convert --rootdir mdapipkg --outputdir ...
9
votes
0answers
224 views

Upgrade of Unlocked Package changed RecordTypeId of existing records

I have an Unlocked SFDX Package with a CustomObject__c and two Record Types RTypeA and RTypeB. The object and the two types have existed in the package before my update. Before the upgrade all ...
1
vote
0answers
24 views

Unlocked Package Custom Metadata SubscriberControlled not working

I have an unlocked package that uses custom metadata to store settings (Shipment_Setting__mdt). XML of the Shipment_Setting__mdt <?xml version="1.0" encoding="UTF-8"?> <CustomObject xmlns="...
2
votes
1answer
38 views

SFDX: Package dependency on unpackaged stuff

Is there a way to make a package dependent on unpackaged stuff (not another package)? without having to turn that stuff itself into unlocked package. without including its metadata in package. The ...
2
votes
1answer
37 views

Salesforce CLI not respecting versions in package dependencies

We've got App2 package which depends on App1@0.1.0.LATEST. However, CLI doesn't seem to respect versions in package dependencies. For instance, it's NOT preventing App1@2.0.0.NEXT package version from ...
4
votes
0answers
114 views

Could Unlocked Package installation delete or update Record Types of existing records?

I have an object A with record type a1 and a2. I made an unlocked package and installed it to production org. After a few days, the client comes with some other changes and I made another version of ...
1
vote
0answers
23 views

Unlocked packages: Lightning Aura Component Inheritance issue

I have two namespaced unlocked packages, an aura component from one package extends a component from another one. There is a component within the base component with aura:id="cmpId" (It's a global ...
12
votes
2answers
121 views

Upgrading multiple packages at once

I see a lot of people pushing a code base of "Happy Soup" of packages. However, there is a common dependency management use-case that I haven't seen a solution for. Deployments that requirement ...
1
vote
1answer
45 views

SFDX - Can't Create Unlocked Package Version With BillingCountryCode/BillingStateCode

I am getting an error when trying to create a version of my unlocked package after adding Apex code that references the Account.BillingCountryCode and Account.BillingStateCode fields. Everything is ...
4
votes
1answer
66 views

DX standard pick-list values in unlocked package

We have certain parts of our org metadata that we can't put in an unlocked package because they are dependent on standard pick-list values (i.e. opportunity stage). Is there a way to put standard ...
1
vote
1answer
37 views

DX Package existing record types

I am moving existing metadata from an org into unlocked packages.I have ran into a problem when it comes to record types. Problem 1 Because each record type needs to know which pick-list values it ...
1
vote
1answer
193 views

SFDX: Entities not supported on package version creation

I'm trying to create a new package version for my SFDX project. As usual, I'm executing the following command: sfdx force:package:version:create --package MyPackage --installationkey abcdefg123456 --...
3
votes
2answers
105 views

Lead recordtypes (BusinessProcess) in unlocked packages Winter'20

ApiV47 (Winter'20) does not support BusinessProcess metadata anymore. In order to have RecordTypes on Lead you need to have BusinessProcess. So we do have a few. So far we deployed the code using ...
1
vote
1answer
17 views

CampaignMember fields and unlocked packages

I can't for the life of me figure out whether CampaignMember fields and the object are supported in 2nd Gen packages. There's nothing in the Metadata Coverage Report on this object and I can't see ...
0
votes
1answer
94 views

Unable to parse package2-descriptor.json: invalid attribute 'versionNumber'

I am trying to make a version of my package but it fails every time. I am able to create a scratch org, install package dependencies, and push my source code successfully. But when I go to create a ...
6
votes
1answer
64 views

Cannot migrate deprecated unlocked package2 component since Winter 20'

I am unable to migrate a package2 member from one unlocked package to another. Before Winter 20', as per these instructions, deprecating a member from the first package and installing the second ...
0
votes
0answers
23 views

In an unlocked package with a namespace, do SOQL queries in apex methods automatically add the namespace when querying custom objects?

Let's say we have an unlocked package with a namespace of "xxx" which includes a class AirportUtils and a custom object named Airport__c. If I was writing a method in AirportUtils to query all ...
0
votes
0answers
14 views

Error trying to deploy an unlock package

I installed a new unlock package version on a sandbox and I got this error: "​Controller ​'apex://OController' with public method must be in the same package as component 'markup://c:OLSFPendingTrans'....
0
votes
0answers
20 views

Error trying to deploy a community with sfdx [duplicate]

I get an error when I try to create a package version command: sfdx force:package:version:create -p assured-pkg6 -d force-app -k 12345 --wait 10 -v DevHub -f config/project-scratch-def.json error:...
2
votes
1answer
247 views

Error running sfdx force:package:version:create

I get an error when I'm trying to create a package version. This is the command which I'm running: sfdx force:package:version:create -p assured-pkg4 -d force-app -k 12345 --wait 10 -v DevHub And ...
0
votes
1answer
36 views

force:package:install --apexcompile package — what are the pros/cons of using it

what are the pros/cons of using force:package:install --apexcompile package? Will the package installations be prone to errors? will it have a negative effect to the destination orgs? Can't find much ...
0
votes
1answer
53 views

Error on starting Salesforce DX project

[EDITED] So, I'm trying to use SalesforceDX to develop. But I keep getting stuck on the configuration. It seems to work fine until I get to the pushing part. I'll post the commands I used. Created a ...
16
votes
1answer
394 views

Why can't I deploy my Unlocked Package back in to my own Sandbox org?

The Background We are a super-sized Performance Edition organization with a number of enhanced limits, and migrating our "happy soup" to DX Unlocked packages. We previously had problems creating ...
6
votes
1answer
55 views

Nested Unlocked Packages requires Installation of Base Packages?

We're trying to create a nested package structure to keep our code organized. So far, we have a design that looks like this: core ^-- utils | ^---- marketing | ^---- support | ^---...
6
votes
1answer
218 views

Unlocked Package Dependencies

Given two unlocked packages: UP_A and UP_B. UP_B classes uses classes from UP_A (UP_B depends on UP_A). When I try to create a new version to UP_B from terminal I get the message: ClassFromUP_B: ...
1
vote
0answers
87 views

Unlocked Packages NO-namespace LWC not being retrieved. Apex visible

I'm looking to inspect the LWC components in a public unlocked package with no namespace prefix but can't seem to retrieve them. Apex code is wide open so I was confused as to why lightning components ...
4
votes
1answer
167 views

Unlocked Package Dependency Missing Organization Feature Knowledge

Error when creating new version of unlocked package. An error occurred while trying to install a package dependency,ID 04XXX: Missing Organization Feature: Knowledge sfdx-project-json "...
0
votes
1answer
237 views

Ability to enable Dev Hub / Unlocked Packages for Partner Developer Edition Org

I'm using a Partner Developer Edition org to develop features for a managed package (which resides in a different org). According to the Winter '19 Release Notes, Developer orgs should have the Dev ...
18
votes
2answers
382 views

Can we move metadata between Unlocked Packages?

We're starting to figure out Unlocked Packages in Salesforce DX, and finally have a working base version. However, we do plan on breaking out fields, classes, etc to dependent packages as we continue ...
1
vote
1answer
160 views

sfdx force:package:version:create The provided package ID '0Hoxxxxx' is invalid

I've just recently started getting an error: The provided package ID '0Ho1C0000004C9wSAE' is invalid. when trying to run sfdx force:package:version:create. This was previously working exactly as ...
6
votes
1answer
267 views

Can/should DX Unlocked packages be used for app distribution to customers

Unlocked Packages are just the perfect compromise for everybody working with Salesforce code that he is delivering (for money) to a customer (or two). Managed packages are too much overhead (become a ...
3
votes
1answer
302 views

Create Package Version Error: Entity Quote not found

I'm trying to create a new unlocked package that adds some custom fields to the Quote object. If I deploy the source to a scratch org everything works as expected. I created the package running: ...