After i upgraded Nifi for some reason SplitText processor is failing with this error: Destination cannot be within sources. I checked source code and i can see that it is caused by sources.contains(destination) in StandardProcessSession.java
Anyone have any clue what could be the problem?
I just checked new install of nifi 1.1.1 and still i get this error.
Scenario that i tested is next:
GetFile -> SplitText -> LogAttribute.
Here is the issue related to this: https://issues.apache.org/jira/browse/NIFI-3255?jql=text%20~%20%22splittext%22
The discussion in the Jira case you mention contains most of the information about the problem (and possible solutions). It appears to be a regression. A possible workaround might be to use ExtractText to remove the header and put it into an attribute, then SplitText with Header Line Count of zero, then ReplaceText with the header followed by the split file's content.
Hi Matt, yes i already hacked it with something similar. And now i am watching that issue. The logic in that piece of code is strange.