Skip to main content
November 9, 2023
Question

Send integration fail status to Process model

  • November 9, 2023
  • 9 replies
  • 0 views

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
    November 9, 2023

    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
    November 9, 2023

    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
    November 9, 2023

    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
    November 9, 2023

    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
    November 10, 2023

    use this ac!Error.message