Closed Bilal-Z closed 4 months 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.
This issue has been linked to a new work item: W-12081228
We are experiencing the same issue. Will attempt namespace injection (using CumulusCI) and report back if a successful workaround.
Exception in task install_2gp_commit.install_managed
Error: (Chancery_Administrator) Cannot create permission set group components
since the following permission set names are invalid: Agreements_Management,
Assignments_Management, Chancery_Core_App, Committees_Management,
Sacraments_Management_Diocese,
Details: Chancery_Administrator: Cannot create
permission set group components since the following permission set names are
invalid: Agreements_Management, Assignments_Management, Chancery_Core_App,
Committees_Management, Sacraments_Management_Diocese```
@mattmartin26 did you have any success with namespace injection?
Did this issue go anywhere?
Would be nice to get an update on this issue and the workitem that was created. This is still a problem for me.
sorry to let this thread die. But looking into it now
Has anyone attempted to use our string replacement feature with this? I was able to get it working with this permission set group example
I added this bit to the sfdx-project.json
"replacements": [{
"filename": "force-app/main/default/permissionsetgroups/test.permissionsetgroup-meta.xml",
"stringToReplace": "set1",
"replaceWithEnv": "REPLACE"
}],
➜ REPLACE='cristiand391__set1' sf project deploy start --source-dir force-app/main/default/permissionsetgroups/test.permissionsetgroup-meta.xml
Deploying v60.0 metadata to test-v0v0u71t3xst@example.com using the v61.0 REST API.
Deploy ID: 0Af9A00000frdFoSAI
Status: Succeeded | ████████████████████████████████████████ | 1/1 Components | Tracking: 0/0
Deployed Source
===============================================================================================================
| State Name Type Path
| ───────── ──── ────────────────── ───────────────────────────────────────────────────────────────────────────
| Unchanged test PermissionSetGroup force-app/main/default/permissionsetgroups/test.permissionsetgroup-meta.xml
and then without it,
➜ sf project deploy start --source-dir force-app/main/default/permissionsetgroups/test.permissionsetgroup-meta.xml
Deploying v60.0 metadata to test-v0v0u71t3xst@example.com using the v61.0 REST API.
Deploy ID: 0Af9A00000frdFeSAI
Status: Failed | ████████████████████████████████████████ | 1/1 Components | Errors: 1
Component Failures [1]
=================================================================================================================================
| Type Name Problem Line:Column
| ───── ──── ──────────────────────────────────────────────────────────────────────────────────────────────────────── ───────────
| Error test Cannot create permission set group components since the following permission set names are invalid: set1
In the documentation we have examples for replacing certain strings for certain environments, which would probably be the most applicable example to follow
Summary
When attempting to deploy metadata with extracted from a dev org with no namespace to a scratch org with a namespace, the deploy fails due to permission set groups with the following error:
Contents of
FSC_Community_Permissions.permissionsetgroup-meta.xml
are as follows:manually editing
FSC_Community_Permissions.permissionsetgroup-meta.xml
and prepending the namespace of the target scratch org, like as follows:<permissionSets>Example_Namespace__XYZ_for_Community</permissionSets>
fixes the issue.
Expected result
Metadata should be deployed successfully. the cli should recognize the permission set
XYZ_for_Community
reference inFSC_Community_Permissions.permissionsetgroup-meta.xml
as the permission set defined inXYZ_for_Community.permissionset-meta.xml
that has been added to deploy queue asExample_Namespace__XYZ_for_Community
Actual result
Deployment fails with the error message
Cannot create permission set group components since the following permission set names are invalid: XYZ_for_Community
.System Information