function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Intigration vIntigration v 

Getting invalid or unexpected token error on click of javascript button

Hi,
can anyone please suggest,am getting the error below when i click the button.

"Invalid or unexpected token "

window.open("/apex/APXTConga4__Conga_Composer
?serverUrl={!API.Partner_Server_URL_370}
&Id={!URLENCODE(WorkOrder__c.Id)}

&ReportId=[Measurements]00Oj0000000imnL,[Standards]00Oj0000000imnp,[Tasks1]00Oj0000000aFdQ,[Account]00Oj0000000jB2N
&QueryId=[Tasks]a0Xf100000Ao7bI,[Signature]a0X3Z00000SSFiG,[Electrical]a0X3Z00000SSZmq,[EccentricityTest]a0X3Z00000W37Uc,[SensitivityTest]a0X3Z00000W37W0,[RepeatabilityTest]a0X3Z00000W37W5,[LinearityTest]a0X3Z00000W37WA

&TemplateGroup=CalibrationCert
&TemplateId={!WorkOrder_c.Conga_Report_WFRULES_c}
&contentShareType=V
&contentVisibility=AllUsers

&DefaultPDF=1
&_AC0=1


&DC={!IF( WorkOrder_c.Work_Order_Status_c  = "In Progress", 1, 0)}

&OFN=SR+{!WorkOrder__c.Name}+Ver.+0{!WorkOrder_c.Versionc}+{!WorkOrderc.Equipmentc}+TAG+{!WorkOrderc.EquipmentTagc}+SN+{!WorkOrderc.SerialNoc}+{!WorkOrderc.ServiceDateTEXT_c}

&CSvisible=1
&CSBusinessUnit=TechnicianOnly
&CSrecipient1={!WorkOrder_c.PrimaryTechnicianId_c}
&CSRole1=IN_PERSON_SIGNER
&CSRoutingType=Serial

&DS7=1141
&DS7Preview=1
&BML={!WorkOrder_c.PrimaryTechnician_c}+!!!PLEASE+REVIEW+CAREFULLY+BEFORE+CONTINUING
&AttachmentParentId={!Case.Id}")
SwethaSwetha (Salesforce Developers) 
HI,
There are multiple conditions here. Are you able to narrow down which line of button code is throwing this error by removing bits of them? Thx

Related: https://salesforce.stackexchange.com/questions/219292/unexpected-token-error-on-javascript-button
https://salesforce.stackexchange.com/questions/142838/unexpected-identifier-error-in-javascript-button