Troubleshooting
Problem
In IBM Rational DOORS, loading a DXL script from within another DXL results in an error "non local variable access".
Symptom
The full error message is as follows:
-E- DXL: <example/include/linkops.inc:66> non local variable access (linkErrorNonObjectData) too many messages -- suspending error reporting-I- DXL: all done with 52 errors and 0 warnings
Cause
This can occur when variables being declared in one function are used in another function; however, the problem has more to do with where the variable was assigned rather than where it was declared.
Environment
A DXL script runs without error; however, when it is called from another DXL script it fails to load.
Resolving The Problem
The solution is to define the variables globally.
To declare a global variable:
- declare them in startup files
- declare them at the very start of the "parent" script
- declare them using evalTop_
Was this topic helpful?
Document Information
Modified date:
01 May 2020
UID
swg21406887