nifi Error(ExecuteScript): is not the most recent version of this flow file within this session
2017-01-03 16:31
513 查看
ExecuteScript(python):
当使用如下脚本,会报is not the most recent version of this FlowFile within this session。
flowFile = session.get()
session.putAttribute(flowFile, 'filename', 'executeScript')
if(flowFile != None):
session.transfer(flowFile, REL_SUCCESS)
else:
session.transfer(flowFile, REL_FAILURE)
修改第二行代码, 一定要赋值回一个flowFile变量:
flowFile = session.putAttribute(flowFile, 'filename', 'executeScript')
当使用如下脚本,会报is not the most recent version of this FlowFile within this session。
flowFile = session.get()
session.putAttribute(flowFile, 'filename', 'executeScript')
if(flowFile != None):
session.transfer(flowFile, REL_SUCCESS)
else:
session.transfer(flowFile, REL_FAILURE)
修改第二行代码, 一定要赋值回一个flowFile变量:
flowFile = session.putAttribute(flowFile, 'filename', 'executeScript')
相关文章推荐
- Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required。
- 解决方案: the selected file is a solution file but was created by a newer version of this application and cannot be opened
- Eclipse打不开的错误:Version 1.3.1_01 of the JVM is not suitable for this product. Version: 1.4.1
- Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- mvn install Geoserver under ubuntu10.04 时遇到的错误:the API of the mojo scanner is not compatible with this plugin version. 的解决方法
- 解决cakePHP中的. session_start()[function.session-start];open_basedir restnction in effect.File(c:/windows/temp/)is not within the a
- Eclipse错误:Version 1.3.1_01 of the JVM is not suitable for this product
- 【原创】Eclipse无法启动,Version 1.4 of the JVM is not suitable for this project.Version 1.5
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- Version 1.4.0 of the JVM is not suitable for this product.Version:1.5.0 or greater is required
- Writing udev rules by Daniel Drake (dsd) Version 0.74 The most recent version of this document can
- This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in
- Version 1.5.0_07 of the JVM is not suitable for this product. Version: 1.6 or greater is required.
- 解决方案: the selected file is a solution file but was created by a newer version of this application an
- Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required
- eclipse启动错误:version 1.4 of the JVM is not suitable for this product. Version 1.5 or grea 。。。
- Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- 解决方案: the selected file is a solution file but was created by a newer version of this application an