My Oracle Support Banner

Failed to update Javascript file - Could not execute the script because - Unexpected token operator, expected punc (Doc ID 2824001.1)

Last updated on DECEMBER 07, 2022

Applies to:

Oracle Commerce Cloud Service - Version 21.3.10 and later
Information in this document applies to any platform.


When attempted to edit/update javascript files to include functions that use default parameters the javascript file fails to save with the following errors:

"Error: Failed to update Javascript file myCustomFooter_v1.js."

Checking the network request sent the following may be seen:

   "errorCode": "00000000",
   "message": "Could not execute the script because: {  "message": "Unexpected token operator, expected punc",  "line": 47.0,  "col": 63.0,  "pos": 1873.0,  "stack": null}",
   "status": "500"


 Attempting to add javascript functions that use default parameters introduces these errors.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.