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

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. 

主站蜘蛛池模板: 迁安市| 永川市| 长顺县| 增城市| 花莲县| 宝山区| 汉寿县| 双流县| 长沙县| 枞阳县| 玉山县| 南皮县| 仙桃市| 青阳县| 温宿县| 贵港市| 四子王旗| 阿坝县| 马鞍山市| 于田县| 台前县| 涿鹿县| 百色市| 子洲县| 苍南县| 稻城县| 河西区| 永胜县| 巴林左旗| 长泰县| 丹寨县| 乐亭县| 双江| 盱眙县| 广宁县| 乌兰县| 阿巴嘎旗| 海安县| 新密市| 凭祥市| 惠东县|