It seems that the parameter coordination between client and server has failed.

bonsai
Mega Sage

Calling script include from UI page "Attachments" Parameters were passed on the call, but an issue occurred where the parameters were not accepted within the script include.

 

I have never failed to link parameters from a client-side script to a server-side script, but does this happen often? If the occurrence frequency is high, I think it is necessary to implement exception handling.

 

 

3 REPLIES 3

Mark Manders
Mega Patron

Without the scripts and knowing what is running on your instance, it is hard to say what could be the cause of this. Were the parameters not set correctly, or did something else happen? We don't know the process you are running this on, but even without knowing that: it is never a bad thing to add exception handling if it is something important. It does depend on the cause, though.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Nikhil Bajaj9
Giga Sage

Please share your script so that we can see what is wrong there.

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

bonsai
Mega Sage

I can't provide details about the script, but the script include is called from the client side as follows:

"var ga = new GlideAjax('script name');

ga.addParam('sysparm_name', 'function name');

ga.addParam('parameter 1', 'val');"

The script include receives the value as below.

"var tmp_val = this.getParameter('parameter 1');"

It seems that "tmp_val" was empty in the script include.

I'm wondering if parameter passing can fail.