Get 50% OFF QuickBooks for 3 months*

Buy now
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Work smarter and get more done with advanced tools that save you time. Discover QuickBooks Online Advanced.
Bar2
Level 1

Script Error

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

Solved
Best answer July 07, 2025

Best Answers
NFern
Level 4

Script Error

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.

View solution in original post

16 Comments 16
RhoiceW
QuickBooks Team

Script Error

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. 

SIAB
Level 7

Script Error

@Bar2 

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

Whitelyte
Level 1

Script Error

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.

SIAB
Level 7

Script Error

@Whitelyte 

Which Windows OS do you run?

jelizondo
Level 1

Script Error

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.

ZackE
Moderator

Script Error

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!

Bar2
Level 1

Script Error

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

SIAB
Level 7

Script Error

@jelizondo 

Which Windows OS?

 

jeffslavitz
Level 1

Script Error

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

Mike Lydon
Level 1

Script Error

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

 

 

jeffslavitz
Level 1

Script Error

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

jeffslavitz
Level 1

Script Error

To answer my own question, if you Google "what is cdn.optimizely.com" you will see what a content delivery network does.  From my reading it looks like it caches web pages to improve Quickbooks performance and allows for A/B testing of web pages.  If your use of Quickbooks doesn't need web pages, my guess is it is safe to block this URL.  Maybe Quickbooks mistakenly, or purposefully, discontinued the use of this Optimizely CDN.

Frank107
Level 1

Script Error

I am running the 2013 Desk top version of Quckbooks.   This worked for me, but I also had to shut down quickbooks and re-start my Windows P.C. for the update in the host file to take effect.  Once the page is blocked, the script that no longer runs on it doesn't run....   no more error.

 

Let me add... shame on quickbooks for sending us to some third party crap without our knowledge or permission.

Frank107
Level 1

Script Error

I am running the 2013 Desk top version of Quckbooks.   This worked for me, but I also had to shut down quickbooks and re-start my Windows P.C. for the update in the host file to take effect.  Once the page is blocked, the script that no longer runs on it doesn't run....   no more error.

 

Let me add... shame on quickbooks for sending us to some third party crap without our knowledge or permission.

NFern
Level 4

Script Error

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.

MCsandhills
Level 2

Script Error

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

Need QuickBooks guidance?
Log in to access expert advice and community support instantly.

Need to get in touch?

Contact us