Civilobjects.setname error

Hi,
an error of (Warning: CivilObject.SetName operation failed. The name may exist) shows up when trying to assign naming convention for pressure network objects, I’ve been working around but without result.

Civil 3d is up to date, Civil 3d toolkit is the latest version (1.1.26)

RenamePressureNetworksObjectsByNamingConvention.dyn (22.4 KB)

Looking at the graph, your code block with the count function isn’t looking at the right list level so it doesn’t generate the full sequence for the names for the network so the setname node fails. Repeat this for fittings and you’re set. Hope this helps!
RenamePressureNetworksObjectsByNamingConvention v2 km.dyn (30.4 KB)

It’s exactly the solution… great thanks !