When a 404 isn't really

Comments

4 comments

  • viliandy leonardo Product Management Director

    David Gollom

    In that case, you may consider using a script to ignore this specific error - though the error message is really generic and you should evaluate other errors from the same endpoint to ensure you don't get a false positive treatment for a legitimate error. Here is a kb article with sample code.

    The new error handling feature will not deal with this use case, but we have in the backlog a feature to let users configure errors to ignore so that users don't have to build a script.

    Thanks 

     

    0
  • Matt Graney Chief Product Officer
    Engaged
    Answer Pro
    Top Contributor

    (deleted my earlier comment because I realized that this is a problem on the initial export in the flow, whereas response mappings are used downstream of that.)

    0
  • David Gollom Strategic Partner
    Top Contributor
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Engaged

    Thanks for the help.  This is an Export so the hook seems to be the Pre Save Page. It sounds like we're stuck. 

    0
  • viliandy leonardo Product Management Director

    David Gollom

    Thank your for pointing out that this is an export step.

    This is not a common integration scenario because of the non-standard response returned by that endpoint. There is a potential solution but it requires a bit set-up. The idea is to replace your existing export with a new export step that calls Celigo My API endpoint. You then delegate to My API  to invoke the application endpoint and then use the script inside My API to handle the error.

    Here is what the set-up looks like: 

    1. Start  with your existing flow: Export A - then do Import B

    2. Create a new export for Application type of "integrator.io". Proceed to create "integration.io" connection by supplying the Celigo API tokens. Call this Export A1

    3. Replace the existing export Step A with A1. So your flow is now Export A1 - then import B

    4. Create a My API resource and its respective custom script to invoke export A step url (you can find this url in the Advanced section of the export A step). You also may want to check out this kb on how to create an equivalent virtual export A so that your script can pass the parameter.

    5. Implement the error handling logic inside the My API custom script.

    • When the export A return 404, then script returns empty array of record to the export A1.
    • Otherwise, return the array record. 

    6. Configure export Step A1 to invoke a My API url which in turn will run your custom script. 

    Please let us know how this option works out for you.

    Thanks

    0

Please sign in to leave a comment.