Skip to main content
4 votes

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

I don't have an easy way to determine this immediately, but it may be due to the default upgrade type of Mixed. Try using the Delete mode instead: sfdx force:package:install -p the_package_to_install ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

Install Managed Package Into Sandbox Fails on All Lightning Component Bundles

Since it seems to be an internal Salesforce bug there isn't much you can do about it until they resolve it. They are onto it: Team is looking into it right now. W-5394323 for reference if you ...
Daniel Ballinger's user avatar
4 votes

How to "install" LWC?

If you already have NodeJS installed, you can install the CLI with Node Package Manager: npm install -g sfdx-cli This will give access to all of the sfdx commands without a binary install, and ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

SFDX: How can I make my plugin available to install via sfdx plugins:install and a git repo reference?

We found that this could be resolved by building the plugin and committing the generated lib folder structure and the oclif.manifest.json file to git (which is somewhat ugly, IMHO). Having done this ...
Phil W's user avatar
  • 36.8k
3 votes
Accepted

Problem installing our manage package

Once you acknowledge the erroneous error the really error should be displayed afterwards. Usually due to a dependency
Eric's user avatar
  • 54.2k
2 votes
Accepted

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

I have managed to solve it. An email template with the exact same name has been created in the Sandbox in unfiled public, but wasn't part of the unlocked package. After deleting it, I could install ...
mluecke's user avatar
  • 191
2 votes
Accepted

Attempting to Install Package Using ANT Script and Getting Error

You have to use the "antlib:com.salesforce" namespace. Since you defined the namespace as "sf" (xmlns:sf means "define an XML namespace called "sf" with a location of "antlib:com.salesforce"), your "...
sfdcfox's user avatar
  • 495k
2 votes

2gp error when installing unlock package into empty sandbox: Complains re existent Email Template in unfiled-public folder

Do the following The metadata for the folder should be as follows <?xml version="1.0" encoding="UTF-8"?> <EmailFolder xmlns="http://soap.sforce.com/2006/04/metadata&...
Raul Pereyra's user avatar
1 vote

What is the reason and resolution for package uses old Order Save Behavior?

There is new release update about order save behavior which impacts installation of any package which do not even depend on the Order Save behavior. To mitigate this problem, create a new ...
Patlatus's user avatar
  • 17.2k
1 vote
Accepted

How to prevent the License Management App (LMA) from creating Lead records when a package is installed via an installation URL?

You are specifically warned not to cause errors on the Lead, specially in a Before DML trigger. Don’t use before_create or before_update triggers on leads and licenses. Instead, use after_ triggers, ...
sfdcfox's user avatar
  • 495k
1 vote

Managed package and triggers

Well, in a nutshell, as some people stated in the comments, the order of execution of the triggers is not guaranteed. Therefor, it's just as if you create two lead triggers in your org and then make a ...
Javier García's user avatar
1 vote

Don't know how to install app from github

Scroll to the very bottom and click on
o-lexi's user avatar
  • 3,094

Only top scored, non community-wiki answers of a minimum length are eligible