Skip to main content

Handle Webclient Exception

Comments

1 comment

  • Permanently deleted user
    Hi Ravin,

     

    The QueryTask and BufferTask activities implement the AsyncCodeActivity class:

     

    https://msdn.microsoft.com/en-us/library/system.activities.asynccodeactivity(v=vs.110).aspx

     

    The actual web request made by these tasks is done asynchronously.  If the buffer or query task fails, we do try to set the exception, but if the exception would interfere with that failure code it may bubble up when the tasks finishes executing.

     

    Your stack trace here appears to be caught in the EndExecute method, which means that the task itself either does not know what has happened, or that the task was canceled (perhaps an execution timeout?)

     

    There may be an InnerException property in the Exception you catch that might contain more information.  Unfortunately, we may not be able to get more information from this operation, since we are not able to block the web server process in a server-side workflow to fully catch the error.

     

    I like to use the Log activity to keep track of server-side behavior - you may be able to avoid your exceptions by adjusting the way you issue queries or buffers, especially if you can determine if it's a timeout or a data size issue.

     

    Regards,

     

    -Malcolm

     

     
    0

Please sign in to leave a comment.