Script Errors in QuickBooks Desktop: What They Mean and How to Fix Them

A pop-up that says an error occurred in the script on this page. Here is what it means and eight fixes, from the least to the most change.

Written by Adam Smith Updated: Applies to: QuickBooks Desktop (Windows)

Quick answer

Script errors in QuickBooks happen when a web page window inside the program fails to run its code. They are not damage to your company file. Click Yes to carry on, then work down the fixes: update QuickBooks, set Internet Explorer as the default browser, add Intuit’s sites as trusted sites in Internet Connection Setup, then run Quick Fix my Program in Tool Hub.

Back up first, and write down the full message, including the Line, Char, Error and URL lines. They tell you which window failed. Change one setting at a time and reopen QuickBooks after each change so you know which one worked.

What a script error means

QuickBooks Desktop shows some of its windows as web pages. Examples are update notices, in-product messages, payment windows, the Help window and the forms you e-file. When the script on one of those pages fails, Windows shows a box that reads something like “An error has occurred in the script on this page.”

An Intuit team member explained it this way in 2021: QuickBooks Desktop uses Internet Explorer to download updates and to display many windows, so the browser settings on the PC matter. That is why the fixes below change browser and security settings, not your books.

How to read the pop-up

Line in the boxWhat it tells you
Line and CharWhere the script stopped on the page. Useful to Intuit, not to you
ErrorThe script’s own message. Examples we saw in public threads: “Object doesn’t support property or method ‘startsWith’,” “Expected ‘)’,” and “Unable to get property length of undefined or null reference”
CodeOften 0, as in the threads we read. It is a script code, not a QuickBooks error number
URLThe web page that failed. A page on intuit.com or quickbooks.com points to an in-product window. Write it down

The numbers describe a web page, so two people can see different Line and Char values for the same problem. Match the fix to when the error appears, not to the numbers.

When it shows up

When it appearsWhat we saw in public threadsStart with
When you open QuickBooksReports from 2019 to 2024 on Pro, Premier and Pro PlusFixes 1 to 4
When you e-file W-2 and W-3 formsA January 2023 post on QuickBooks DesktopFixes 3, 4 and 7
In payment windowsIntuit’s article on internet connection problemsFixes 4 and 5
When you open the Help windowA March 2020 postFix 8

8 ways to fix script errors in QuickBooks

Go in this order. The first three change almost nothing on your PC.

Fix 1: Click Yes and carry on

In December 2019 an Intuit moderator said an in-product message can trigger the error, and that clicking Yes dismisses it. If the box appears once and QuickBooks works afterward, you may not need to change anything. Take a screenshot of the box first.

Fix 2: Update QuickBooks and Windows

  1. In QuickBooks choose Help, then Update QuickBooks Desktop, then Update Now.
  2. Restart QuickBooks when it asks.
  3. Run Windows Update and restart.

In July 2019 an Intuit moderator said engineers were working on a fix for an ongoing script error. In January 2020 an Intuit team member marked that issue as resolved. Some script errors come from Intuit’s side, and an update clears them.

Fix 3: Set Internet Explorer as the default browser

  1. Open Internet Explorer, then Tools, then Internet Options.
  2. Choose the Programs tab and click Make default.
  3. Close and reopen QuickBooks.

Microsoft ended support for the Internet Explorer 11 desktop app in June 2022, and some readers can’t find it. Intuit staff said in 2021 that an updated Internet Explorer had to be the default for QuickBooks. We found no newer Intuit statement for current releases. Intuit staff also pointed users to an article called “Use our built-in browser in QuickBooks Desktop,” so check whether your release has one. If your IT team blocks Internet Explorer, ask them before you change it.

Fix 4: Add Intuit’s sites as trusted sites

  1. In QuickBooks choose Help, then Internet Connection Setup.
  2. Choose Use my computer’s Internet connection settings, click Next, then Advanced Connection Settings.
  3. On the Security tab choose Trusted sites, then Sites.
  4. Add https://*.intuit.com, https://*.intuit.net and https://*.quickbooks.com, then Close.
  5. Untick Require server verification (https:) for this zone. Intuit moderators also tell people to turn off Enable Protected Mode for it.
  6. Choose Custom level, find Access data sources across domains under Miscellaneous, set it to Enable, then OK, Apply and OK.
  7. Close your company file, exit QuickBooks and reopen it.
Script Errors in QuickBooks Desktop: What They Mean and How to Fix Them

The domain list and the Access data sources setting come from Intuit’s article on internet connection problems, written for QuickBooks Payments. The server verification and Protected Mode advice comes from Intuit moderators in community threads. In Internet Explorer you can also add the same three addresses under Tools, then Compatibility View Settings.

Fix 5: Check the other security settings

  1. Return to Internet Connection Setup, then Advanced Connection Settings.
  2. On the Advanced tab, under Security, untick Do not save encrypted pages to disk and tick Use TLS 1.2.
  3. On the Security tab, open Custom level for the Internet zone and set these to Enable or Prompt: Binary and script behaviors, Download signed ActiveX controls, Run ActiveX controls and plug-ins, and Script ActiveX controls marked safe for scripting.
  4. On the Privacy tab, untick Turn on Pop-up Blocker.
  5. Restart the computer.

Every item here is from Intuit’s internet connection article. If your IT team manages Windows policies, they may reset these, so ask them before you rely on them.

Fix 6: Disable add-ons and clear the cache

  1. In Internet Options choose the Programs tab, then Manage add-ons.
  2. Disable the add-ons you don’t need, then close the window.
  3. On the General tab, under Browsing history, click Delete and clear temporary files.

Intuit moderators suggested both steps in a 2021 thread. Keep a list of what you disabled so you can undo it.

Fix 7: Check the date, time and time zone

Intuit’s moderator gave this step in a 2023 thread about a script error while e-filing W-2 forms. Right-click the clock, choose Adjust date/time, and make sure the date, time and time zone are correct and set automatically. A wrong clock makes secure web pages fail to load.

Fix 8: Run Quick Fix my Program

  1. Close QuickBooks and install the latest Tool Hub from Intuit.
  2. Choose Program Problems, then Quick Fix my Program.
  3. Open QuickBooks and your company file.

A reply in a January 2024 thread on QuickBooks Pro Plus 2022 gave Tool Hub as the fix. The thread doesn’t say it worked. Our Quick Fix my Program guide covers what to try next.

Other things to check

  • Security software and firewall. Intuit’s internet connection article tells you to change your firewall or security software settings so QuickBooks can keep a secure connection. If the error began after you installed or updated antivirus, start there.
  • A recent Windows update. One poster in a 2021 thread linked a script error to Windows update KB5003637 and said uninstalling it helped. That is one user’s report, not Intuit’s advice. Check Windows Update history for a change on the day the error began, and ask your IT person before you remove an update.
  • A Windows user profile. Sign in as a different Windows user and open QuickBooks. If the error is gone, the problem sits in your profile. This is our suggestion for testing, not an Intuit step.
  • Only one feature. If the error appears only in payroll forms or payments, the web page for that feature is failing. Note the URL and the exact steps and send them to Intuit support with a screenshot.

Still stuck?

Send us the full error text, the URL line, your QuickBooks version and your Windows version. With those we can tell whether it is an Intuit-side bug or a setting on your PC.

Ask a bookkeeper to take a look

Related: quickbooks utility application keeps popping up.

Related: QuickBooks Keeps Crashing, Freezing or Closing by Itself.

Related: QuickBooks Won’t Open.

Related: quickbooks unrecoverable error, outlook missing in quickbooks send forms.

Questions people ask

How do I fix script error Line 1401 Char 7, Unable to get property length of undefined or null reference? I can’t e-file W-2 and W-3 forms.

An Intuit moderator said to make Internet Explorer the default browser, check the PC’s date, time and time zone, and disable add-ons under Internet Options, Programs, Manage add-ons. Try the e-file again after each change.

My script error says Line 68, Char 54, Expected ‘)’, Code 0. It started two weeks ago on Pro 2021. How do I stop it?

Intuit’s team said to set Internet Explorer as the default, add *.intuit.com as a trusted site, turn off Require server verification and Protected Mode for it, disable add-ons and clear the cache. Fixes 3, 4 and 6 above have the steps.

Is there another option besides making Internet Explorer my default browser?

In that 2021 thread an Intuit team member said an updated Internet Explorer needs to be the default because QuickBooks uses it to download updates and show windows. They also pointed to Intuit’s article on the built-in browser, so check whether your release has one.

I get “Object doesn’t support property or method ‘startsWith’” after opening QuickBooks. Resetting Internet Explorer didn’t help.

In 2019 Intuit moderators said an in-product message triggered this one, that engineers were working on a fix, and that clicking Yes dismisses it. An Intuit team member marked it resolved in January 2020, so update QuickBooks first.

The script error just started on QuickBooks Desktop Pro Plus 2022. What changed?

Check what changed the day it began: a Windows update, new security software or a reset browser setting. A reply in that thread suggested installing the latest Tool Hub and running its fixes, after you back up the company file.

These questions are adapted from public Intuit Community threads: Script Error Quickbook Desktop Pro 2021 (April 2021 and January 2023); Script error after opening (July 2019); Script error message (October 2020 and January 2024). Threads can be edited or removed. The answers are short and based on Intuit’s own documentation, and we say so when a step comes from other community members.

Sources

Steps checked against Intuit’s documentation in October 2026. Intuit changes its articles, so confirm any step that looks different on your screen.

Quick Fix Bookkeepers is independent and not affiliated with Intuit. QuickBooks and Tool Hub are trademarks of Intuit Inc. Always back up your data before following repair steps.

Call toll free +1 (844) 998-4361