0

I have created an ADF .Net Activity and returned new Dictionary();, but when the activity fails, the same Dictionary is returned showing the Pipeline is succeeded. How to return the failure state to Azure through .Net Activity. Is it that Possible?

return new Dictionary<string, string>();
Alex KeySmith
  • 16,657
  • 11
  • 74
  • 152
Arron
  • 1,134
  • 2
  • 13
  • 32

1 Answers1

2

If we return the Dictionary<string, string>() or null; the pipeline will show Ready State.

But when we throw the error from the custom Activity, the slice will get failed.

 catch (Exception ex)
        {
            logger.Write("Exception in userData: " + ex.ToString());
            throw;
        }
        return null;
zoxparty
  • 63
  • 7
Arron
  • 1,134
  • 2
  • 13
  • 32