Note: Honeywell's SGC script may contain a bug.

德亮郝
Tera Contributor

During testing, I noticed that—despite explicitly passing the `firmware version`—the value was consistently failing to map to the corresponding table. Upon investigation, I discovered that there is a bug in the current code's handling of the `firmware version` field: regardless of what input you provide, the resulting value always ends up being empty. This occurs because the code path ultimately executes `output[i] = ''`; the `if-else` block is missing its curly braces (`{}`), which inadvertently exposes the `output[i] = ''` assignment outside the conditional logic. Therefore, if you encounter this issue, simply check and correct the `if-else` structure in the code, and everything should work fine. No need to worry.

1 REPLY 1

Tanushree Maiti
Giga Patron

Hi @德亮郝 ,

 

Raise an case(Hi ticket) with your ServiceNow vendor . 

If post validation ,they also find it as Bug, Product team will definitely correct it and include it in future version if needed. It would be helpful for all.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: