# Read-Only mode error

**URL:** <https://forum.inductiveautomation.com/t/read-only-mode-error/105776>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 1, 2025, 1:10pm UTC](https://forum.inductiveautomation.com/t/read-only-mode-error/105776 "2025-05-01T13:10:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [May 1, 2025, 1:10pm UTC](https://forum.inductiveautomation.com/t/read-only-mode-error/105776/1 "2025-05-01T13:10:01Z")

</div>

Hi, I have a form and it's works but when is in the vision client in ocations not always show me this message error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2b5bb41323c8d55afbfd791a8a013a24d9e9b503.jpeg)  
This is my code:

```python
if(event.source.parent.getComponent('lblCodigoFalla').text=="" or event.source.parent.getComponent('txtFalla').text==""):
	system.gui.messageBox(u"Error, ingrese una falla válida.", u"ERROR EN VALIDACIÓN DE FALLA")
else:
	ID_EQUIPO=event.source.parent.getComponent('lblCodigoFalla').text
	FECHA_IMPRESION_PLANILLA=system.date.now()
	CODIGO_TRABAJO=""
	VISIBLE='0'
	if(event.source.parent.getComponent('drpdTareaPrev').selectedStringValue=="ELÉCTRICA"):
		CODIGO_TRABAJO="TRAB_ELEC"
	elif(event.source.parent.getComponent('drpdTareaPrev').selectedStringValue=="MECÁNICA"):
		CODIGO_TRABAJO="TRAB_MEC"
		
	if(system.gui.confirm(u"Desea generar la planilla correctiva? ",u"IMPRESIÓN")):
		system.db.runScalarQuery("ANALYZE TABLE PLANILLA_CORRECTIVA")
		FALLA=event.source.parent.getComponent('txtFalla').text
		PL="PLANILLA_CORRECTIVA"
		MN="mantenimiento"
		valx=project.PRG_ALTERNOS.GUARDADO.recuperarIncremental(PL,MN)
		ID_CORRECTIVA=str(int(valx)+1)
		
		SQL="INSERT INTO mantenimiento.PLANILLA_CORRECTIVA VALUES(default,?,?,?,?,?)"
		ARGS=[ID_EQUIPO,CODIGO_TRABAJO,FALLA,FECHA_IMPRESION_PLANILLA,VISIBLE]
		system.db.runPrepUpdate(SQL,ARGS)
		system.db.runScalarQuery("ANALYZE TABLE PLANILLA_CORRECTIVA")
		system.gui.messageBox(u"NÚMERO DE OTN: "+str(ID_CORRECTIVA),u"MANTENIMIENTO CORRECTIVO GENERADO")
		
		event.source.parent.getComponent('lblCodigoFalla').text=""
		event.source.parent.getComponent('txtFalla').text=""
		
		system.nav.closeWindow('RENEW/IMPRESIONES/ImpresionCorrectiva_Renew')

```

And this is my form:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/2/d26ea2a5445f49bf35a92a968dc23af04e5bb086.png)

Why do I get that error message? And I always have to exit or restart the program for it to work, but in theory that's not functional because I have to exit and re-enter. I've already checked the configuration and it's as common-read-write, but sometimes I get that error in the Vision clients. Can someone help me please?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 1, 2025, 1:25pm UTC](https://forum.inductiveautomation.com/t/read-only-mode-error/105776/2 "2025-05-01T13:25:03Z")

</div>

The project can be configured with an initial comm mode: [General Designer Interface | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/designer/designer-user-interface#comm-mode)

beyond that, it can be queried changed at runtime via scripting:

- [system.util.getConnectionMode | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-getConnectionMode)
- [system.util.setConnectionMode | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-setConnectionMode)

Some part of your project may be changing this at runtime.
