# Issue to insert record

**URL:** <https://forum.inductiveautomation.com/t/issue-to-insert-record/86240>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [February 23, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/issue-to-insert-record/86240 "2024-02-23T07:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elias\_Ghadbane](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@Elias\_Ghadbane](https://forum.inductiveautomation.com/u/Elias_Ghadbane)\
**Post date:** [February 23, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/issue-to-insert-record/86240/1 "2024-02-23T07:45:55Z")

</div>

Hello, I am a core student and I am trying to insert a simple record into my database. However, I am facing a problem and I don't know where I went wrong.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4fcca51098f12e6d44556d8d3d229c8f4ad453b2.png)  
this my simple database  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/7/475bccce085233d3ebc546772d14ef4cdf363e00.png)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 23, 2024, 8:26am UTC](https://forum.inductiveautomation.com/t/issue-to-insert-record/86240/2 "2024-02-23T08:26:54Z")

</div>

Check the error message.  
I know it's big and confusing, but there are lines that start with "caused by: ...". Those are where you start.

Here, the very last line, the one that's barely visible, says "cannot run this function when in read-only mode".  
You need to open the communication, otherwise you'll only be able to read the data, not write it.  
There are icons in the menu bar of the designer, one of them will open those comms. I'll let you find which one.

---

<div class="post-metadata">

**Author:** ![Elias\_Ghadbane](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@Elias\_Ghadbane](https://forum.inductiveautomation.com/u/Elias_Ghadbane)\
**Post date:** [February 23, 2024, 8:32am UTC](https://forum.inductiveautomation.com/t/issue-to-insert-record/86240/3 "2024-02-23T08:32:43Z")

</div>

thanks
