Loading
Salesforce now sends email only from verified domains. Read More

Salesforce CPQ Quote Line Editor error 'Duplicate field selected: [field name]'

Publish Date: Dec 12, 2024
Description
In Salesforce CPQ, a validation message on the Quote Line Editor with an error indicating "Duplicate field selected" signifies that two fields have the same API name on a CPQ object, not including the SBQQ namespace. 

For example, SBQQ__Distributor__c is an installed package field for CPQ.  A field name with API name Distributor__c is a field that can be successfully created but will cause "Duplicate field selected" errors.
Resolution

Field API names can't be duplicated because Salesforce doesn't include the field namespace when evaluating dynamic query logic. These field names have to be re-named in order to prevent errors. 

Rename field API names

1. Go to Setup in Lightning.
2. Search for the label of the field in the top Search Setup bar (i.e. "distributor discount");
3. Open all of the results and compare which field API names are the same as the managed field API names (without the "SBQQ__" prefix).
4. Rename the custom fields to have a different API name than the SBQQ field.  For example:

Object: Quote Line
Field: Distributor (Distributor__c)
Distributor__c changed to Distributor2__c will prevent the error from occurring.  

Additional Resources
SEE ALSO
Idea - vote on this feature enhancement request to not evaluate package namespaces when comparing field API names.
Knowledge Article Number

000382164

 
Loading
Salesforce Help | Article