# ERROR: Generic JavaScript View (JavaScript) (legacy)

**URL:** <https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258>\
**Category:** KNIME Server\
**Created:** [October 22, 2025, 6:06am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258 "2025-10-22T06:06:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannesmergler](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/9d8465/32.png) [@hannesmergler](https://forum.knime.com/u/hannesmergler)\
**Post date:** [October 22, 2025, 6:06am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/1 "2025-10-22T06:06:53Z")

</div>

Sorry, a problem occurred:(See less)

**Node:** 2:0:33:0:29 \*\*Message:\*\*Error in script SyntaxError: Unexpected token ‘&’

Locally all is running proper.  
**Server version** 4.18.1

-Djs.core.sanitize.sanitizeGenericJSView explizit false is set in Tomcat and in knime.ini  
Both did not help.

---

<div class="post-metadata">

**Author:** ![BenceKeseru](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@BenceKeseru](https://forum.knime.com/u/BenceKeseru)\
**Post date:** [October 22, 2025, 7:35am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/2 "2025-10-22T07:35:24Z")

</div>

Can you please provide more information about the error?  
Based on the description the issue seems similar to this, I would recommend checking the solution suggested there:

> [@ERROR: Generic JavaScript View (JavaScript)](https://forum.knime.com/t/error-generic-javascript-view-javascript/84733):
>
> I tried to test [my workflow](https://edu-hub.knime.com/s/k5YrcUdGHVDdsENI) in edu-hub but I get this error when I run: Node: 6:0:8:0:1 (JS Map) Message:Error in script SyntaxError: Unexpected token ‘&’ at [https://apps.edu-hub.knime.com/\_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/js/base/node/viz/generic/knime-generic-view-v3.js:94:41](https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/js/base/node/viz/generic/knime-generic-view-v3.js:94:41) at Object.execCb ([https://apps.edu-hub.knime.com/\_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.…](https://apps.edu-hub.knime.com/_/api/jobs/278fc8c4-334e-43a5-ae19-2395dd9c883e/workflow/wizard/web-resources/org/knime/core/require.js:5:12897)

---

<div class="post-metadata">

**Author:** ![hannesmergler](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/9d8465/32.png) [@hannesmergler](https://forum.knime.com/u/hannesmergler)\
**Post date:** [October 22, 2025, 7:59am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/3 "2025-10-22T07:59:05Z")

</div>

@BenceKeseru as described we tried to set this in our server config and tomcat config.  
Still same behavior. Seems we cannot override the attribute correct, or it is unable to be disabled.

Same error as in linked post.  
Any other hints?

---

<div class="post-metadata">

**Author:** ![BenceKeseru](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@BenceKeseru](https://forum.knime.com/u/BenceKeseru)\
**Post date:** [October 22, 2025, 9:12am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/4 "2025-10-22T09:12:56Z")

</div>

> [@hannesmergler](#):
>
> Djs.core.sanitize.sanitizeGenericJSView

`-Djs.core.sanitize.clientHTML`=false → This will turn off sanitisation in general  
`-Djs.core.sanitize.sanitizeGenericJSView`=false → This will only turn it off for the Generic JS View

What is the “Sanitize input data” setting in the Generic JavaScript View node? If `-Djs.core.sanitize.sanitizeGenericJSView` is set to `false` explicitly then the value of the checkbox is taken into account again.

---

<div class="post-metadata">

**Author:** ![hannesmergler](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/h/9d8465/32.png) [@hannesmergler](https://forum.knime.com/u/hannesmergler)\
**Post date:** [October 22, 2025, 9:38am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/5 "2025-10-22T09:38:36Z")

</div>

@BenceKeseru thanks for helping out.  
Still same behavior with error:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/c/7c9a01f9c5e7d99b0284843f8d0d4bdd174ac9ac.png)

---

<div class="post-metadata">

**Author:** ![AlexanderFillbrunn](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alexanderfillbrunn/32/357_2.png) [@AlexanderFillbrunn](https://forum.knime.com/u/AlexanderFillbrunn)\
**Post date:** [October 28, 2025, 9:33am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/6 "2025-10-28T09:33:30Z")

</div>

Hi @hannesmergler ,

This looks like for some reason the HTML is still being sanitized. I have created a data app for debugging. It retrieves the current values of the two system properties and shows them in the browser. Can you run this data app in your new Server installation and see what it outputs?

Kind regards,

Alexander

[Sanitization.knwf](https://forum.knime.com/uploads/short-url/1GE2sei8LqDGPoghnQ1cJdagF3n.knwf) (76.4 KB)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [January 26, 2026, 9:33am UTC](https://forum.knime.com/t/error-generic-javascript-view-javascript-legacy/90258/7 "2026-01-26T09:33:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
