Loading

Error 'Salesforce Could Not Create This Lead' on Web-to-Lead Form Submission in Salesforce

Veröffentlichungsdatum: Oct 7, 2026
Beschreibung

After setting up Web-to-Lead in Salesforce and adding the code to a website, a system administrator may receive an email with the error message "Salesforce could not create this lead because of the reason listed below." This email is sent to the Default Lead Creator and cannot be customized.

There are several reasons this Web-to-Lead error occurs, all of which are explained in this article along with steps to resolve them. 

Lösung

This article explains how to resolve the most common causes of the "Salesforce could not create this Lead" error on Web-to-Lead form submissions: duplicate rule blocks, missing Country values on State and Country/Territory Picklist fields, a disabled Web-to-Lead interface, and unique field conflicts.

Reason: "Use one of these records?"

This error occurs when a submitted lead form has information that matches an existing lead record in Salesforce, which triggers a duplicate rule. This is a preventative measure to stop malicious form submissions from creating numerous bad records.

If you understand the risks, you can deactivate the standard Lead Duplicate Rules and Lead Matching Rules in Salesforce. Deactivating these rules removes duplicate protection for your entire org, not just for Web-to-Lead submissions. Consider whether a narrower duplicate rule exception fits your org better before you deactivate them.

Deactivate Duplicate Rules

  1. Click the gear icon and then click Setup.
  2. In the Quick Find box, enter "Duplicate Rules" and click Duplicate Rules.
  3. Click Standard Rule for Leads with Duplicate Contacts and then click Deactivate.

Deactivate Matching Rules

  1. In the Quick Find box, enter Matching Rules and click Matching Rules.
  2. Click Deactivate next to Standard Lead Matching Rule.
  3. Click OK on the prompt that appears.

Reduce Spam-Triggered Errors

This error is partly a defense against malicious or bot-driven submissions. Adding CAPTCHA or reCAPTCHA to the public-facing Web-to-Lead form is recommended to reduce spam-triggered errors at the source, rather than relying solely on deactivating duplicate protection.

Reason: "A country must be specified before specifying a state value for field"

This error occurs when the State and Country/Territory Picklist feature is enabled in your Salesforce org. The standard State and Country fields are used on the Web-to-Lead form, and a customer enters a value in the State field without selecting a Country. The submission fails.

When State and Country/Territory Picklist is enabled, the Country field acts as a controlling picklist and the State field acts as a dependent picklist. However, this dependency does not carry forward to the Web-to-Lead form, so the State field shows all available states regardless of the Country selected. If a customer selects a state that does not belong to the country they chose, the lead is not submitted successfully.

To resolve this, try one of the following:

  • Create custom "State" and "Country" fields on the Lead object and use those on the Web-to-Lead form instead of the standard fields.
  • Make the standard "Country" field required by using HTML coding on the Web-to-Lead form. Salesforce Validation Rules do not work for this purpose.
  • Contact your webmaster to implement the dependency between the "State" and "Country" fields on the form using JavaScript or another advanced web technology.

Salesforce Support does not support custom HTML coding. That responsibility falls on the webmaster or web developer.

Reason: "Web-to-Lead has been disabled for your organization"

This error occurs when the Web-to-Lead interface itself has been disabled at the org level. Any submission through the form fails with this message, and a public-facing form can generate a large volume of error emails in a short time.

To resolve this:

  1. Click the gear icon, then click Setup.
  2. In the Quick Find box, enter "Web-to-Lead" and click Web-to-Lead.
  3. Confirm the feature is enabled. If the form should no longer be active, deactivate Web-to-Lead or take the HTML form offline rather than leaving it live against a disabled setting.

Reason: A Unique Field on the Lead Object

This error can also occur when a field on the Lead object is set as unique. Duplicate values submitted in that field fail the same way. To resolve it, go to Setup > Object Manager > Lead > Fields & Relationships, locate the field, and remove or adjust the "Unique" constraint if it is not strictly required.

Reason: An Apex Trigger That Converts Leads

If an Apex trigger converts the Lead automatically on insert, it can conflict with the Web-to-Lead creation process and produce this error. If the causes above don't apply, review any before/after insert triggers on Lead for conversion logic.

Country Value Format

If you use existing HTML code, leads continue to come through without a form update to a picklist Country field. This holds as long as the country value entered matches the text format Salesforce expects.

FAQs

Who receives the "Salesforce could not create this Lead" email?

The email goes to the Default Lead Creator. You cannot customize the email.

Can I fix the State and Country mismatch without custom code?

Yes, partly. You can create custom "State" and "Country" fields on the Lead object and use them on the form. Making the standard Country field required, or syncing the two fields, needs HTML or JavaScript changes by your webmaster.

Nummer des Knowledge-Artikels

000386751

 
Laden
Salesforce Help | Article