Skip to main content
kellerj
Silver ⭐️⭐️⭐️
September 8, 2023
Question

Error with PutDatabaseRecord UPSERT on Oracle w/NiFi 1.18

I'm hoping someone might have a suggestion here.  A PutDatabaseRecord processor which was working properly under 1.15 started generating java.sql.BatchUpdateException: ORA-00936: missing expression on a 1.18 cluster.

I'm using the Oracle12+ database type and the incoming flowfile format is Avro - so there should be no Schema inference happening.

It's strange, since that error usually indicates a structural problem with the SQL itself.  So, I'm concerned that there is a defect in the 1.18 version of PutDatabaseRecord.  But, maybe there is something I can change about the source data or in the properties of the processor which will workaround this issue?

If anyone has seen something like this or has some suggestions I could try, I would appreciate it.  Thanks.

5 replies

TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
September 8, 2023

Can you post full error, logs, the sql, table structure.    What version of Oracle?

Can you post your full NiFi settings.  is it with all data, perhaps some nulls causing an issue.

what is the settings for the Avro reader?

 

Translate
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
September 8, 2023

Could be sensitive column name? a typo somewhere.

Translate
TimothySpann
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
September 9, 2023

Can you upgrade to NiFi 1.23.2?   If not, I would suggest opening a ticket with Cloudera.  This maybe a bug.   I would like to see full nifi logs though and which JDK you are.

what language set?   

Did the source system change?   https://support.oracle.com/knowledge/Oracle%20Cloud/2925617_1.html

nothing in provenance, bulletins or nifi logs/?

turn on debugging

https://community.cloudera.com/t5/Community-Articles/NiFi-Debugging-Tutorial/ta-p/246082

perhaps a dump of the data, maybe some strange characters in there.

Translate
VidyaSargur
Community Manager
Community Manager
September 20, 2023

@kellerj, Has the reply helped resolve your issue? If so, can you please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future?  If you are still experiencing the issue, can you provide the information @TimothySpann  has requested?

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.