We are creating a new API v59.0 record-triggered flow (create or update) on account object (for person account records in specific) which has a custom restricted picklist field. We are referencing the field in formula used in as the entry condition. Criteria is simple:
TEXT({!$Record.Picklist_Field__c}) <> 'specific value'
execute the flow
While debugging the flow, if the picklist is set to one of the available values, it works as expected, but when the picklist value is kept blank, we get the following gack error (kind of https://developer.salesforce.com/blogs/engineering/2015/02/gack):
Error ID: 743738450-253589 (1192326156)
Strange thing is that the flow works as expected when activated and triggered real-time even with the picklist field being blank. We are sticking to formula as we have some additional criteria to evaluate not part of the triggering record. The error is thrown when debugged as both syst admin and as normal end user, so doesn't seem to be an issue with FLS. The error is not thrown when we set 'Skip start condition requirements' while debug. There's also no issue when using the 'All Conditions Are Met (AND)' option as the entry condition with just the following:
Picklist_Field__c DOES NOT EQUAL Specific_Value
Capturing debug logs doesn't help as it won't occur in real-time.
Does anyone know if it's a known issue when the formula references a null picklist field as part of the entry condition in record-triggered flow? Is it possible to debug and find more details on cause of the error? Even though the automation works in real-time, we are bit hesitant to proceed. Appreciate any inputs!
NOT(ISPICKVAL({!Record.Picklist_Field__c},'specificValue'))