Strange error when using WritePrimAttribute node of Repicator

I’m trying to update a custom property of a prim using an ActionGraph with the WritePrimAttribute node but I receive :
2023-05-03 13:23:36 [2,286,790ms] [Error] [omni.graph.core.plugin] /World/ActionGraph/write_prim_attribute: OmniGraph Error: WritePrimAttribute Error: object of type 'float' has no len() (from compute() at line 241 in /home/federico/.local/share/ov/pkg/isaac_sim-2022.2.1/extscache/omni.replicator.core-1.7.8+104.2.lx64.r.cp37/omni/replicator/core/ogn/python/_impl/nodes/ .

Everything works fine if I use the WritePrimAttribute but not the Replicator version but the SceneGraph version. This is maybe linked to OmniGraph Write Prim Attribute node question.

Here I upload the USD file to show what I’m doing.
hello.usd (31.2 KB)

This is related to the Replicator node. Moving this to the SDG forum so that the Replicator team can triage it first.

Hello @federico.domeniconi! Thank you for reaching out. I agree that Object of type 'float' has no len() is not at all an obvious error message. I’ve set a ticket to improve that experience, so thank you!

The issue is that WritePrimAttributes expects to receive an array of values rather than a single value. Bundling the value into an array and passing that to the node works as expected. Please see the updated USD attached. Let us know if you have any further questions!
hello.usd (33.1 KB)