# Cannot open coded component

**URL:** <https://community.appfarm.io/t/cannot-open-coded-component/1072>\
**Category:** Bug reports\
**Tags:** coded-component\
**Created:** [February 23, 2024, 10:27am UTC](https://community.appfarm.io/t/cannot-open-coded-component/1072 "2024-02-23T10:27:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [February 23, 2024, 10:27am UTC](https://community.appfarm.io/t/cannot-open-coded-component/1072/1 "2024-02-23T10:27:53Z")

</div>

Hi!

I am trying to open the script for a coded component but Appfarm Create crashes. It works for one of the coded components we have, which is the smallest. Here are some screenshots:

 ![Screenshot 2024-02-23 at 11.27.14](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/4/426480db9c5f5f25567f7badc3461efaccfff9bc.png)

 ![Screenshot 2024-02-23 at 11.27.22](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/f/fb83aead8bc8156403414d6d1eb9b17bc6a5539f.jpeg)

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [February 27, 2024, 2:10pm UTC](https://community.appfarm.io/t/cannot-open-coded-component/1072/2 "2024-02-27T14:10:48Z")

</div>

Hello Martin,

We have found a bug regarding the use of enum data sources in Coded Component.  
When imported as a function param, the Coded Component will crash when opening.

Do you use an enum data source in your code?

The Dev team is working on a fix now. I will keep you updated on any progress.  
Have a nice day 😊

//Erik

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [February 28, 2024, 7:48am UTC](https://community.appfarm.io/t/cannot-open-coded-component/1072/3 "2024-02-28T07:48:53Z")

</div>

Hello again Martin,

A new version, 102-0-33 is now available and will be automatically applied to your dev envirnoment. It contains a fix for Coded Component.  
Does the issue still persist?

//Erik

---

<div class="post-metadata">

**Author:** ![martinbarthel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinbarthel/32/541_2.png) [@martinbarthel](https://community.appfarm.io/u/martinbarthel)\
**Post date:** [February 28, 2024, 8:07am UTC](https://community.appfarm.io/t/cannot-open-coded-component/1072/4 "2024-02-28T08:07:26Z")

</div>

Hi Erik,

It looks like it works now. Thank you!

And yes, we are using enums in the coded component.

Regards,  
Martin
