when trying to close SCTASK getting error

NAYEEMURR
Tera Contributor

HI all,

 

Please help me on

 

when trying to cancel SCTASK getting this error "submit canceled due to script error, contact system admin".

 

can't share screenshot, sorry.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION

Me Being Mustaq
Tera Guru

Assalamualaikum @NAYEEMURR ,

 

That error message usually points to a client-side script (UI Policy/Client Script) or server-side logic (Business Rule/Script Include) throwing an exception during form submission.

 

To Fix this can you follow this steps to debug:

  1.  Check Client Scripts (onSubmit/onChange)
  2.  Inspect UI Policies

  3. Review Business Rules
  4. Script Includes / GlideAjax
  5. Use Developer Console
  6. Check ACLs

If you want to isolate the issue fast, clone the SCTASK form layout and remove all UI Policies + Client Scripts temporarily. making them Active = False  If closing SCTASK works, reintroduce logic incrementally to pinpoint the  one which is blocking closing task 

 

You may find below thread helpful:

 


If it is helpful, please hit the thumbs button please mark the answer as correct based on the impact!!

 

 

Kind Regards,

Shaik Mohammed Mustaq

View solution in original post

3 REPLIES 3

Sarthak Kashyap
Mega Sage

Hi @NAYEEMURR ,

 

I think there is some error in your script, try to check logs or inspect > logs, maybe there is some error is showing.

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,
Sarthak

I don't see anything in error related to my issue. please help

Me Being Mustaq
Tera Guru

Assalamualaikum @NAYEEMURR ,

 

That error message usually points to a client-side script (UI Policy/Client Script) or server-side logic (Business Rule/Script Include) throwing an exception during form submission.

 

To Fix this can you follow this steps to debug:

  1.  Check Client Scripts (onSubmit/onChange)
  2.  Inspect UI Policies

  3. Review Business Rules
  4. Script Includes / GlideAjax
  5. Use Developer Console
  6. Check ACLs

If you want to isolate the issue fast, clone the SCTASK form layout and remove all UI Policies + Client Scripts temporarily. making them Active = False  If closing SCTASK works, reintroduce logic incrementally to pinpoint the  one which is blocking closing task 

 

You may find below thread helpful:

 


If it is helpful, please hit the thumbs button please mark the answer as correct based on the impact!!

 

 

Kind Regards,

Shaik Mohammed Mustaq