Hello Community,
Came across this and wasn't sure if it was expected behaviour.
Situation: A cloud flow calls the 'Execute stored procedure (V2)'. The stored procedure itself encounters an error, e.g. statement error, data error (does not allow null, constraint violation), etc and fails, however the cloud flow reports that it ran successfully.
Expectation: The flow should fail and report the stored procedure error. With the example below, would be the SQL reported error of 'Divide by zero error encountered'.
To reproduce, a simple stored procedure:
CREATE PROC [dbo].uspZZZZtest02
AS
BEGIN
SELECT 1 'StatementNumber', GETUTCDATE() 'CurrentServerTime'
DECLARE @MyVal FLOAT
SET @MyVal = 0.0/0.0 --Cause an error
SELECT 2 'StatementNumber', GETUTCDATE() 'CurrentServerTime'
END
GO
Confirmation that flow ran successfully (but note no output):

Thanks,
John