Error trying to change tag property using system.tag.configure

I´’m using this code to change a tag property

parentPath = “[default]IJDEventsModel/System53/SystemEvent0/EventTagValue”
configs = system.tag.getConfiguration(parentPath, True)
configs[0][‘sourceTagPath’] = “[~]IJDEventsModelOPC/LaserBPR02PLC/Event/Faulted”
system.tag.configure(parentPath, configs, “o”)

But I get this error:

[Bad_Unsupported(“The target path ‘[default]IJDEventsModel/System53/SystemEvent0/EventTagValue’ cannot accept children tags.”)]

Is there something missing on my syntax ??

any comment is very welcome

Tip: can you format your code using the </> button? It preserves indents and linebreaks and applies syntax highlighting. You can use the 🖉 edit link to fix your post. Thanks!
Welcome to the forum.