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


Reply via email to