Throw New Fault – Rethrow Fault – OIC

Share

Throw New Fault – Rethrow Fault – OIC

In Oracle Integration Cloud (OIC), you can use the “Throw New Fault” and “Rethrow Fault” actions to handle exceptions and errors that occur during integration flow execution. These actions allow you to define custom fault messages and control the flow of your integration based on specific error conditions. Here’s how you can use them:

  1. Throw New Fault:
    1. The “Throw New Fault” action is used to raise a custom fault or exception within your integration flow.
    2. You can use this action when you want to handle specific conditions as errors and provide custom error messages.

Here are the steps to use the “Throw New Fault” action:

      1. Add the “Throw New Fault” action to your integration flow where you want to raise the fault.
      2. Configure the action to specify the fault name, fault type, and custom fault message. You can also set variables or expressions to include in the fault message.
    1. Define conditions or use expressions to determine when this action should be triggered.
  1. Rethrow Fault:
    1. The “Rethrow Fault” action is used to rethrow or propagate an existing fault that occurred earlier in the integration flow.
    2. You can use this action when you want to handle a specific fault and possibly provide custom error handling logic.

Here are the steps to use the “Rethrow Fault” action:

      1. Add the “Rethrow Fault” action to your integration flow where you want to rethrow a fault.
      2. Configure the action to specify the fault name or identifier that you want to rethrow.
    1. Define conditions or use expressions to determine when this action should be triggered.

Here’s a simple example of how you might use these actions:

  1. Throw New Fault:
    1. In your integration flow, you have a transformation that converts data from one format to another.
    2. You add a “Throw New Fault” action after the transformation and configure it to raise a custom fault if the transformation fails due to invalid data.
    3. The fault message can include details about the specific data that caused the error.
  2. Rethrow Fault:

 

    • Earlier in your integration flow, you have a REST call that can return various HTTP error codes.
    • You use a switch or conditional flow to check the HTTP response status code.
    • If the status code indicates an error (e.g., 4xx or 5xx), you add a “Rethrow Fault” action to handle the specific HTTP error and possibly provide custom error handling logi

Oracle Integration Cloud (OIC) Training Demo Day 1

 
You can find more information about Oracle Integration Cloud Service in this Oracle Docs Link

 

Conclusion:

Unogeeks is the No.1 Training Institute for OIC. Anyone Disagree? Please drop in a comment

Please check our Oracle Integration Cloud Training Details here OIC Training

You can check out our other latest blogs on Oracle Integration Cloud in this OIC Blogs

💬 Follow & Connect with us:

———————————-

For Training inquiries:

Call/Whatsapp: +91 73960 33555

Mail us at: info@unogeeks.com

Our Website ➜ https://unogeeks.com

Follow us:

Instagram: https://www.instagram.com/unogeeks

Facebook: https://www.facebook.com/UnogeeksSoftwareTrainingInstitute

Twitter: https://twitter.com/unogeeks


Share

Leave a Reply

Your email address will not be published. Required fields are marked *