Hi everyone,
I have a data flow in ION, it makes an API call.
Is it possible to force data flow to fail if I receive specific response from API?
I need to force ION to generate error BOD.
Thanks,
KK
Hi Kirill, Confirm BOD is an internal ION BOD, you cannot find it in a Data Catalog. But, in the case of an error, the Confirm BOD generates an Error BOD, that can be tracked by a Monitor for example. So in the solution proposed by Prabodha, when we define a specific API status code to create a Confirm BOD, eventually will be generated an Error BOD, that can be "captured" by a Monitor. Here are some details: https://docs.infor.com/inforos/2024.x/en-us/useradminlib_cloud/default.html?helpcontent=iondeskceug_cloud_osm/lsm1436532204853.html&hl=confirm%2Cbod
But, as I understood your API does not return a "wrong" code. Maybe in your case, you can use the "Output Header" mapping. The idea is that you can map a response from the API call to the ION message header and then you can use this header for filtering, routing, etc. in a Data Flow. More details are here: https://docs.infor.com/inforos/2024.x/en-us/useradminlib_cloud/default.html?helpcontent=iontechconceag_cloud_osm/qat1666081572403.html&hl=output%2Cheader
Kind regards, Danil.
Based on the status code you can generate error bod.
or else based on the response, generate a custom notification.
or try a custom policy.
Hi Prabodha,
Thank you for your response.
Unfortunately that API does not return status code.
If I get response below, it means other application is online and I continue my data flow.
If API call returns anything else, I need to error out the BOD.
Regards
when the API returns 200 and the payload is empty, based on the payload you can generate a notification. If you are calling this inside workflow just get the value of "application" and generate the response.
if API does not return status code 200, based on the status code generate a custom notification or update Confirm BOD status codes(this will generate Confirm BOD).
But I don't want Confirm BOD, I need Error BOD.