Questions tagged [package]
A package is a container used to distribute something as small as an individual component or as large as a set of related apps.
470
questions
0
votes
1
answer
274
views
Removing metadata dependencies automatically when uninstalling a managed package
When you have a managed package, if a customer were to uninstall a package, is the removal of metadata components from that managed package automatically removed?
Currently, we are deploying unmanaged ...
2
votes
0
answers
475
views
Custom Metadata Type - Custom Field - Picklist Values Not editable after packaging
I'm currently trying to figure out why we're unable to edit Custom Metadata Custom Field Picklist Values after packaging in another org. From my understanding, I should be able to edit these existing ...
0
votes
1
answer
1k
views
Error deploying or retrieving source by package.xml
When I attempted to retrieve source by package.xml, I got this error:
Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package
directory ...
3
votes
1
answer
790
views
Error installing package in scratch org: "Missing Organization Feature: ContactsToMultipleAccounts"
I'm using sfdx to create a scratch org, using org shape. First I create an org shape:
sfdx force:org:shape:create -u PRODUCTION
Then I create a scratch org with the following json:
{
"...
2
votes
1
answer
70
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 ...
0
votes
1
answer
263
views
How to expose stack trace from one managed package to another managed package
In my org I have managed package with namespace DeltaLKU which contains apex classes & components for the application that we are developing and I have installed another third party managed ...
0
votes
1
answer
47
views
Can't seem to execute code against an unmanaged package
I'm relatively new to using unmanaged packages and have run into a (likely) simple issue. I'm currently attempting to execute some anonymous code against a package that I installed today, however I am ...
1
vote
0
answers
144
views
Unable to create a package version for second generation managed package
I'm trying to create a 2G managed package. The following were the steps I used
sfdx force:package:create --name newManagedPackage --packagetype
Managed --path force-app
I was able to create a ...
2
votes
1
answer
2k
views
Package installation error: Could not find related list [Histories] for entity [Contact]
I'm trying to install a package on a scratch org, but failing at Could not find related list [Histories] for entity [Contact].
My project-scratch-def.json looks like the following: And I have also ...
0
votes
2
answers
459
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",
&...
-3
votes
1
answer
152
views
Are Salesforce Labs apps managed or unmanaged? Does Salesforce provide support for those? [closed]
As the title says: are those apps managed or unmanaged packages? Does Salesforce provide support for those or not?
1
vote
0
answers
46
views
Possible to maintain base and extension functionality in one Managed package?
I have created a base package as a Managed package, for which we are occurring licence cost.
Now, On the Top of base base package, we have to provide advance functionality as an extension. For this as ...
1
vote
1
answer
357
views
Why gack Id Error ID: 248606545-14096 (-1147209962) is displayed when I try to review the information for my managed package?
Why gack Id Error ID: 248606545-14096 (-1147209962) is displayed when I try to review the information for my managed package?
I cannot view the details of my 1GMP because of this Gack Id.
0
votes
1
answer
726
views
2GP Managed Package : ERROR running force:package:version:create: while Verifying Metadata Invalid type: namespace__CustomObject__c
I am trying to create a managed package version for 2GP using salesforce CLI, after running force:package:version:create command I am getting thousands of errors in the terminal
I am only able to see ...
0
votes
1
answer
173
views
Salesforce CPQ Package Expiration
I have installed Salesforce CPQ package in my DEV org and it shows the expiration date as "Does not Expire". Does this mean Salesforce is supporting CPQ package for life time in Developer ...
1
vote
1
answer
173
views
How Managed Package license is counted
I want to know how managed package licenses work for the user who does not have license assigned. My questions are -
Will the user be able to access an object from the package in any way through UI ...
1
vote
1
answer
114
views
Waiting too long for Apex Tests results during Managed Package development
I was asked to put my team's project into 2GP Managed Package. This project is relatively big, so passing Validating metadata step during sfdx force:package:version:create was really a struggle.
Now, ...
0
votes
0
answers
292
views
How to add this Custom Object to Package in Package Manager?
I want to add Commerce Diagnostic Custom Object to the package. It should show up in Custom Objects under the 'Hawkeye' package I'm creating, but it doesn't. How can I add this to the package?
0
votes
1
answer
75
views
Error building package containing a layout referencing a lookup field's lookup value
I'm trying to create a package to bundle up my custom apex,layouts and flows and am running into some errors.
I have three custom objects. Object A has a lookup field for Object B. Object B has a ...
0
votes
0
answers
106
views
Queue multiple PackageInstallRequest to be installed in order?
I can create multiple PackageInstallRequest records via the Tooling API to queue the installation of multiple packages, but the packages are installed in an indeterminate order. Some of the packages I'...
0
votes
1
answer
1k
views
This package can’t be installed. Error on Upgrading the Package
Iam trying to upgrade the package in destination org getting This package can’t be installed. error.
Below screenshot for your reference
1
vote
1
answer
525
views
how to get the package related information(namespace, version number) from installation url
I am doing automation on package installation, now I am able to install the package from apex using metadata service class by passing package namespace and version number,
but i need to pass the ...
0
votes
1
answer
881
views
Who can modify a managed package?
Can managed packages only be modified by the people who distributed that managed package?
2
votes
1
answer
468
views
Validation of two packages at the same time, but only quick deploying one. Possible?
Pretty simple question here. Can I validate 2 packages at the same time, and only choose 1 to quick deploy?
background here is we have a release tomorrow and the package is already validated (takes ~5 ...
1
vote
2
answers
293
views
Can't upgrade subscribers organisation, because of deleted report. Managed package
I have a Managed Package.This package have reports.
Subscriber had deleted reports from the package, and when he is trying to upgrade his org, he get this error:
Record_Page flexipages/Record_Page....
1
vote
2
answers
453
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
56
views
PcakgeInstallationCommand is failed with "No TOKEN named force:base.cardSpacingMargin found"
PackageinstallCommand is failed with below issue,
CLI Version: SFDX-CLI 7.96.1
ERROR: Encountered errors installing the package!,Installation errors:
1) (intelligentDiscoveryStatus) No TOKEN named ...
2
votes
0
answers
671
views
Cannot modify managed object. Previous Value New Value
I promoted a package and while trying to push code to a new scratch org I get hundreds of errors similar to this one:
Error
force-app/main/default/objects/Real_Estate__c/fields/...
1
vote
1
answer
1k
views
Issue with Dependency Package Picklist Value Not Found
I was facing issue while creating managed Package.
Where my managed package has dependecy with one more managed package called Financial Service Cloud.
While Building Package it is failing because of ...
0
votes
1
answer
796
views
How retrieve Default Org Values from Custom Settings to Visual Studio?
We want to change our 'Default Org Values' in our repo, but we don't find the option in Visual Studio. We are using Visual to upload the code to AWS and need to change this.
We tried to include the ...
0
votes
0
answers
221
views
I am trying to create package version for 2GP and am getting this error "No matching source was found within the package root directory"
I am trying to create package version for 2GP using salesforce CLI as well as VSCode and I am getting this error "No matching source was found within the package root directory"
Following ...
2
votes
2
answers
944
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 ...
1
vote
0
answers
282
views
Protected Custom settings in package
We create a package . We have an issue with a managed triggered flow that need to access to a protected custom settings of the same package , in our Scratch org the flow work . When we create the ...
1
vote
2
answers
177
views
Best way to package additional modules for 1GP package
We have a first-generation package (let's call it X) on AppExchange. We are building some additional modules (A & B), these modules can't sit inside the main Managed Package X because the ...
1
vote
1
answer
119
views
Canvas app in 2gp managed package
I have connected app on my scratch org which is rendering canvas app in aura component.
On my connected (canvas app) im using CanvasLifecycleHandler class implementation on connected app settings.
I'm ...
6
votes
1
answer
857
views
package:version:create - No such column 'Id' on entity 'User'
Suddenly our build is failing due to the package:version:create command. The error is really strange since none of our changes look to be related to it.
Our CircleCI automation tool is able to push ...
0
votes
1
answer
266
views
Are reports and Dashboard packagable
I have reports and dashboards for communities, which I am intending to package. are they package?
7
votes
1
answer
499
views
Github Workflow for Package Development
To better maintain my OSS repositories I am looking for a simple but elegant Github workflow that covers all steps of a DX development process that ends with a package version (unlocked/managed):
...
1
vote
0
answers
601
views
Setting up service cloud voice but getting errors following the guide on creating a package (if installed, supposed to create contact center)
the guide is here:
I am getting the following error when following this step:
Create a Package Version
sfdx force:package:version:create --package "<Package Name>" --codecoverage --...
0
votes
1
answer
357
views
Is it possible to link a namespace frome a developer org to a developer hub
We currently have an unlocked package with a namespace linked to a developer edition hub since at the time we where not aware of the limitations. Since we have the limitation to only do 5 package ...
1
vote
1
answer
729
views
Is it correct that "Subscriber editable" custom metadata type fields avoid the need for an unmanaged package?
Old catchily titled documents such as How to use custom metadata types to save years of development on app configurations say:
Subscriber-editable records: Put metadata records you want edited by
...
6
votes
1
answer
1k
views
Is it possible to deprecate and subsequently remove a public attribute of a Lightning Web Component in a managed package?
For example, with this following snippet, if I wanted to remove the property from the package, what would be possible to do?
<targetConfigs>
<targetConfig targets=“lightning__RecordPage”&...
0
votes
1
answer
50
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 ...
3
votes
1
answer
77
views
Determine if subscribers have my domain enabled?
We are developing 2GMP.
We need to know if we can programmatically query some record on devhub to find out if there are subscribers that do not have my domain enabled.
Is there a way for this?
If we ...
2
votes
0
answers
215
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
957
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 ...
2
votes
1
answer
164
views
Using NPM in server side - Salesforce
We have an external service which we send data (a JSON) to them, with some details - that also includes personal data such as mobile phone number and country ISO code.
I would like to use the Google ...
0
votes
1
answer
280
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 ...
0
votes
1
answer
165
views
Salesforce package fails to install custom fields
I created a custom package, which makes custom fields on the Salesforce order object. The package installed the fields, but the API name is incorrect.
On my development environment, the API name is
...
1
vote
1
answer
203
views
2GP push error modify managed object
i have the following error when i want to push a 2GP in a new Scrach org
force-app\main\default\objects\Country__mdt\fields\Country_Code__c.field-meta.xml Cannot modify managed object: entity=...