Global variables missing when opening project cloned from a repository

As the title says, when opening a Windows project that contains globals and was fetched from a repository, the global variables are gone.

Steps to reproduce:

  • Create a new project in Studio on Windows compatiblity.


  • Create a simple workflow that makes use of a global variable (no default value).

  • Run the workflow, close it, open it again - all good until now, no issue here.


  • Push the project to Github (I haven’t tried with other version control).
  • Clone the project from Github, open it, and you’ll get the pop-up below (where you press Yes). However, the auto-import does not fix it, and the globals remain undefined (see 2nd screenshot below).

At this point you can manually define the globals again, but as soon as you push the code and clone it, the same issue will occur.

The same issue occurs also with the projects that were converted from Windows-Legacy to Windows and then pushed to a repository. However, in this case it’s more severe, as you won’t even be able to manually create the globals again since another error occurs when you try to do so, and prevents you from creating any variable through the Data Manager.

The Studio version used is the latest community build received.


@Jugger are you also cloning the .project folder? This stores the Global Variables definition and it must be cloned to work properly.

Also, what are you using to clone the repo? Is it Studio or another tool?

Hello @alexandru thank you for your answer! While we did not ignore the .project folder in our .gitignore file, we did ignore .json files in general with a few exceptions and globalVariables.json was being left behind. I’ve added it as an exception now and the issue is gone.

Since on Windows-Legacy we could get away with ignoring all settings folders,


are there any files besides globalVariables.json that are mandatory in Windows projects (from the highlighted folders)?

PS: To answer your 2nd question, the pushing/cloning was done with Git Bash.


1 Like

Hi @Jugger! Thank you for confirming the behavior. :slight_smile:
In a nutshell, all files that aren’t hidden are required for the proper functioning of a process:

  • the .entities folder → saves data about Data Service & entities;
  • the .objects folder → stores data about Object Repository and UI elements;
  • the .projects folder → stores data about Package Bindings;
  • the .settings folder → keeps information about Debug/Runtime options that are customized to that specific project;
  • the .templates folder → stores template xaml files for Workflows or Test Cases;
  • the .tmh folder → keeps test cases information.
    Hope this helps!
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.