# \[SOLVED\] Issue with scripts assets importing

**URL:** <https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518>\
**Category:** Help & Support\
**Created:** [July 25, 2017, 4:46pm UTC](https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518 "2017-07-25T16:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Acharton](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@Acharton](https://forum.playcanvas.com/u/Acharton)\
**Post date:** [July 25, 2017, 4:46pm UTC](https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518/1 "2017-07-25T16:46:07Z")

</div>

Hello 🙂 !  
there is an issue with scripts importing inside playcanvas. If I drag multiple scripts at the same time inside the project not all of them seems to be loaded inside the project.

Here is a debug project where I managed to reproduce the issue [PlayCanvas | HTML5 Game Engine](https://playcanvas.com/editor/scene/539345)

In this project I dragged five scripts at the same time  
 ![](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/a/c/ac6c5751cf4657713615ad4aef9674ac7ead58cf.png)

But only four of them appear in the script loading order.  
 ![](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/3X/c/a/ca2f004e144b64a407427b9b6c5af5fc50579464.png)

This issue does’nt happen when I drag the scripts one by one.

I tried as a temporary fix to mess up with the preload button but at some point the editor trigger this error.

```javascript
editor.js:10913 Operation was rejected ([object Object]). Trying to rollback change locally.
Doc._onMessage	@	editor.js:10913
Connection.handleMessage	@	editor.js:10287
socket.onmessage	@	editor.js:10188
connection.socket.onmessage	@	editor.js:14673

```

And I cannot check or uncheck the preload button at all after that.

Maybe something not saving properly inside the scene Json?

[EDIT] this cause the script not behing found in playmode

```javascript
script 'dummyScriptTwo' is not found, awaiting it to be added to registry
create @ playcanvas-stable.dbg.js:22437

```

---

<div class="post-metadata">

**Author:** ![dave](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/dave/32/4558_2.png) [@dave](https://forum.playcanvas.com/u/dave)\
**Post date:** [July 26, 2017, 7:33am UTC](https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518/2 "2017-07-26T07:33:43Z")

</div>

Thanks @Acharton,

We’re taking a look at the project and the issue.

---

<div class="post-metadata">

**Author:** ![vaios](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/vaios/32/4566_2.png) [@vaios](https://forum.playcanvas.com/u/vaios)\
**Post date:** [July 31, 2017, 11:33am UTC](https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518/3 "2017-07-31T11:33:04Z")

</div>

Hi @Acharton,

We deployed a fix that should resolve some scripts not being added to the script order correctly when you drag multiple in the asset panel. Please let us know if you have any problems.

---

<div class="post-metadata">

**Author:** ![Acharton](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@Acharton](https://forum.playcanvas.com/u/Acharton)\
**Post date:** [July 31, 2017, 5:36pm UTC](https://forum.playcanvas.com/t/solved-issue-with-scripts-assets-importing/4518/4 "2017-07-31T17:36:09Z")

</div>

Every thing seems to work thanks!
