# Help changing Customization code in Script Editor

**URL:** <https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234>\
**Category:** Epicor ERP 10\
**Tags:** customization\
**Created:** [September 27, 2019, 2:12pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234 "2019-09-27T14:12:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 27, 2019, 2:12pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/1 "2019-09-27T14:12:30Z")

</div>

I have a customization. I took the code out and edited it in a text editor (vs code) and edited the customization and copy pasta’d the code back in. I get a bunch of these errors.

 ![image](https://epiusers.help/uploads/default/original/3X/7/5/75f514c6bf8f4bf4ba52dc2628ce16c612381d14.png)

It doesn’t happen if I go into the Script Editor and manually change the code in there

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [September 27, 2019, 2:16pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/2 "2019-09-27T14:16:37Z")

</div>

Make sure VS Code isnt adding some references… Some IDEs that have like Lint enabled or Auto-Refactoring plugins tend to help by auto-resolving namespaces etc…

Also make sure you do a proper  
CTRL+A (Select All)  
CTRL+V (Paste)

Also check out

> [@Visual Studio Code Extension for Epicor 10 Customization](https://www.epiusers.help/t/visual-studio-code-extension-for-epicor-10-customization/53941):
>
> Hello, I’m hoping I can get some feedback. I have been working on an extension for Visual Studio Code which will allow you to Edit, Sync and Modify Epicor Customizations directly in visual studio code. This will provide the much needed intelisense as well as a host of other neat features, including the ability of Versioning (git) your customizations. We’ve been working on this for few weeks, it was actually an idea that @Mark_Wonsil brought up and with the help of @jgiese.wci, @Chris_Conn, @…

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 27, 2019, 2:29pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/3 "2019-09-27T14:29:35Z")

</div>

It had me delete a bunch of variables and methods. Then the code validated. Honestly i’m kinda confused

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [September 27, 2019, 2:40pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/4 "2019-09-27T14:40:48Z")

</div>

You have to be careful when copying a pasting there are a lot of Comments like

```auto
//Wizard 
//Epicor Magic 
//Etc

```

which seem kind of arbitrary but Epicor uses those to control your customization. The rule is if you didn’t write it , don’t touch it.  
You may have killed one of those comments, also it looks like you declared the same variable that existed there already (at least on an underlying layer)  
Again when you export your code manually there are a bunch of little details you don’t need / can’t take. For example if you click “Show all code” and then use that as your code you need to make sure you import the right bits.

Check out the VS Extension it will help with all of these issues.

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [September 27, 2019, 3:00pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/5 "2019-09-27T15:00:42Z")

</div>

I think he accidently copied the Readonly code along.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [September 27, 2019, 3:01pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/6 "2019-09-27T15:01:05Z")

</div>

Right that’s what I meant. (With my long winded explanation) lol

---

<div class="post-metadata">

**Author:** ![bradberkobien](https://www.epiusers.help/user_avatar/www.epiusers.help/bradberkobien/32/20360_2.png) [@bradberkobien](https://www.epiusers.help/u/bradberkobien)\
**Post date:** [September 27, 2019, 3:01pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/7 "2019-09-27T15:01:29Z")

</div>

I was just typing this thanks for the help

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [September 27, 2019, 3:28pm UTC](https://www.epiusers.help/t/help-changing-customization-code-in-script-editor/60234/8 "2019-09-27T15:28:31Z")

</div>

> [@josecgomez](#):
>
> Right that’s what I meant. (With my long winded explanation) lol

Ah… 🙂 The **//Epicor Magic** distracted me from the rest of the paragraph.
