# Modified Java Script Value.0 - ReferenceError: "field" is not defined. (script#3)

**URL:** <https://community.automationedge.com/t/modified-java-script-value-0-referenceerror-field-is-not-defined-script-3/3872>\
**Category:** Get Help & Discuss\
**Tags:** rpa, process-studio\
**Created:** [July 10, 2021, 1:18am UTC](https://community.automationedge.com/t/modified-java-script-value-0-referenceerror-field-is-not-defined-script-3/3872 "2021-07-10T01:18:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidney.brito](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sidney.brito](https://community.automationedge.com/u/sidney.brito)\
**Post date:** [July 10, 2021, 1:18am UTC](https://community.automationedge.com/t/modified-java-script-value-0-referenceerror-field-is-not-defined-script-3/3872/1 "2021-07-10T01:18:11Z")

</div>

Hi

I’m reading an xls file using Microsoft Excel Input step and Modified Java Script Value step for transforming strings and dates

I see the following error when I try to get the declared variables (Get variable button):  
Modified Java Script Value.0 - ReferenceError: “field” is not defined. (script#3)

js code:  
var test = field\_Date;  
var test2 = field\_str;  
var test = field\_int;

Fields with numerical values are obtained without problems.  
Fields are being displayed under Input Fields.

Thanks

---

<div class="post-metadata">

**Author:** ![sidney.brito](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sidney.brito](https://community.automationedge.com/u/sidney.brito)\
**Post date:** [July 12, 2021, 7:39pm UTC](https://community.automationedge.com/t/modified-java-script-value-0-referenceerror-field-is-not-defined-script-3/3872/2 "2021-07-12T19:39:50Z")

</div>

The problem was in the names of some that had the same prefix. I changed the name of the columns and it worked.

Name before:  
abcName  
abcDate  
abcCode

Changed to:  
Name  
Date  
Code
