Skip to main content

Hello everyone!

 

I am building a flow that (among other things) creates a case. On the Case object we have a custom picklist field that has a couple of activated values (say ''cat" and "dog") and a couple of deactivated values (say "sun" and "moon"). 

Now, I want to create a case with the value "cat". I can also see from the debug details that indeed, that field is set to "cat".

However, I then run into an INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST error for the value "moon", and I cannot figure out why or what I need to do to fix it.

 

I have already checked/confirmed the following things:

  • There is no typo.
  • The activated values are assigned to all data record types.
  • There is no default value on the picklist field.
  • There is no other picklist field that uses the value "moon", so it's definitely this field that's causing issues. 

 

Does anyone have an idea what could be the problem?

Any help is appreciated!

#flow
2 个回答
  1. 2022年6月20日 07:40

    Hi Vanessa,

     

    There are several different avenues to explore here. First, it would be great if you could generate a debug log of this happening by using the Debug button in the flow builder. It would help us see whether the flow is actively sending the invalid value to the server, or whether some other automation is trying to change the value outside of your flow.