Support Questions
Find answers, ask questions, and share your expertise

How to pass a dictionary as an argument into ExecuteStreamCommand?

Explorer

Hello, I need to pass a dictionary as an argument into the ExecuteStreamCommand processor. My dictionary is stored in an attribute called payload_test. For the example here I have only {"fruit": "apple"}. However, it appears that when you pass the dictionary into the argument in ExecuteStreamCommand, the double quotes are removed by NiFi, and the Python execution fails.

 

The error it returns is: json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

 

vatodorov19_1-1637698300106.png

 

When the JS

vatodorov19_0-1637698252112.png

 

vatodorov19_2-1637698995214.png

 

 

0 REPLIES 0
; ;