Nifi - No Viable alternative @ Input '{' -


while trying insert xml data in cassendra db using apache nifi, getting below error. what's going wrong?

error : "no viable alternative @ input '{'

below replacetext processor entries:

search value : (?s:(^.*)$) replacement value : $1 character set : utf-8 maximum buffer size :1 mb replacement strategy :regex replace evaluation mode :entire text 

putcassandraql expects input valid cql statement. if have json in content (presumably following suggestions your other question), need create cql statement json "payload", such using replacetext following replacement value:

insert mytable json '$1'  

if previous flow file contains json object (and has no single quotes or escaped), should create valid cql statement it, use in putcassandraql.


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -