I have created a class Library in VB.NET which we are calling from SSIS script task.
Could someone please advice how I can throw error back from VB.NET function which was suppose to return a string value but it returns null, in that case I would like the SSIS script task to fail.
You can use the following code to fail the package if any exception / Null thrown from your function library. Replace YourMethodCall() to your method.
C#:
Hope this helps!