<turbo-stream action="update" target="wiki_card"><template>
<h1>E2120 Invalid or Null for Restricted Picklist</h1>
<p>The <code>INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST</code> error in Salesforce means that you're trying to insert or update a record with a value for a <strong>restricted picklist field</strong> that:</p><ol><li><strong>Is Not in the Picklist</strong> – The value you're passing isn't one of the predefined options in the picklist.</li><li><strong>Is Null</strong> (if required) – The picklist is restricted, and you're either passing <code>NULL</code> or an empty value when one is required.</li><li><strong>Is Case-Sensitive</strong> – If the picklist is case-sensitive, even a small mismatch (e.g., <code>Open</code> vs. <code>open</code>) will trigger this error.</li></ol><p><strong>ECE_SForceDataError: We got an error back from SalesForce when trying to update or insert data in SalesForce: Error returned from SFDC on create: [fields: CountryCode , message: Country Code: bad value for restricted picklist field: KO , statusCode: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST ].</strong><br><br></p><p>The field has been set up so that only certain values can be selected and entered. If this is correct, you will need to fix the data so that only valid values are present. If you still want to enter the values that you are sending from your ERP to Salesforce, then you would need to update your current picklist in Salesforce. Follow these steps here on how to add or update the picklist value -&gt; <a href="https://wiki.myrapidi.com/wiki/how_to_add_update_picklist_values_salesforce" data-turbo="true" data-turbo-stream="true" data-controller="wiki" data-action="wiki#updateUrl">How to add/update picklist values in Salesforce</a>.<br><br></p>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='E2120 Invalid or Null for Restricted Picklist' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='E2120 Invalid or Null for Restricted Picklist Salesforce Data Error' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>E2120 Invalid or Null for Restricted Picklist - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
