Closed barak-11 closed 1 year ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
ProfileActionOverrides aren’t supported in packaging. They’re supported in change sets, but you have to add them manually.
We had a recent bug with certain node versions where that command would "succeed" but not really.
general issues with node 18.16.0. You might be getting the proper error now instead of a false negative.
@mshanemc just saw that ProfileActionOverrides cannot be used in package but was working fine since a long time. Also Profiles meta are (at least it seems) not pushed anymore in the package version create phase (IMHO that's the verry root cause of the error for @barak-11 and me) I have a Unit test that is failing when querying the needed profile. I can open a different issue if needed. But I first came here due to the profile was not found anymore in profileActionOverides (error is coming from missing profile and not unpackageable profileActionOveride)
{
"cliVersion": "sfdx-cli/7.201.6",
"architecture": "linux-x64",
"nodeVersion": "node-v18.15.0",
"osVersion": "Linux 5.15.0-1037-azure",
"shell": "bash"
}
Hello @barak-11, you mentioned that this just recently stopped working. Can you please try a few more versions and narrow down the exact CLI version in which this broke? That will make it easier to track down what changed.
hello @iowillhoit I tried to revert to the last Success build sfdx version (7.194.1) but did not help. The package version create is failing even with version where it was working fine.
Error (1): Multiple errors occurred:
(1) FS_Change_Requests _(ligthning app metadata)_ : invalid cross reference id
{ "cliVersion": "sfdx-cli/7.194.1", "architecture": "linux-x64", "nodeVersion": "node-v18.15.0" }
If no CLI versions work anymore, that adds support for the theory that the packaging process changed to align with the docs.
@mshanemc yes you right. that's why if you look into my previous comment I tried to remove profileActionOveriddes from the picture. I don't think there is anything link to profileActionOveriddes. The problem comes from custom Profile (in our case) that cannot be found.
Closing this issue as it seems that the process now matches the documentation as Shane mentioned. Will continue the other discussion in 2153
Summary
Unable to create new package version for unlocked packages. getting:
Steps To Reproduce:
sf package version create --package "myPackage" -x --wait 100
or runsfdx package:version:create -p "myPackage" -x -w 100
Expected result
expected it work as it did the day before I upgraded the sf-cli.
Version create.... Create version status: Success
Actual result
System Information
using zsh on Mac Ventura
Additional information
Was able to resolve it by reverting to old sfdx version 7.196.9 and executing:
sfdx package:version:create -p "myPackage" -x -w 100
. Another way to resolve it is just to remove the profileActionOverrides but that doesn't really help.