+ Start a Discussion
sudha76sudha76 

Create Account Validation Rule that bypasses on Lead Conversion.

I have this rule on Accounts

 

OR(
ISBLANK( Site_Street__c ),
ISBLANK( Site_City__c ),
ISBLANK( TEXT(Site_Country__c ))
)

 

It works fine on Accounts.

 

If a lead is converted the error comes in when the user selects create a new Account. The LEAD already has all the values that I need on Acocunts, and the fields are also mapped correctly, then I do not understand why is this error coming on lead conversion.

 

Please can you help me. The error should come on lead conversion if the City is missing or street, but it still gives error even if all the data is present.

 

How weird is that?

Best Answer chosen by Admin (Salesforce Developers) 
goabhigogoabhigo

That is really weird!!

 

Can you add the validation into Leads and check once? Also it would be great to check the mappings (I have strong doubt on the mapping - there might be a mistake).

All Answers

goabhigogoabhigo

That is really weird!!

 

Can you add the validation into Leads and check once? Also it would be great to check the mappings (I have strong doubt on the mapping - there might be a mistake).

This was selected as the best answer
sudha76sudha76

I resolved it. There was a problem in the mapping of the fields.

 

The standard COUNTRY field was not being mapped to the custom field on the Account called Site_Country.

 

I made a formula field on the LEAD to copy the COUNTRY value and then map that to the custom account field.

 

it worked!

 

 

goabhigogoabhigo

Awesome :)