Skip to main content

Get 50% OFF QuickBooks for 3 months*

Buy now
Switch to QuickBooks and 70% off for 3 Months
June 30, 2025
Solved

Script Error

  • June 30, 2025
  • 7 replies
  • 1 view

Windows 11 and QuickBooks Desktop Pro 2017 have worked together without a problem for several months until the other day.  Now I am regularly receiving a Script error as my backup is ending:.  

An error has occurred in the script on this page:

Line: 7 

Char: 444

Error: Expected identifier

Code:0

URL: https://a166211981.cdn.optimizely.com/client_storage/a166211981.html

Do you want to continue running scripts on this page?

I have answered Yes and No but doesn't seem to make a difference as it happens every time I make a (local) backup.  any help would be appreciated.

 

Barry

Best answer by NFern

In QuickBooks on the menu bar click HELP>Internet Connection Setup>Next>Advanced Connection Setting>Security (tab)>Restricted Sites>Sites. In the "Add this website to the zone:" paste or type the url address the error message is complaining about, such as a166211981(.)cdn(.)optimizely(.)com, as an example. Click Add>Close>OK>Done.  The "." are in parenthesizes because the Community no longer allows URL address examples.)


Logoff QuickBooks and then log back in. The script error message will no longer appear.


This can be used for all script error messages when opening QuickBooks. I have encountered several. They all seem to be connected to "User Experience Enhancement" (aka User Tracking) that are not functioning correctly. Blocking them does not affect the software....other than to block some pop-up ads Intuit may try to send.


You can answer YES or NO to get past the script error message if you are not bothered by it and do not want to take the above action. It does not affect QuickBooks one way or the other.

7 replies

QuickBooks Team
June 30, 2025

I suggest doing some troubleshooting steps to ensure the script error pop-up won't show anymore, Barry.

 

Since, you're using a 2017 version of QuickBooks Desktop pro, here a steps for you to follow in fixing this error:

 

  1. In the search box next to the Start menu icon, type Control Panel.
  2. Click the Control Panel. A page will appear on the Start Menu under the Best Match title.
  3. At the top of the control panel window, type change in the search box.
  4. Under the Program & Feature section title, select Change or remove a program.
  5. Locate the QuickBooks installation you want to repair, and then double-click it to launch the installer.
  6. When the QuickBooks Installer/ Maintenance Wizard launches, click Next to see the options Repair and Remove. Select Repair and then click Next to complete the process.
  7. Once completed, restart your computer, even if Windows does not prompt you to do so.

 

Also, I'd recommend reaching out to an IT professional for guidance about the script error.

 

Refer to this article for guidance in creating a backup of your company file in QuickBooks Desktop.

 

Feel free to reach out if you still have concerns about creating a backup file in QBDT. We're here to help you out. 

Level 2
July 1, 2025

@Bar2 

Install the trial version for Desktop 2018 or 2019. Did you encounter the same problem?

July 3, 2025

I got the identical script error when opening my co file. QB freezes when I try to receive inventory and I have to crash with task manager. After several attempts, QB couldn't open the co. file at all (6123,0).  File Dr couldn't repair, Windows installer couldn.t repair. I've reinstalled Premier 2015, but the same problem. File Dr. now tells me hosting mode is off and QBDBMgrN is not running on my computer. Norton 360 is active, but is allowing all QB through the firewall. https://a166211981.cdn.optimizely.com/client_storage/a166211981.html is a blank page with a white background.

Level 2
July 3, 2025

@Whitelyte 

Which Windows OS do you run?

Bar2Author
July 4, 2025

Windows 11 Pro was installed about 3 months ago - the script error started popping up a few days ago.

July 3, 2025

I'm having the same issue. Even went back to restore old Backups which in the past have eliminated this error, but doesn't seem to be working this time.

QuickBooks Team
July 3, 2025

Thanks for joining this thread, jelizondo.

 

If you've already performed the troubleshooting steps in RhoiceW's post, but you're still encountering a script error, I'd recommend getting in touch with our Customer Care team. They'll be able to pull up your account in a secure environment, conduct further research with you, and create an investigation ticket if necessary.

 

They can be reached while using QuickBooks.

 

Here's how:
 

  1. In the top menu bar, go to Help, then QuickBooks Desktop Help/Contact Us.
  2. Enter a question, keyword, or topic you need help with.
  3. Select Contact Us.

 

Be sure to review their support hours so you'll know when agents are available.

 

If there's any questions, I'm just a post away. Have an wonderful Thursday!

July 4, 2025

I have the same problem as well.  Since we aren't getting updates from QB anymore this must be a new conflict introduced by a Windows or another update?  Has anybody found a fix for this issue or is it time to upgrade my QB Desktop?

I'm using QB Desktop Pro 2018 with Microsoft Windows 10 Enterprise on a Dell Latitude 5430.

 

Cheers,

Jeff

July 4, 2025

Solution

-Block the offending URL in your windows hosts file-

-Edit hosts with notepad.exe as administrator-

Add the following line

# Block access to a url in a startup Quickbooks script that results in an error

127.0.0.1 a166211981.cdn.optimizely.com

 

 

July 4, 2025

Mike, are there any negative consequences with Quickbooks if this URL is blocked?

NFern
NFernAnswer
July 8, 2025

In QuickBooks on the menu bar click HELP>Internet Connection Setup>Next>Advanced Connection Setting>Security (tab)>Restricted Sites>Sites. In the "Add this website to the zone:" paste or type the url address the error message is complaining about, such as a166211981(.)cdn(.)optimizely(.)com, as an example. Click Add>Close>OK>Done.  The "." are in parenthesizes because the Community no longer allows URL address examples.)


Logoff QuickBooks and then log back in. The script error message will no longer appear.


This can be used for all script error messages when opening QuickBooks. I have encountered several. They all seem to be connected to "User Experience Enhancement" (aka User Tracking) that are not functioning correctly. Blocking them does not affect the software....other than to block some pop-up ads Intuit may try to send.


You can answer YES or NO to get past the script error message if you are not bothered by it and do not want to take the above action. It does not affect QuickBooks one way or the other.

July 8, 2025

Thank you for the step by step guide this worked perfectly!!