BC30451 Config is not declared It may be inaccessible due to its protection level Variable Config is missing. Please use Data Manager to recreate it

Unable to run the workflow (which uses templates) from Studio when the project is moved from one location to another location

Steps to Reproduce:

  1. Create an empty project in Studio from one of the templates, e.g: Attended Automation Framework. Make sure project runs successfully from Studio
  2. Open the Project location on the machine and the configuration folders appear as below

  1. Use .zip to compress and copy/paste the zipped project from one location to another
  2. Un-zip the copied project in the new location and some configuration folders would be missing

  1. On running this project in Studio, it throws an error message:" 'Config' is not declared. It may be inaccessible due to its protection level."

image.png

Resolution:

Approach #1: Version Control System: Use a version control system such as Git to store the project and collaborate.

Approach #2: Manual Transfer: Copy and paste the project folder(with out zipping) to another location.