The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [unlocked-package]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
19 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
0answers
20 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
45 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
90 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
12 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
42 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
0answers
49 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
16 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
11 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
17 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
65 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
28 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
33 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 ...
15
votes
1answer
284 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
46 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
91 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
48 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
62 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
51 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 ...
17
votes
2answers
239 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
76 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
201 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
121 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: ...
0
votes
1answer
37 views

Each Unlocked Package in Separate Repo

I read that people suggest to separate the packages each into their own version control repository. What would be the downside of using one repository and just separating the packages into folders? We ...
2
votes
0answers
23 views

Permission set error while installing unlocked package

I have created an unlocked package version and while trying to install it in production, I am getting an error: Permission Create Invoice_Approver__c depends on permission(s): Read Order__c ...
0
votes
0answers
26 views

Password lost from named credential in unlocked package

I have created an unlocked package. The unlocked package contains named credential. The unlock package process creation when failed when there was no in the file. So, I had to add actualPassword in ...
1
vote
0answers
22 views

Using Protected Component for “Secret Protection” with Unlocked Packages

How do "Protected Components" (Custom Settings or Custom Metadata) function when installed from an Unlocked Package. I was hoping that I would be able to use as "Protected (Managed)" to store "...
1
vote
1answer
37 views

Purpose of VERSIONNAME in sfdx force:package:version:create

In the SFDX CLI Docs, the commands force:package:version:create takes both a VERSIONNUMBER & VERSIONNAME. The description for VERSIONNAME is: -a | --versionname VERSIONNAME Optional The name ...
0
votes
1answer
238 views

Cannot add component to another package because it is an installed component

I have two unlocked packages. One package defines a number of custom fields on the Opportunity object and the other defines page layouts and other configurations the Opportunity. I receive the ...
2
votes
0answers
60 views

Include HEDA/EDA as dependency for package using SFDX

I am trying to include HEDA as a dependency for a package that I am trying to create, but when I attempt to create a package version, I get the following error: ERROR running force:package:version:...
0
votes
0answers
21 views

Dynamically get instance URL in a (packaged) Flow

I have checked the list of Global variables on Flows but couldn't find any that is giving me the current instance URL. My flow is opening a Visualforce PDF and I a hardcoded URL just won't work in ...
5
votes
1answer
74 views

Flow from Unlocked DX package can not be changed in subscriber org. Why?

I just installed an unlocked package containing flows in a customer sandbox and was a bit shocked to see that the flow cannot be opened and adjusted by the customer/subscriber. I thought that's the ...
4
votes
1answer
184 views

User can create DX Unlocked package but not a version

When creating a DX Unlocked Package version from a DevHub org and user with Second Generation Packages Enabled (1h ago) sfdx force:package:version:create -p "myapp" -x -json I get the following ...
1
vote
1answer
41 views

Converting unlocked package to managed package [closed]

Is it possible to convert an unlocked package to a managed package? If so, how?
0
votes
0answers
14 views

Uploading SSL Certs

Is it possible to upload an SSL certificate and/or custom branding media via self created DX package? I saw that there are database entries for those things in the SOQL workbench but not sure if they ...
0
votes
0answers
50 views

Unlocked packages with namespace - visualforce page isn't loaded

I've two managed packages (classic managed package - not packaging 2.0). One is extension pack to the other. It uses classes, fields, objects and so on from core package. I'd like to create some ...
9
votes
1answer
282 views

SFDX: Create unlocked package version - What is happening behind the scene?

When we are creating unlocked package version in 2GP, we don't need to have packaging org at all to deploy code there, upload package etc. (as it was with first generation packaging). So we just ...
8
votes
1answer
156 views

Can Unlocked Packages only modularize a single project / repo / org?

The longer I read and watch everything related to Org modularization using Salesforce DX Unlocked packages there more I get the feeling that this is only about local dependencies meaning: You take ...
5
votes
1answer
166 views

How do I view a list of packages installed in a DevHub org using the SFDX CLI?

When I run: sfdx force:package:installed:list -u DevHub (where DevHub is the alias of my production org, which IS enabled as Dev Hub and also has 2GP enabled) I receive this error: ERROR ...
0
votes
0answers
18 views

How to use metadata type KnowledgeSettings in SFDX project format?

I have created a unlocked package which requires KnowledgeSettings as well. As per the Metadata Coverage Report, KnowledgeSettings is not supported by second generation packaging (unlocked packaging) ...
0
votes
0answers
40 views

Unlocked Packages and Enhanced Notes

Is anyone having trouble with the enhanced notes related list showing up on a standard page layout after an Unlocked Packaging deployment? I just tried doing this, and even after manually adding the ...
3
votes
1answer
100 views

Unlocked package as an extension to classic package with the same namespace

We have our huge managed package (1st generation) with extremely large number of components in it. Package upload and test executions takes up to 3 hours as of now. And we need to continue adding more ...
0
votes
0answers
40 views

Unlocked Package installed on a sandbox - cannot edit its components at all

We've installed successfully our unlocked package to sandbox org via sfdx command. But when we try to edit apex class from unlocked package right on a sandbox org, the behaviour is really weird. Edit ...