Global variables not declared error after reopening

Hi,
Using 2022.10.11 licensed version.
Declared variables in Data Manager and kept scope is global.
After reopening the file getting error while compiling.
error 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.

Can anyone please help to solve this issue?

@Guru_Koli21,

Check if any namespaces are marked red in Imports tab. If any there, delete those and check.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale ,

There is no red or error in namespaces. Now the error is
error BC30562: ‘Config’ is ambiguous between declarations in Modules ‘GlobalVariablesNamespace.GlobalVariables, GlobalVariablesNamespace.GlobalVariables’.

Thank you.

@Guru_Koli21,

It suggests that there is a naming conflict in your project specifically Config variable. Check if variable Config declared more than once.

This could have happened when you didn’t see the variable after reopening, you created another one.

Navigate to globalVariables.json and check how many variables are there.

Here I tried to recreate the issue and fixed. Hope same will work for you.

Global Variable not declared

Thanks,
Ashok :slight_smile:

Thank you @ashokkarale , It is working now.
:handshake:

1 Like

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