question

LuisLpez-4254 avatar image
0 Votes"
LuisLpez-4254 asked PRADEEPCHEEKATLA-MSFT commented

getting API return code or error in WEB activity

I want to know where can i read an API error when call api in web activity, I don't see response section, I see the error message during monitor error tab but i watnt to save this errors for future references. Thanks

azure-data-factory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @LuisLpez-4254,

Welcome to the Microsoft Q&A platform.

To access error message details use Error.message property in expression using Ser Variable.

In below example we are using same property to access web activity failure error details to store in variable.

99063-adf-setvariable.gif

Hope this helps. Do let us know if you any further queries.


Please don’t forget to Accept Answer and Up-Vote wherever the information provided helps you, this can be beneficial to other community members.



adf-setvariable.gif (896.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you so much for your help

0 Votes 0 ·

Hello @LuisLpez-4254,

Glad to know it helped.

0 Votes 0 ·