Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Salesforce Web-to-Lead not working: wrong OID and 500 limit

DLV-079High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Web-to-Lead is a Salesforce feature that gives you an HTML form. The form posts to https://webto.salesforce.com/servlet/servlet.WebToLead with a hidden oid field, which is the ID of your Salesforce org (your Salesforce account). Salesforce uses it to decide where the lead goes.

Where a Web-to-Lead submission is lost
  1. Visitor submits formForm posts to the WebToLead servlet
  2. Salesforce receives itWrong oid, feature off or daily limit hit
  3. Lead createdNo record, no assignment, no alert to sales
  4. Sales follow-upNobody knows the lead existed

The visitor sees success, but Salesforce never creates the lead.

Why it costs you leads or sales

Leads on a busy day versus leads in SalesforceExample numbers
Leads on a busy day versus leads in Salesforce (example)Form submissions: 800 leads; Leads in Salesforce: 500 leads; Lost: 300 leads0307613800500300Form submissionsLeads in SalesforceLostleads

Example: 800 form submissions in a day, but only 500 become Salesforce leads when the cap is reached.

How to check if your site has it

Quick diagnosis
  • Compare form submissions (your form tool, site email or analytics) with new Leads in Salesforce for the same days.
  • View the page source of the form and confirm the hidden oid matches your org ID in Salesforce Setup > Company Information.
  • Check that Web-to-Lead is enabled in Setup > Web-to-Lead.
  • Look for Web-to-Lead error emails sent to the Default Lead Creator or the address set in Web-to-Lead settings.
  • Count Web-to-Lead leads created in the last 24 hours and see if it is near 500.
  • Check that every field name and custom field ID in the form still exists in Salesforce.
  • Submit the live form with a test name and look for the lead.
Minimal Web-to-Lead form with debug fieldshtml
<form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
  <input type="hidden" name="oid" value="00DXXXXXXXXXXXX">
  <input type="hidden" name="retURL" value="https://example.com/thank-you">
  <!-- Debug only: remove after testing -->
  <input type="hidden" name="debug" value="1">
  <input type="hidden" name="debugEmail" value="you@example.com">
  <input name="first_name" type="text">
  <input name="last_name" type="text" required>
  <input name="company" type="text">
  <input name="email" type="email">
  <input type="submit" value="Send">
</form>

How to fix it

Fix a failing Web-to-Lead form
  1. Confirm the org ID

    In Salesforce, go to Setup > Company Information and copy the Salesforce.com Organization ID. Make sure the form's oid matches it. Production and sandbox have different IDs.

  2. Enable Web-to-Lead

    In Setup, search for Web-to-Lead and make sure it is enabled. Set a Default Lead Creator so error emails go to a person who reads them.

  3. Regenerate the form HTML

    In Web-to-Lead, click Create Web-to-Lead Form, pick the fields and copy the new code. This refreshes field names and custom field IDs.

  4. Fix the daily limit

    If you regularly approach 500 a day, reduce junk submissions, or move to an integration that uses the Salesforce API, which has different limits. Ask your Salesforce admin or account executive about your edition.

  5. Run a debug submission

    Add the debug fields, submit the live form and read the email Salesforce sends. Fix whatever it reports, then remove the debug fields.

Where to change the form code
  1. Edit the embed

    Paste the new Web-to-Lead HTML into a Custom HTML block, or update the settings of your form plugin if it posts to Salesforce. Clear page caches afterwards.

How to confirm it's fixed

Verify end to end
  1. Submit a test lead

    Use a clearly fake name and an inbox you control on the live page.

  2. Find it in Salesforce

    Open Leads and search for the test name. Check the Lead Source, owner and your custom fields.

  3. Check the debug email

    If debug is on, it should report success. Then remove the debug fields and test once more.

  4. Delete the test lead

    Keep your data clean and avoid skewing reports.

How to prevent it happening again

Habits that catch this early
  • Send Web-to-Lead error emails to a shared inbox, not one person.
  • Run a weekly count: form submissions versus new Salesforce leads.
  • Create a Salesforce report or dashboard of leads created per day by Lead Source.
  • Re-test the form after any Salesforce field change, sandbox refresh or site migration.
  • Add a bot-protection step you are allowed to use, such as a CAPTCHA, to keep spam from using up the daily limit.
  • Keep a note of which org ID belongs to production.

How FunnelGuard handles this

Questions people ask

Why is my Salesforce Web-to-Lead form not creating leads?

Common causes are a wrong oid (org ID), Web-to-Lead being disabled in Setup, mismatched field names, or reaching the daily limit. The visitor still sees your thank-you page because retURL controls the redirect. Add debug and debugEmail fields to get an email explaining the failure.

What is the Salesforce Web-to-Lead daily limit?

Salesforce documents a limit of 500 Web-to-Lead leads per 24 hours. Leads over the cap are not created. Check Salesforce help for your edition, as limits can change.

How do I find my Salesforce OID for Web-to-Lead?

In Salesforce go to Setup > Company Information and copy the Organization ID. Use it as the hidden oid field in the form. Sandbox orgs have a different ID from production.

Why does the thank-you page load even though no lead was created?

The redirect is set by the retURL field in your form, and Salesforce sends the visitor there whatever the result. A success page therefore does not prove a lead exists. Check Salesforce directly.

How do I debug Salesforce Web-to-Lead?

Add a hidden debug field set to 1 and a hidden debugEmail field with your address, then submit the form. Salesforce emails the outcome and any errors. Remove both fields when you finish.

Where do Web-to-Lead error emails go?

They go to the Default Lead Creator set in Web-to-Lead settings. Set it to a monitored address so failures are not missed.

Does FunnelGuard monitor Salesforce Web-to-Lead?

Not yet. FunnelGuard has no Salesforce lookup, so it cannot confirm a lead was created there. It can run your live form journey on a schedule and check that test leads reach the inbox and CRM it covers.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.