AnsweredAssumed Answered

Javascript Error "Uncaught SyntaxError: Invalid or unexpected token" on Studio delete field button

Question asked by Gary Smart on Apr 26, 2017
Latest reply on Apr 27, 2017 by Gary Smart

Hi,

 

I'm updating an On-Demand 7.8.2.0 Pro instance. I have a backup of the instance installed on my laptop, that for all intents and purposes appears to be working fine.

 

I want to delete a custom field. When in Studio when I try to delete a field, the"Delete" button does nothing but logs the following to the error console -

VM2509 index.php?module=ModuleBuilder&action=index&type=studio&bwcFrame=1:1 Uncaught SyntaxError: Invalid or unexpected token

 

I remove all our custom JS from JSGroupings, cleared the Sugar cache folder, did a Repair & Rebuild, and cleaned out the browser cache. But the error persists.

 

I can delete the field manually outside of Studio, but I want to be able to delete the field on the on-demand instance too (rather than just ignoring it).

 

Here are some other actions I tried:

- The ION 7.8.2.0 was recently automatically upgraded by Sugar. Prior to this in the 7.7 version the delete button worked.

- I can create new studio fields on my locally deployed 7.8.2.0 instance. But they too cannot be deleted.

- I deployed a fresh developer instance of 7.8.2.0 to my laptop and confirmed that the delete button works successfully.

 

Does anyone have any thoughts or tips on what could be causing this issue? Or suggestions on how I might be able to debug it?

 

Thanks in advance,

Gary.

Outcomes