cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI error handling

1,451

Hello!

I have a question in SCPI

I have an IFLOW HTTP - HTTP, if the sending fails I have an "Exception Subprocess" that sends the error that occurred to the sender. (Ex: I send by POSTMAN and with this "Exception Subprocess" I get the type of error that I had in the sending, 400,401,403 ... and the text of the error).

I have a "content Modifier" with a body, importing the header and the exception message inside the "Exception Subprocess".

But the IFlow (failed) is showing on my monitor as "completed" I think it is because I am sending the error that I had.

Is there a way that after sending the error message (because it has failed) the IFLOW will show as failed?

Thanks!

Best Regards!

Accepted Solutions (0)

Answers (5)

Answers (5)

sunny_kapoor
Product and Topic Expert
Product and Topic Expert

Hi cristian_gallego,

Kindly end the message in Exception Subprocess with Error End Event.

You can find more details here.

Regards,
Sunny

Hi sunny.kapoor2

If I change it to Error End Event, in SCPI I will have it failed (It is correct), but in the "Sender" (Postman in this case) I will always have a 500 error. Currently with the "End Message" the error (400,401...) is sent to the "Sender" (POSTMAN) but I see my IFLOW as "Completed"(this is wrong).

Thanks and Regards!

Cristian Gallego Gonzalez

Hemant_CG
Explorer

Cristian,

Did you find a way to achieve that? We are trying and I don't seem to find a way to achieve that.

Thanks,

Hemant

Hi cristian_gallego,

Could you inside exception sub-process its end message instead replace it with error end which would show the status as failed.

Hope that helps !

thanks and regards,

Praveen T

0 Kudos

Hi tirumareddy.praveen

I think it's the same suggestion sunny.kapoor2 told me, y copy you me, I copy the answer.

If I change it to Error End Event, in SCPI I will have it failed (It is correct), but in the "Sender" (Postman in this case) I will always have a 500 error. Currently with the "End Message" the error (400,401...) is sent to the "Sender" (POSTMAN) but I see my IFLOW as "Completed"(this is wrong).

Thanks and Regards!

0 Kudos

Up to 20 errors can be stored in each interface-specific error queue (one each for GPIB, USB, VXI-11, and Telnet/Sockets.) Errors appear in the error queue of the I/O session that caused the error. The instrument beeps once each time a command syntax or hardware error is generated.

Hope You Find This Useful,
Peter

former_member724290
Participant
0 Kudos

Seems like CPI can't do that.

It cannot handle an error with a custom response code and log an error to itself at the same time.