# Scene loading not working in published build \[SOLVED\]

**URL:** <https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014>\
**Category:** Help & Support\
**Created:** [January 22, 2019, 11:17pm UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014 "2019-01-22T23:17:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tristan](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@Tristan](https://forum.playcanvas.com/u/Tristan)\
**Post date:** [January 22, 2019, 11:17pm UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014/1 "2019-01-22T23:17:37Z")

</div>

Hi, I am using a scene loader inspired by Playcanvas Tutorial “Changing Scenes”, which load scene hiearchy from starting scene to another scene I wrote as an attribute. Working perfectly fine in editor mode, but Playcanvas seems to refuse / deny some files and causes me a fatal crash while loading

Here is my console error log on Google Chome, same thing happening in Safari  
 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/e/e558853ab29996f4daf88adeef7defbf0cc1f307.png)

Here is my Scene Loading script :

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/8/85a11e6c40c2a0255d4da4cbf0a75c517a0a3b87.png)

Very strange error, I never encountered this in the past. Thank you for your help,  
Tristan

---

<div class="post-metadata">

**Author:** ![Tristan](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@Tristan](https://forum.playcanvas.com/u/Tristan)\
**Post date:** [January 22, 2019, 11:23pm UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014/2 "2019-01-22T23:23:19Z")

</div>

Here is the callback from Amazon’s server (where Playcanvas Cloud build is stored) :

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/1/1cd252414311d3ef87496be24a98f64b5e697889.png)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [January 23, 2019, 12:00am UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014/3 "2019-01-23T00:00:43Z")

</div>

Can you post a link to a public project please?

At a stab in the dark, have you forked your project and not updated the scene ids? (they change when you fork unfortunately).

---

<div class="post-metadata">

**Author:** ![Tristan](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@Tristan](https://forum.playcanvas.com/u/Tristan)\
**Post date:** [January 23, 2019, 12:06am UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014/4 "2019-01-23T00:06:00Z")

</div>

Thanks for the info, I will check when I am forking my projects. I believe it is due that I was not including the second scene in my build, i didn’t notice at first, but I forgot the check the second scene in the publish settings (noob error), I will confirm if it’s working and will put this thread to solve if it was the cause of this issue.

---

<div class="post-metadata">

**Author:** ![Tristan](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@Tristan](https://forum.playcanvas.com/u/Tristan)\
**Post date:** [January 23, 2019, 12:26am UTC](https://forum.playcanvas.com/t/scene-loading-not-working-in-published-build-solved/9014/5 "2019-01-23T00:26:15Z")

</div>

Problem SOLVED, due to : Not including the second scene in the publish settings.
