官术网_书友最值得收藏!

Exception handling

Let's handle any exceptions for this Excel automation:

  1. For this, click on Add a new Catch in the Catches block beneath the Try block.
  2. Choose exception as System.Exception and click the box next to it.
  1. Also, add a Log Message activity to the catch block and add the following:
    • Error as the Log Level
    • "Error in Excel read operation with following exception: "+exception.Message" as the Message: 

  1. Finally, within the Catches block, add a Terminate Workflow activity to stop the automation if there are any exceptions:

Great! This completes the ReadExcelRequest workflow where we read the Excel and stored the request data as arguments. Now, we will invoke this from the main workflow. 

主站蜘蛛池模板: 南涧| 千阳县| 张家川| 积石山| 砀山县| 克拉玛依市| 三原县| 彭山县| 横山县| 施甸县| 宕昌县| 延长县| 舟曲县| 红原县| 新营市| 裕民县| 林周县| 临夏县| 琼海市| 偏关县| 中山市| 天柱县| 德阳市| 琼海市| 伊川县| 金寨县| 灵寿县| 雅安市| 宁明县| 民丰县| 卓尼县| 陆河县| 和平区| 沾益县| 灯塔市| 武隆县| 庄河市| 江津市| 海安县| 安化县| 苗栗市|