Skip to main content
Known Participant
Nov 9, 2023 5:14 PM UTC
Question

Send integration fail status to Process model

Hi Community members,

I have requirement where i need to send the status to process model, if My integrations fails. Can someone help me.

I have configured it this way, 

Have created a PV of Error and its of type IntegrationError, but still if integration fails am getting blank value in Error (PV).

    9 replies

    jordand0005
    Participating Frequently
    Nov 9, 2023 5:29 PM UTC

    Hi David,

    Can you provide more info on how do you define 'integration fails'? Are you referring to specific http status codes or just when ac!Success = false?

    It might be useful to also capture the ac!Result activity class parameter while you debug what the issue is as this could provide more specific information.

    gabriele.camilli
    Employee
    Nov 9, 2023 5:31 PM UTC

    Usually the error you are looking for will be in the result, the integration worked but the Response is 400 or 500 something, so you could use that in a custom output using the response AC!

    itsm6335Author
    Known Participant
    Nov 9, 2023 5:35 PM UTC

    Yes [mention:ac016740a0b74fd08e73b9c0baf44d40:e9ed411860ed4f2ba0265705b8793d05] ..that is the case..Can you please help out with screenshot how to do that..

    In custom output what am i supposed to pass

    gabriele.camilli
    Employee
    Nov 9, 2023 5:41 PM UTC

    It quite depends on the integrations and which codes means success or error, but for 90% of cases you should create an output PV with this expression:

    ac!result.statusCode<>200

    if status is not 200 (Success Status Code) it is an error

    annap0005
    Participating Frequently
    Nov 10, 2023 6:43 AM UTC

    use this ac!Error.message