How to fix QuickBooks Script Error?

quickbooks script error

QuickBooks script error generally occurs when this software tries to connect to the internet via the internet explorer. Like many other desktop-based applications, QuickBooks uses the internet explorer to perform a host of actions.

In this article, you’ll learn to fix QuickBooks script error.

screenshot quickbooks script-error
Screenshot QuickBooks Script Error

Alter Internet Explorer settings to fix QuickBooks Script Error

Here are the steps to fix QuickBooks script error:

  1. Log into Windows with an admin account.
  2. Launch Internet Explorer.
  3. Go to the Command Bar and click on Tools.
  4. Click on Internet Options, then on the Security tab.
  5. Select Trusted Sites.
  6. Click on Sites
  7. In the Add column, enter *.intuit.com.
  8. Click on Add.
  9. Go to the Trusted Sites window again.
  10. Uncheck the option Require server verification.
  11. Go to Trusted Sites once again.
  12. Uncheck the option Enable Protected Mode.
  13. Close Internet Explorer.

You may have to set internet explorer as the default browser in windows to fix QuickBooks script error. To do so, follow the steps provided below:

  1. Launch Internet Explorer.
  2. From the Gear icon, select Tools.
  3. Click on Internet Options.
  4. Select Programs tab.
  5. Click on the Make Default option provided under Default Web Browser.
  6. Click on Ok.

To resolve any unexpected behavior, you can turn off notifications in Internet Explorer by following the steps provided below:

  1. Launch Internet Explorer and go to Tools.
  2. From the Internet Options go to the Advanced tab.
  3. Remove the checkmark against Display a notification about every script error box.
  4. Click on ok.

Change Firewall Settings

But apart from this, you may have to configure settings for windows firewall, enabling QuickBooks related connections to access the internet without encountering any errors.

You’ll have to set up firewall rules manually – both inbound and outbound rules. After you apply these rules, windows firewall will not block the access requests made by QuickBooks.

To create firewall rules for QuickBooks, follow the steps provided below:

  1. In the start menu, type Windows Firewall.
  2. Click on Advanced Settings.
  3. Click on Inbound Rules, and select New Rule.
  4. Click on Port, then Next.
  5. Select TCP, and enter the Specific Local Ports needed for your version of QuickBooks. You’ll learn about specific port numbers later in this post.
  6. Click on Next.
  7. Choose Allow the Connection.
  8. Click on Next.
  9. After ensuring that all ports profiles are marked, click on Next.
  10. Enter a name for the rule. This name will help you remember the rule and change it later, if required.
  11. Click on Finish.

You need to repeat the steps to create an Outbound rule.

Now let’s come to the ports. Versions of QuickBooks above 2019 have dynamic ports: specific ports that are exclusively meant for QuickBooks.

Read More: How To Allow QuickBooks Services Through Windows Firewall?

Here are the ports for versions before 2019:

  • v2017: 8019, 56727, 55373-55377.
  • v2018: 8019, 56728, 55378-55382.

The dynamic port number for QuickBooks 2019 and above follows the pattern: 8019, XXXXX. XXXXX.

To know the dynamic port number for your version of QuickBooks, follow the steps provided below:

  1. Go to the Start menu.
  2. Search QuickBooks Database Server Manager and open it.
  3. From the Port Monitor tab, find the version of QuickBooks installed on your system.
  4. Note the Port Number and enter it when creating the firewall rules manually.

You can click on Renew to create a new dynamic port number. But when you create a new dynamic port number, you need to follow the steps below:

  1. Open the Scan Folders tab.
  2. Click on Scan Now.

By doing this, you can reset firewall permissions for QuickBooks.

Note: just to reiterate, you can generate dynamic port numbers for versions older than v2019.

Create exceptions for QuickBooks program files

After creating custom firewall rules for ports, you need to create an exception for the QuickBooks program files.

To do so, you can follow the steps provided below:

  1. Go to the Start menu.
  2. Click on Windows Firewall.
  3. Go to the Advanced Settings.
  4. Select Inbound Rules and click on New Rule.
  5. Select Program. Click on Next.
  6. Click on This Program Path. Select Browse.
  7. Select the executable file that you want to add an exception for.
  8. Click on Allow the Connection. Select Next.
  9. Click on Next.
  10. Add a name for the rule and click on Finish.

Repeat the steps and add an exception for the program by creating a new outbound rule.

Now restart your system so that the changes take effect. But before doing so, save any changes made to QuickBooks data.

Configure your Anti-virus and Firewall programs

In addition to configuring windows firewall for QuickBooks, you must properly configure any installed anti-virus and firewall programs in order to ensure that they aren’t blocking the network connection.

For the steps to properly configure third party security software, you’ll have to contact the software provider.

Conclusion

QuickBooks script error may be difficult to fix. But you can resolve the error by following the methods provided in this article. After following a particular method, restart your system and check for errors. If the error still occurs, then move on to the following method until you resolve QuickBooks script error.

Frequently asked questions

Q. How do I fix a script error in QuickBooks Desktop?

A. You need to update the internet explorer and set custom firewall rules to resolve QuickBooks script error. Until you set new rules that enable QuickBooks to connect to the internet without being blocked, you’ll keep getting the script error.

Q. Can I change custom firewall rules in future?

A. Yes, you can. That’s why you must select a unique name for the firewall rule; otherwise, you may simply forget the custom rule and lose the ability to make changes.

Q. Will creating a custom firewall rule for QuickBooks put my data at greater security risk?

A. No, it won’t. QuickBooks will still use an encrypted network to connect to its server. Your data will be secure.