We have a pipeline which inserts event data from kafka into several tables via execution of several stored procedures. We need to store failed batches errors into a table of errors. How can we extract the error from a failed procedure?
We want to do something like this:
INSERT INTO [LearningErrorLog]
(
ErrorNumber
,ErrorDescription
,ErrorProcedure
,ErrorState
,ErrorSeverity
,ErrorLine
,ErrorTime
)
VALUES
(
ERROR_NUMBER()
,ERROR_MESSAGE()
,ERROR_PROCEDURE()
,ERROR_STATE()
,ERROR_SEVERITY()
,ERROR_LINE()
,GETDATE()
);
I see the singlestore studio auto completes the function ERROR_MESSAGE, but then says it’s not defined.
Hi Maxim, can you please paste your code and the ‘not defined’ error that you are getting back here? this will help us determine the issue you are having
I see the singlestore studio auto completes the function ERROR_MESSAGE, but then says it’s not defined.