LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

DeepClone - Field Owner:Queue.DeveloperName is inaccessible

Open tomas-migra opened this issue 3 years ago • 0 comments

Steps to reproduce

Steps to reproduce the behavior:

  1. Create Validation rule on Task validation referencing Owner queue developer Name fore example Owner:Queue.DeveloperName = 'Something'
  2. Run Test method ListActionsTest.cloneRecordTests

Expected behaviour

Test class pass

Actual behaviour

Following error appear: ListActionsTest.cloneRecordTests Fail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Validation Formula "LUP_PreventAssignmentToGlobalContractAdm" Invalid (Field Owner:Queue.DeveloperName is inaccessible. Please review all fields referenced by the formula. Context: common.config.entity.ValidationFormulaContext): []
Class.SObjectDeepClone.save: line 87, column 1
Class.DeepClone.clone: line 54, column 1
Class.ListActionsTest.cloneRecordTests: line 153, column 1

tomas-migra avatar Jul 14 '22 13:07 tomas-migra