Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form posting to a sandbox CRM instead of production: fix it

DLV-104High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A sandbox is a separate copy of a CRM used for testing. Salesforce, for example, has sandbox orgs that log in at test.salesforce.com, while production uses login.salesforce.com. Other CRMs offer test or developer accounts too. The data in them is not visible in your live account.

Why it costs you leads or sales

Real enquiries are accepted by the form, the visitor sees a thank-you page, and the integration reports success. But the sales team never sees them in the live CRM, so nobody follows up. Assignment rules, alerts and automations in production do not run either.

Because nothing errors, this can last weeks. Ad spend keeps bringing in leads that go to a dead end, and reports from the CRM show a sudden drop that looks like a marketing problem.

Where a lead goes when the integration points at the sandbox
  1. Visitor submits formThank-you page shown
  2. Integration sends leadUses sandbox credentials
  3. Production CRMNo record created
  4. Sales follow-upNever triggered

The lead is stored, but in the wrong environment, so sales never sees it.

Leads seen by sales vs leads submittedExample numbers
Leads seen by sales vs leads submitted (example)Submitted on site: 40 leads per week; Visible in production CRM: 0 leads per week; Sitting in sandbox: 40 leads per week0153140040Submitted on siteVisible in production…Sitting in sandboxleads per week

Example: 40 leads submitted per week, but only the ones sent before the switch to sandbox appear in production.

How to check if your site has it

Check which environment receives your leads
  1. Submit a clearly marked test lead

    Use a unique name and email, such as test+sandboxcheck@yourdomain.com, on the live form.

  2. Search production

    Look for that email in your live CRM. Allow a few minutes in case of a queue.

  3. Search the sandbox

    If production has nothing, log in to the sandbox or test account and search there. A match confirms the problem.

  4. Inspect the connection

    In the form plugin, automation tool or code, check the connected account, login URL, instance URL, account ID or API key. Sandbox values often contain words like test, sandbox, dev or a different subdomain.

  5. Check history

    Compare the date of the last lead in production with the date of the last site release or integration change.

How to fix it

Reconnect the integration to production
  1. Open the form plugin's CRM settings

    In plugins such as Gravity Forms, WPForms or Contact Form 7 add-ons, find the CRM feed or integration screen. Names vary by plugin.

  2. Disconnect and reconnect

    Remove the sandbox connection, then authorise again using your production login. For Salesforce, make sure the login URL is login.salesforce.com, not test.salesforce.com.

  3. Check staging copies

    If the site was cloned from staging, confirm the live site did not inherit stored keys.

Example: separate CRM settings per environment (Salesforce login URL)bash
# staging .env
CRM_LOGIN_URL=https://test.salesforce.com

# production .env
CRM_LOGIN_URL=https://login.salesforce.com
Recover the stranded leads
  1. Export from the sandbox

    Export the leads that landed there as a CSV, filtering out genuine test records.

  2. Import into production

    Use your CRM's import tool, map the fields and set the right owner and source so they are routed like normal leads.

  3. Contact them quickly

    Tell sales these are delayed enquiries so they can follow up promptly.

How to confirm it's fixed

Confirmation checklist
  • A fresh marked test lead appears in the production CRM within a few minutes.
  • The same lead does not appear in the sandbox.
  • Owner, source, UTM and lifecycle fields are filled in correctly.
  • Production notifications and assignment rules fire.
  • Stranded leads have been imported and assigned.

How to prevent it happening again

Prevention habits
  • Keep sandbox and production credentials in separate, clearly named environment settings.
  • Add a go-live step to your launch checklist: confirm the CRM connection points at production.
  • Never copy a staging database or settings export to production without reviewing integration keys.
  • Use a dedicated integration user in production so ownership is clear.
  • Run a test lead after every release or integration change, and check production for it.
  • Schedule a recurring test submission so a silent change shows up quickly.
Integration setup

Before

  • Live form connected to sandbox credentials
  • Production CRM shows no new leads
  • Nobody notices for weeks

After

  • Live form connected to production
  • Each lead appears in the CRM and triggers follow-up
  • Test lead after every change confirms it

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real lead form on a schedule with a marked test lead and checks that the submission goes through and that the test lead reaches the inbox and CRM. It can spot a sandbox problem only through a direct CRM lookup, which is available for 7 CRMs. In that case it looks for the test lead in your production CRM, and if it is missing, you get one alert after a re-check from a second region, with a screenshot and a likely cause.

What it does not do: for a CRM outside those 7, FunnelGuard cannot look inside the CRM, so it cannot tell a sandbox from production. It also cannot read your integration's credentials or settings, and it does not know why a lead is missing beyond what the checks show.

You can start with the Free plan (1 site, 2 journeys, daily checks, no card) or try any paid plan free for 3 days.

Questions people ask

Why are my form leads not showing up in my CRM?

One common cause is that the integration is connected to a sandbox or test account, so leads are stored there instead of in production. Submit a test lead with a unique email and search both environments. If it is only in the sandbox, reconnect the integration to production.

How do I know if my integration is using a Salesforce sandbox?

Check the login URL used for the connection. Sandboxes use test.salesforce.com, while production uses login.salesforce.com. Sandbox usernames also usually end with a suffix such as .sandboxname.

How do I switch a CRM integration from sandbox to production?

Disconnect the sandbox connection in your form plugin, automation tool or code, then authorise again using your production login and keys. Submit a marked test lead and confirm it appears in the live CRM and not the sandbox.

Can I move leads from a sandbox CRM into production?

Yes. Export the real leads from the sandbox as a CSV, remove test records, and import them into production using your CRM's import tool. Match on email first to avoid duplicates, and assign owners so sales follows up.

Why did my CRM integration start posting to sandbox after a site update?

Often a staging site was cloned or a settings export was copied to production, bringing sandbox keys with it. A developer may also have swapped credentials while testing. Check the connected account after every release.

Will the form show an error if it posts to a sandbox?

Usually not. The sandbox accepts the data normally, so the form and the integration both report success. That is why this problem often goes unnoticed until sales notices a drop in leads.

Can FunnelGuard detect a sandbox CRM connection?

Partly. FunnelGuard can find it when it does a direct CRM lookup, available for 7 CRMs, and the marked test lead is missing from production. For other CRMs you need to check production by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Only with a direct CRM lookup (7 CRMs).

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.