You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add relevant components and profiles into src/utils which supports utils source metadata
add relevant components and profiles (same profiles from src/utils) into src/core which supports core source metadata
add all the profiles (same profiles from src/utils and src/core) from sandbox to src/access-management ( placeholder for all the profiles to deploy which give permissions to managed package components as well as custom components )
run package version create with -r | --preserve flag sfdx force:package:version:create -v devHub -f config\project-scratch-def.json -x -w 120 -r -p core
preserved files location will be printed in terminal. open location and check md-files will have all the profiles from other package and unpackage if they have any reference to src/core components.
md-files/profiles will have all the profiles which has reference to src/core but package.xml will have not have them.
Expected result
package version command should only respect the profile inside package directory of requested package on creation
If it is designed to work in this way to compute profiles in the entire project, then it should respect forceignore
if profile compute is designed to not to respect forceignore then it should create proper profiles and package.xml in md-files. md-files/profiles has 12 profiles but package.xml has only 9 profile [this ignored the profile which we needed]
Actual result
md-files/profiles will have all the profiles which has reference to src/core but package.xml will have not have them.
Additional information
Feel free to attach a screenshot.
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.63.0-c897e8bb1a win32-x64 node-v10.20.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
I am getting similar error even my package doesn't have any profile and there is no dependency package
`1) Can’t create package version. Removing metadata components from a second-generation managed package is a pilot feature that requires acceptance into a pilot program.
To join the Remove Metadata Components from 2GP pilot, file a case in the Salesforce Partner Community.
To create a package version without removing metadata components, restore the removed components and try creating the package version again. Add components {Profile=[Admin]} back into the package version, and create the package version again. `
Summary
package version create command is computing profiles from other package directory, not considering forceignore and which results in improper profiles
Steps To Reproduce:
add relevant components and profiles into src/utils which supports utils source metadata
add relevant components and profiles (same profiles from src/utils) into src/core which supports core source metadata
add all the profiles (same profiles from src/utils and src/core) from sandbox to src/access-management ( placeholder for all the profiles to deploy which give permissions to managed package components as well as custom components )
run package version create with
-r | --preserve
flagsfdx force:package:version:create -v devHub -f config\project-scratch-def.json -x -w 120 -r -p core
preserved files location will be printed in terminal. open location and check md-files will have all the profiles from other package and unpackage if they have any reference to src/core components.
md-files/profiles will have all the profiles which has reference to src/core but package.xml will have not have them.
Expected result
Actual result
md-files/profiles will have all the profiles which has reference to src/core but package.xml will have not have them.
Additional information
Feel free to attach a screenshot.


SFDX CLI Version(to find the version of the CLI engine run sfdx --version):
sfdx-cli/7.63.0-c897e8bb1a win32-x64 node-v10.20.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core)
OS and version: Windows 10
The text was updated successfully, but these errors were encountered: