# String Manipulation | Execute failed: Unable to compile expression

**URL:** <https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866>\
**Category:** KNIME Analytics Platform\
**Created:** [July 7, 2016, 6:21pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866 "2016-07-07T18:21:32Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanatan.u](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@sanatan.u](https://forum.knime.com/u/sanatan.u)\
**Post date:** [July 7, 2016, 6:21pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/1 "2016-07-07T18:21:32Z")

</div>

Hi,

I am using a nested loop process and within that i have 2 string manipulation nodes which fails after 1900th loop

Please help.

ERROR String Manipulation&nbsp; 0:572:562:540 Execute failed: Unable to compile expression  
ERROR at line 54  
AbstractSnippetExpression cannot be resolved to a type

ERROR at line 60  
Abort cannot be resolved to a type

ERROR at line 52  
The import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression cannot be resolved

ERROR at line 53  
The import org.knime.ext.sun.nodes.script.expression.Abort cannot be resolved

ERROR at line 60  
The method internalEvaluate() of type Expression23427 must override or implement a supertype method  
ERROR String Manipulation&nbsp; 0:572:562:541 Execute failed: Unable to compile expression  
ERROR at line 54  
AbstractSnippetExpression cannot be resolved to a type

ERROR at line 60  
Abort cannot be resolved to a type

Best,

Sanatan

---

<div class="post-metadata">

**Author:** ![Iris](https://forum-cdn.knime.com/user_avatar/forum.knime.com/iris/32/14_2.png) [@Iris](https://forum.knime.com/u/Iris)\
**Post date:** [July 8, 2016, 10:59am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/2 "2016-07-08T10:59:34Z")

</div>

Hi Sanatan,

could you maybe send me the workflow?

Thank you, Iris

---

<div class="post-metadata">

**Author:** ![Ksen](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/0ea827/32.png) [@Ksen](https://forum.knime.com/u/Ksen)\
**Post date:** [December 7, 2017, 6:45pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/3 "2017-12-07T18:45:32Z")

</div>

Hi all

I have the same problem with node String Manipulation which is part of Image Analysis Metanode in my workflow. Everything above the String Manipulation works well.&nbsp;Can someone suggest the solution?

&nbsp;

Best wishes,

Ksen

---

<div class="post-metadata">

**Author:** ![Aaron\_Hart](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aaron_hart/32/7814_2.png) [@Aaron\_Hart](https://forum.knime.com/u/Aaron_Hart)\
**Post date:** [September 17, 2018, 11:11am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/4 "2018-09-17T11:11:57Z")

</div>

I am having the same issue. I have an executed workflow, when I reset the node I get an error (pasted below). Any hints on what might be going on?

Thanks,

Aaron

WARN String Manipulation 4:0:650 failed to apply settings: Unable to compile expression  
ERROR at line 58  
AbstractSnippetExpression cannot be resolved to a type  
Line : 57 import org.knime.ext.sun.nodes.script.expression.Abort;  
Line : 58 public class Expression369 extends AbstractSnippetExpression {

ERROR at line 63  
Abort cannot be resolved to a type  
Line : 62 @Override  
Line : 63 public java.lang.String internalEvaluate() throws Abort {

ERROR at line 56  
The import org.knime.ext.sun.nodes.script.expression cannot be resolved  
Line : 55 import static org.knime.base.node.preproc.stringmanipulation.manipulator.UpperCaseManipulator.\*;  
Line : 56 import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression;

ERROR at line 57  
The import org.knime.ext.sun.nodes.script.expression cannot be resolved  
Line : 56 import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression;  
Line : 57 import org.knime.ext.sun.nodes.script.expression.Abort;

ERROR at line 63  
The method internalEvaluate() of type Expression369 must override or implement a supertype method  
Line : 62 @Override  
Line : 63 public java.lang.String internalEvaluate() throws Abort {

---

<div class="post-metadata">

**Author:** ![Aaron\_Hart](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aaron_hart/32/7814_2.png) [@Aaron\_Hart](https://forum.knime.com/u/Aaron_Hart)\
**Post date:** [September 17, 2018, 11:44am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/5 "2018-09-17T11:44:12Z")

</div>

I resolved this by updating my KNIME installation, but it’s still not clear what the problem was.

---

<div class="post-metadata">

**Author:** ![jan\_lender](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jan_lender/32/11438_2.png) [@jan\_lender](https://forum.knime.com/u/jan_lender)\
**Post date:** [January 7, 2021, 11:18am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/6 "2021-01-07T11:18:31Z")

</div>

Same issue today. KNIME 4.3.0 Mac.  
Attaching a part of log.  
[KNIME\_StringManipulation\_error\_log.txt](https://forum.knime.com/uploads/short-url/zmprTtJ3modq2z0Kcct1AkKOBWL.txt) (48.7 KB)

Unfortunately I can’t share my workflow because it contains connection parameters to live DBs. If really needed, I could go through the export and remove it but this wouldn’t make me happy.

```auto
The import org.knime.ext.sun.nodes.script.expression.AbstractSnippetExpression cannot be resolved

```

---

<div class="post-metadata">

**Author:** ![jan\_lender](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jan_lender/32/11438_2.png) [@jan\_lender](https://forum.knime.com/u/jan_lender)\
**Post date:** [January 7, 2021, 12:05pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/7 "2021-01-07T12:05:20Z")

</div>

Restart of the KNIME analytics platform did help. The problem has vanished.

---

<div class="post-metadata">

**Author:** ![Tyler](https://forum-cdn.knime.com/user_avatar/forum.knime.com/tyler/32/5220_2.png) [@Tyler](https://forum.knime.com/u/Tyler)\
**Post date:** [February 9, 2021, 9:46pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/8 "2021-02-09T21:46:02Z")

</div>

Thanks @jan_lender, restarting knime worked.

usecase:

- recently upgraded to macOs Big Sur
- recently upgraded to knime 4.3.1
- workflow worked previously no errors
- knime was open for 3-4 hrs before attempting to run this workflow
- never had this error before in the past

Best, tyler

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [February 16, 2021, 1:33pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/9 "2021-02-16T13:33:58Z")

</div>

Hello all,

this seems Mac related?

Additionally see here on BigSur:

> [@KNIME AP & MacOS Big Sur](https://forum.knime.com/t/knime-ap-macos-big-sur/29147):
>
> This is to our users running KNIME Analytics Platform on Mac: Apple’s latest MacOS version 11.0 “Big Sur” was released mid November and we see slow adoption both externally and internally. We noticed this release brings some changes that are incompatible with Eclipse – the framework that KNIME Analytics Platform is based on. To our knowledge these problems are only visual artifacts in the KNIME UI such as distorted table views in the KNIME editor, for instance in the node repository or the nod…

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![jan\_lender](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jan_lender/32/11438_2.png) [@jan\_lender](https://forum.knime.com/u/jan_lender)\
**Post date:** [July 1, 2021, 10:59am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/10 "2021-07-01T10:59:13Z")

</div>

Experienced this issue with both Java Snippet (simple) and String Manipulation on Windows Server 2019, KNIME AP 4.3.2 just now.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/c/2/c2d44c3366a6823cbf8a0271efde790b47208a1e.png)  
Going to update & restart…

---

<div class="post-metadata">

**Author:** ![jan\_lender](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jan_lender/32/11438_2.png) [@jan\_lender](https://forum.knime.com/u/jan_lender)\
**Post date:** [July 1, 2021, 11:36am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/11 "2021-07-01T11:36:50Z")

</div>

Update & restart did help.

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [July 12, 2021, 9:56am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/12 "2021-07-12T09:56:11Z")

</div>

Hello @jan_lender and others,

there is open ticket to address this behavior and upon news someone will update this topic.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![jan\_lender](https://forum-cdn.knime.com/user_avatar/forum.knime.com/jan_lender/32/11438_2.png) [@jan\_lender](https://forum.knime.com/u/jan_lender)\
**Post date:** [July 24, 2021, 2:23pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/13 "2021-07-24T14:23:06Z")

</div>

Well, this started to happen to me more ofter last weeks. These days I work on Windows Server, KNIME AP 4.3.3. It’s usually after KNIME app and my Windows session are inactive for a number of days. I usually connect with my Mac using Microsoft Remote Desktop to a remote Windows Server 2019 Standard running on a virtualized HW, where I have my KNIME open permanently. There I start to work with a workflow that is already open there, and after some time I end up with this problem.

---

<div class="post-metadata">

**Author:** ![thiecret](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/t/d26b3c/32.png) [@thiecret](https://forum.knime.com/u/thiecret)\
**Post date:** [July 26, 2021, 8:26am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/14 "2021-07-26T08:26:51Z")

</div>

Why do you use

**\> String manipulation node**

?  
Java snippet or Java Snippet (simple) are better…  
I don’t understand the use of this node…

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 9, 2021, 12:31pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/15 "2021-12-09T12:31:03Z")

</div>

Hello there,

this issue was addressed with KNIME version 4.5.0

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![dimi](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/a3d4f5/32.png) [@dimi](https://forum.knime.com/u/dimi)\
**Post date:** [January 12, 2022, 7:59am UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/16 "2022-01-12T07:59:52Z")

</div>

@Ipazin, awesome 🙂 Just ran into it with 4.4.2

---

<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:** [June 23, 2023, 8:18pm UTC](https://forum.knime.com/t/string-manipulation-execute-failed-unable-to-compile-expression/2866/17 "2023-06-23T20:18:24Z")

</div>

Closed on June 23, 2023, 8:18pm UTC


