Float Value Conversion Error only for one TAG in General

dear brother,
please see this error as per attached file and can you please advise…



Does casting the value to a float in the script fix it?

value = float(event.source.value)
system.tag.writeToTag('MOTOR_SETTINGS/DB_TAGS/LINE_SPEED_ACT_STD16, 'database')

The problem is not a casting issue. You are using a propertyChange script but not filtering it for ONE property. So whenever any property on that component changes you are firing the tag write. You need to filter it out like this:if event.propertyName == "value": value = event.newValue system.tag.writeToTag('MOTOR_SETTINGS/DB_TAGS/LINE_SPEED_ACT_STD16', value)