# Pasting code on a binding script transform problematic

**URL:** <https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 24, 2025, 10:08am UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504 "2025-04-24T10:08:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 24, 2025, 10:08am UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504/1 "2025-04-24T10:08:36Z")

</div>

Hello!

Not sure if this happens to anyone else, but I noticed whenever I try to paste some code on the script transform of a binding the Ignition Designer freeze.

I think it might be because it's trying to auto-update the output while the code’s still being pasted or processed? Not 100% sure though — could also just be my machine struggling.

Just wanted to share it in case it helps.

Cheers!

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 24, 2025, 1:06pm UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504/2 "2025-04-24T13:06:13Z")

</div>

Best solution, disable your bindings while you changing the transform scripts.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 24, 2025, 2:41pm UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504/3 "2025-04-24T14:41:54Z")

</div>

How much code are you pasting, and when you say 'freeze' is there a warning in the output console window/designer logs about a "Non-Responsive EDT" file being generated?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [April 24, 2025, 2:55pm UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504/4 "2025-04-24T14:55:40Z")

</div>

I will check the logs and let you know, thanks.  
There is not warning.

Average size of script transform similar size to :

```python
	from java.text import SimpleDateFormat
	from java.util import Calendar
	
	try:
	    selectedRow = self.props.selection.selectedRow
	    myDataset = self.props.data
	
	    if not myDataset or selectedRow == -1:
	        self.getSibling("chartDistri").props.dataSources.example = []
	    else:
	        chartData = []
	        inputFormat = SimpleDateFormat("MM/yy")        
	        outputFormat = SimpleDateFormat("MM/yy")       
	        sortFormat = SimpleDateFormat("yyyy-MM-dd")    
	
	        for colIndex in range(myDataset.getColumnCount()):
	            columnName = myDataset.getColumnName(colIndex)
	
	    
	            if columnName.endswith("/25"):
	                try:
	                    value = float(myDataset.getValueAt(selectedRow, colIndex))
	                except (ValueError, TypeError):
	                    value = 0.0
	
	                try:
	                    date = inputFormat.parse(columnName)
	                    cal = Calendar.getInstance()
	                    cal.setTime(date)
	                    cal.set(Calendar.DAY_OF_MONTH, 1)
	                    finalDate = cal.getTime()
	
	                    chartData.append({
	                        "t_stamp": outputFormat.format(finalDate),
	                        "process_temp": value,
	                        "sortKey": sortFormat.format(finalDate)
	                    })
	                except:
	                    continue
	
	    
	        chartData.sort(key=lambda x: x["sortKey"])
	
	        for d in chartData:
	            d.pop("sortKey", None)
	
	        self.getSibling("chartDistri").props.dataSources.example = chartData
	
	except Exception as e:
	    self.getSibling("TextArea").props.text = "Error: {}".format(e)

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 24, 2025, 3:43pm UTC](https://forum.inductiveautomation.com/t/pasting-code-on-a-binding-script-transform-problematic/105504/6 "2025-04-24T15:43:24Z")

</div>

Much like in your other thread, you posted **gateway** logs.

The Designer is an application running on your local computer. If it "freezes", the gateway doesn't know anything about that. It has its own, local logging that you need to consult.
