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

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. 

主站蜘蛛池模板: 元氏县| 策勒县| 伊吾县| 犍为县| 乌什县| 合江县| 唐河县| 启东市| 北宁市| 黔西| 蓬安县| 松原市| 磴口县| 玉门市| 连州市| 扎赉特旗| 高清| 正安县| 朝阳县| 大渡口区| 大同市| 桂林市| 肥乡县| 阳朔县| 会泽县| 安徽省| 夹江县| 西盟| 枣强县| 民权县| 建平县| 山东| 张家口市| 华安县| 宁乡县| 三亚市| 色达县| 民勤县| 宁强县| 基隆市| 平遥县|