Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

putSql exception

avatar
Explorer

Hi,

I tried to insert some data in postgresql db using PUTSQL processor.

Below example of sql statement in putSql properties:

 

INSERT INTO myTable(date_response, success, code, payload_response) values ('${now()}', '${status:toNumber()}', '${code:toNumber()}', ${payload});

 

 The problem is when this insert is executed, i have this error:

org.postgresql.util.PSQLException: ERROR: column "zxlbavuzvmlvm2x6vedsemrdstzjrnnnzxlbavuzvmlvm2x6swpvz2v5qwlhv1f" does not exist.

What happen ? .... the payload_response column name is replace by the value of my flow file attribute ${payload}. Why ? any hints ?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

I'm on mobile but could it be that you are not wrapping it around the single quotes?

View solution in original post

2 REPLIES 2

avatar
Expert Contributor

I'm on mobile but could it be that you are not wrapping it around the single quotes?

avatar
Explorer

thanks, i forgot simple quote .. i'm stupid