Invoke workflow file: Write Range : The range does not exist

Scenario:

I am trying to scrap some data from a site and write in an excel file. It is in a loop, so I need to write in the first loop and append it in next iterations.

If then set a flag to True
If flag = True Then
Excel Application Scope <Output.xlsx>
Append Output.xlsx
Else If flag = False
Excel Application Scope <Output.xlsx>
Write Output.xlsx

Both the Append and the Write activities are throwing error -
Invoke workflow file: Append Range : The range does not exist
Invoke workflow file: Write Range : The range does not exist

The file is getting created though. And it is a blank file.

Steps to reproduce: Same as Scenario

Current Behavior: Same as Scenario

Expected Behavior: Same as Scenario

Studio/Robot/Orchestrator Version: UiPath Studio Trial. Version 2016.2.6379

Last stable behavior:
Last stable version:
OS Version: Win7
Others if Relevant: (workflow, logs, .net version, service pack, etc):

keep range blank.check/uncheck header option and try.

Hi @ddpadil,
This is actually working. But, I am not able to understand how?

Regards,
Harshit Goyal