Skip to main content
mandychen
Silver ⭐️⭐️
Jul 26, 2023 3:09 AM UTC
Solved

Can Nifi insert data into uppercase table in postgesql ?

Hi Team,
I create a dataflow try to insert data into uppercase table in postgesql.

But it does not work.

Appreciate any help on this issue, I am new to Nifi.

 

nifi dataflow.png

 

Here are my setting for QueryDatabaseTable and PutDatabaseRecord

 

nifi dataflow querydatabasetable.png

 

nifi dataflow putdatabaserecord.png

 

The error message show

org.apache.nifi.processors.standard.db.TableNotFoundException: Table "ACPMA" not found, ensure the Catalog, Schema, and/or Table Names match those in the database exactly

 

nifi dataflow table is not exist.png

 

Here is a uppercase table ACPMA in postgesql.

 

nifi dataflow db table is exist.png

SAMSAL
SAMSALAnswer
Platinum ⭐️⭐️⭐️
Jul 26, 2023 12:39 PM UTC

Hi @mandychen ,

Have you tried removing the double quotes  from "ACPMA" in the Table Name property of the PutDatabaseRecord? I dont think you need it there.

 

If that helps please accept solution.

Thanks

 

2 replies

SAMSAL
SAMSALAnswer
Platinum ⭐️⭐️⭐️
Jul 26, 2023 12:39 PM UTC

Hi @mandychen ,

Have you tried removing the double quotes  from "ACPMA" in the Table Name property of the PutDatabaseRecord? I dont think you need it there.

 

If that helps please accept solution.

Thanks

 

Translate
mandychen
mandychenAuthor
Silver ⭐️⭐️
Jul 30, 2023 11:45 PM UTC

I see, it work!

Thanks for your information

Translate