- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Error Routing to Failure
- Labels:
-
Apache NiFi
-
NiFi Registry
Created ‎05-14-2021 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good afternoon everyone,
I have a problem with my flow in the processor "JoltTransformJSON" when I run the processor "ExecuteSQL" and no Oracle record returns to me.
I would like your help to know what to do in this case.
Thank you so much.
Created ‎05-17-2021 12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to use the following structure in the flow =
Thanks a lot for the help.
😃
Created ‎05-17-2021 05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@leandrolinof
The exception indicates "unable to unmarshal JSON to an object" which is commonly thrown when there is an issue with the source FlowFile content. For examples some unescaped Unicode characters like whitespace.
I'd inspect you source content. I see in your dataflow that you have a convertAvrotoJson processor that took in a 2.08 KB content source FlowFile and output only a 2 byte content FlowFile. Then later a ReplaceText processor that takes that 2 byte content and output 78 bytes. So you'll want to inspect the content output there just before your JoltTransformJson processor.
NiFi processor bulletins which you have shared will not return stack traces that may be produced by processor. Always best to check the nifi-app.log when you see a bulletin to see if maybe there is additional log output that can be helpful as well.
Hope this helps,
Matt
Created ‎05-17-2021 11:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying a different approach using "RouteOnAttribute" with the condition $ {CODE: contains ("N")} after "ConvertAvroToJSON"
I thought about putting this condition before all my flow.
So already valid if there is a record to be sent by Oracle.
But it is not working, a result of the always "unmatched" Even Oracle sending me "N".
Could you tell me if this condition I put in is correct?
Created ‎05-17-2021 11:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry the correct property for this case is $ {CONTADOR: equals ('N')}
Created ‎05-17-2021 12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
