# data-spec after execution? aehh what?

**URL:** <https://forum.knime.com/t/data-spec-after-execution-aehh-what/803>\
**Category:** KNIME Analytics Platform\
**Created:** [July 21, 2010, 10:11am UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803 "2010-07-21T10:11:29Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Watzlaw](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/w/54ee81/32.png) [@Watzlaw](https://forum.knime.com/u/Watzlaw)\
**Post date:** [July 21, 2010, 10:11am UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/1 "2010-07-21T10:11:29Z")

</div>

Hello together,

Occasionally nodes show a red warning-sign after execution, which has the following tooltip:  
“DataSpec generated by configure does not match spec after execution”

The same shows up as error in the log-console.

two comments concerning this feature:

1. The mismatch is not critical, so it should be imho rather a warning in the console. Users often call me in for assistance, because they think something important went wrong.
2. The message is completely out-of-range for any user who does not implement nodes on his own. It’s just confusing and does not indicate what went wrong: At least my non-IT colleagues have no clue what “configure” or “spec” means.

I would suggest to change the logging-type to a warning, and the message to something more end-user friendly.

Best, Watzlaw

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [July 21, 2010, 12:54pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/2 "2010-07-21T12:54:56Z")

</div>

Usually, the end-user should not see such a message at all. This only happens if the node’s implementor has done something wrong. Does this happen with any of the official KNIME nodes or are these 3rd party nodes?

---

<div class="post-metadata">

**Author:** ![Watzlaw](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/w/54ee81/32.png) [@Watzlaw](https://forum.knime.com/u/Watzlaw)\
**Post date:** [July 21, 2010, 3:39pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/3 "2010-07-21T15:39:29Z")

</div>

E.g. R-Snippets if the users forgets to defines some output-attributes.

And 3rd party nodes for sure: Not in all cases it is that easy to predict the output-table structure without doing the actual computation a node is supposed to do during ‘execute’. Thus, the notification of knime should be imho less harsh and easier to understand.

Cheers, Watzlaw

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [July 21, 2010, 3:55pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/4 "2010-07-21T15:55:27Z")

</div>

If the node cannot compute the final spec inside configure, then it is supposed to return a ‘null’-spec but not just some half-correct spec, e.g. the Transpose node.  
Concerning the R-Snippet node we need to look into that.

---

<div class="post-metadata">

**Author:** ![gabriel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gabriel/32/61386_2.png) [@gabriel](https://forum.knime.com/u/gabriel)\
**Post date:** [July 21, 2010, 4:05pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/5 "2010-07-21T16:05:31Z")

</div>

Hi Watzlaw,  
As far as I can see it, the R Snippet (Local) node does not provide any output spec when the node is configured. Do you have an example where this might fail?  
Thanks, Thomas

---

<div class="post-metadata">

**Author:** ![Andreu\_Raya](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/f1d935/32.png) [@Andreu\_Raya](https://forum.knime.com/u/Andreu_Raya)\
**Post date:** [January 27, 2012, 10:14am UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/6 "2012-01-27T10:14:22Z")

</div>

Hi all,

&nbsp; I have getting the same error in a Database Reader node. Somebody knows how to avoid it?

&nbsp; Thanks,&nbsp; Andreu

---

<div class="post-metadata">

**Author:** ![schaudhuri](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@schaudhuri](https://forum.knime.com/u/schaudhuri)\
**Post date:** [February 29, 2012, 6:58pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/7 "2012-02-29T18:58:59Z")

</div>

I am having this error on the One2Many node.

---

<div class="post-metadata">

**Author:** ![gabriel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gabriel/32/61386_2.png) [@gabriel](https://forum.knime.com/u/gabriel)\
**Post date:** [March 1, 2012, 10:25am UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/8 "2012-03-01T10:25:41Z")

</div>

This error basically tells you that the data table (after execute) does not have the structure as proposed during configure. Since the node is fully executed, you can simply ignore this message. However, we need to understand the problem and fix it, do you have a small setup how we can reproduce this wrong behavior?

---

<div class="post-metadata">

**Author:** ![schaudhuri](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@schaudhuri](https://forum.knime.com/u/schaudhuri)\
**Post date:** [March 1, 2012, 7:41pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/9 "2012-03-01T19:41:31Z")

</div>

Hi Gabriel,

I was able to fix this error by re-running the nodes from start to finish.&nbsp; I have not been able to reproduce this error.&nbsp; Thank you though for your quick response!

Regards,

SC

---

<div class="post-metadata">

**Author:** ![clusty](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@clusty](https://forum.knime.com/u/clusty)\
**Post date:** [July 29, 2013, 1:32pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/10 "2013-07-29T13:32:45Z")

</div>

Hi,

I have this error with a Database Reader node. I read from a mySQL DB. It is related to a timestamp that I convert to a string (DATE\_FORMAT function).

```
DATE_FORMAT(time,'%Y-%m-%d %T:%f')
```

Any way to avoid the error message?

---

<div class="post-metadata">

**Author:** ![gabriel](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gabriel/32/61386_2.png) [@gabriel](https://forum.knime.com/u/gabriel)\
**Post date:** [July 29, 2013, 3:55pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/11 "2013-07-29T15:55:54Z")

</div>

We assume that the spec of the last execute/configure is the same and the underlying table structure didn't change between configure and execute. If you run this node again, the message disappears. In addition, you can prevent the to run the SQL query during configure by checking the corresponding box in the configurations dialog.

---

<div class="post-metadata">

**Author:** ![ChemMitch](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/7ba0ec/32.png) [@ChemMitch](https://forum.knime.com/u/ChemMitch)\
**Post date:** [December 27, 2016, 5:54pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/12 "2016-12-27T17:54:50Z")

</div>

Hello,

I see a similar error from a Database Looping node:

ERROR Database Looping&nbsp;&nbsp;&nbsp;&nbsp; 0:8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataSpec generated by configure does not match spec after execution.

This is KNIME 3.3.1.

The problem here is that the results are not returned and I know there are results for some of the queries because I've copied the SQL out of the KNIME.log file and pasted into SQL developer.

Is there a way to prevent the loss of results here?

I'm going to look into the other Database components.

---

<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:** [February 5, 2019, 1:18pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/13 "2019-02-05T13:18:08Z")

</div>

I experienced the same strange behavior today. There were Recursive Loop Start, Joiner and Recursive Loop End nodes in my workflow. The misbehaved subpart of the workflow looked as follows:

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/a/a54c669570c27892af26e3caf51dab638a269c33.png)  
Besides the “DataSpec generated by configure does not match spec after execution” complain I found seemingly corrupted data in the output table. Two of its columns contained data that didn’t match any data from the source table.

After some investigation, I figured out the Joiner node produced columns in an order slightly different from the order the columns of the input table. It happened because the Joiner replaced a column from the left table with a column from the right one. Let’s have a look at the configuration:

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/0/07fa93752bf032bd69514c72f1bc729675762b83.png)

Here is how columns were sorted in the source table, before entering the Recursive Loop Start node:  
 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/3/3d28ca74efeae3417399c133354fa743fa4ed304.png)

And here is how the table structure looked like after leaving the Joiner node:  
 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/f/fe549b51fa67fe45cc4fbe2d52308ff336fd0ebd.png)

You can see the “parent\_id” column moved from the next-to-last position no the last position. Which made KNIME completely confused.

I solved the problem by introducing a pair Extract Table Spec and Reference Column Resorter nodes as you can see in the next picture:

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

And it started working like a charm after that.

Well, my suspicion is a changed column order can cause the “not match spec” issue and a Joiner node within a (recursive) loop is a good start point for an investigation.

---

<div class="post-metadata">

**Author:** ![mskunt](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/e9bcb4/32.png) [@mskunt](https://forum.knime.com/u/mskunt)\
**Post date:** [July 23, 2019, 8:29am UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/14 "2019-07-23T08:29:24Z")

</div>

Hi, I had same error on database looping.  
you can solved the problem by set “execute\_without\_configure” settings to true.

 ![database%20looping](https://forum-cdn.knime.com/uploads/default/original/2X/8/8a2cbd7dcf22f287f1de4ea6f4d74e069f335ade.png)

---

<div class="post-metadata">

**Author:** ![s.roughley](https://forum-cdn.knime.com/user_avatar/forum.knime.com/s.roughley/32/366_2.png) [@s.roughley](https://forum.knime.com/u/s.roughley)\
**Post date:** [July 23, 2019, 4:19pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/15 "2019-07-23T16:19:41Z")

</div>

The Excel sheet reader does it quite regularly - in this case, if the file content has been changed between configure and execute times.

Steve

---

<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:** [March 6, 2020, 3:54pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/16 "2020-03-06T15:54:07Z")

</div>

Hi there,

@s.roughley I get this error if I remove sheet (delete or re-position) I was supposed to read from. Not if file content was just changed. Can you check it?

@jan_lender There is a ticket for this error in Recursive Loop End node and have given it +1.

Br,  
Ivan

---

<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:15pm UTC](https://forum.knime.com/t/data-spec-after-execution-aehh-what/803/17 "2023-06-23T20:15:34Z")

</div>


