Can't convert lead because restricted picklist field - Ideas - Salesforce Trailblazer Community
Trailblazer Community

All Ideas

Idea Details

Post an Idea
500  Points
Idea has been posted. Give it an upvote or downvote.

Can't convert lead because restricted picklist field

Campaigns & Leads

If you try to convert a lead, and any field on the lead is mapped to a restricted picklist field on Account, Contact, or Opp, for which the value on the lead is invalid, the following error is displayed.
Error when converting: We can't convert this lead because some values are restricted on the contact, account, or opportunity

This is tremendously unhelpful. I just spent over an hour tracking down such an error. The error message should identify the field that is causing the problem.

I was able to find the field by using this apex (anonymously) to identify all picklist fields on the Lead object, then displaying all these fields on the lead that could not be converted, then examining all the fields that were populated on the lead, to find which one was mapped to a restricted picklist for which it was invalid.

It should not be this hard. Also, when I determined where the error was, I tried to look in the Audit Log for who had created an erroneous lead conversion field mapping. Apparently this info is not captured in the audit log. It should be!
Map<String, Schema.SObjectField> fieldMap = Schema.SObjectType.Lead.fields.getMap();

Lead l = [select id, salutation,  geocodeaccuracy, leadsource, status from lead where id = '00QD000000zyUTG'];

for (String field : fieldMap.keySet()) {
	if (fieldMap.get(field).getDescribe().getType() == Schema.DisplayType.PICKLIST) {


Merge Idea · Flag

  • Upvotes
  • Downvotes



from AppExchange

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.