Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Parallel tests are failing while using command "sfpowerscripts apextests:trigger -l RunApexTestSuite --apextestsuite testsuite0 -u org_name #1453

Closed
adarsha45 opened this issue Jan 17, 2024 · 2 comments
Labels

Comments

@adarsha45
Copy link

Screenshot_1_ada_

  • many tests are showing failure with same error log , sometimes get fixed while rerun but is occurring multiple times.
  • in the above-mentioned file three parallel execution are same but one of them in random order is getting this issue .

Error
System.DmlException: Insert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, You can only assign users to permission set groups that have the "Updated" status.: []
Stacktrace
Class.compliancequest.SQX_Test_Account_Factory.assignPermissionSetGroup: line 386, column 1
Class.compliancequest.SQX_Test_1822_ComplaintQtyNotNegative.givenComplaint_ComplaintQuantityCannotBeNegative: line 38, column 1

@oscarrenalias @rody

@github-actions github-actions bot added the analysis To be decided on how to solution/fix label Jan 17, 2024
@azlam-abdulsalam azlam-abdulsalam added q&a and removed analysis To be decided on how to solution/fix labels Jan 17, 2024
@azlam-abdulsalam
Copy link
Contributor

@adarsha45 This is not a sfp issue, You will be able to reproduce the same issue by running the apex test suite in the UI. By default, salesforce executes these tests in parallel, You might want to check these tests or probably, need to change setting in the org to run synchronously

@rody
Copy link
Contributor

rody commented Jan 17, 2024

Hello @adarsha45,
For an explanation of the INVALID_CROSS_REFERENCE_KEY you can have a look at: https://www.salto.io/blog-posts/invalid-cross-reference-id

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants