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

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. 

主站蜘蛛池模板: 北川| 潼南县| 望都县| 二连浩特市| 舟曲县| 焦作市| 宣武区| 安徽省| 麻城市| 炉霍县| 青海省| 阳原县| 望奎县| 平乐县| 蕲春县| 会同县| 深圳市| 屯昌县| 万源市| 贺兰县| 咸阳市| 米林县| 水城县| 伊川县| 泽州县| 隆林| 万州区| 翼城县| 汉源县| 镇原县| 全州县| 汉沽区| 陇川县| 铜陵市| 长沙县| 延川县| 兴文县| 遵化市| 玉环县| 三门县| 惠安县|