Forum Discussion
rraghvani
11 months agoChampion Level 3
What version of TC are you using?
I'm assuming Script B relies on Script A. Does Script A sets any variables? Do you have default values defined for your variables?
Are you running this on your local machine?
- MattS11 months agoOccasional Contributor
We are using TC 15.54, run on a virtual machine. Script B is not dependent on Script A. There are not defaults provided for the variables. The two most common instances of this issue we've encountered, to provide better detail, are the following.
- Script A accepts a nameMapping Alias as a parameter, evaluates the Alias properly and fails on a property check. Script B, which also accepts a nameMapping Alias, throws exception evaluating a null object, despite the fact that it is passed the alias in the same manner as Script A.
- Two independent calls, subsequently to the same Script A that accepts a string and a project var as parameters. The first call properly evaluates the string and project var and fails on a property check. The second call properly evaluates the string, but receives a null for the projectVar, despite the fact that the same project var is passed to each call and it has not been modified between the 2 invoking of the scripts.
- rraghvani11 months agoChampion Level 3
Are you able to provide code examples?
Related Content
- 4 years ago
Recent Discussions
- 7 hours ago
- 7 days ago
- 10 days ago