Hi devs, sharing also this behaviour with devs, as we kinda stuck to confirm/understand this issue. Thanks for any suggestions.
Thanks//Regards, Emanuel Oliveira Senior Data Engineer (Oracle, AWS, NiFi, Snowflake) | CTG\FERM | Galway TEL ext: 353 – (0)91-74 4971 | int: 8-737 4971 | who's who<http://fidelitycentral.fmr.com/ww/a639704> From: Oliveira, Emanuel <emanuel.olive...@fmr.com> Sent: Wednesday 26 February 2020 11:15 To: us...@nifi.apache.org Subject: not possible to set PG variable if processor referencing it is running ? Hi all, We using shell script/python using nipyapi (client for NIFI REST API) to set: PG variable: JOBID=<control-m ordered> But we would better renaming things so our LogMessages prefix we use ${job_jobid} instead of PG var ${JOBID}: JOBID:${job_jobid}|| Today for our surprise when we changed in python script to set a new PG var: job_jobid we got error: Cannot update variable 'job_jobid' because it is referenced by LogMessage Is this known/expected behaviour ? Im surprised enough to think this doesn’t make sense.. As workaround we could: PG variables to be set externally – inputs for th eflow: FLOW_JOBID FLOW_BEGIN_DT (xx) Add UpdateAttribute processor to create attributes as copies of the respective PG vars: job_jobid= ${FLOW_JOBID} job_begin_dt= ${FLOW_BEGIN_DT} Thanks//Regards, Emanuel Oliveira Senior Data Engineer