Erro while runing python script to setup action graph

I am following the tutorial (8. ROS2 Joint Control: Extension Python Scripting — Omniverse Robotics documentation) to setup ROS2 bridge from Isaac Sim.

In step 2, 8.3 Add Joint States in Extension. When I execute the python script it gives the following error.

OmniGraphError: Failed to wrap graph in node given {‘graph_path’: ‘/ActionGraph’, ‘evaluator_name’: ‘execution’}

I’m using Isaac Sim 2022.2.1

The error occurs for me when I already have an Action Graph with the same name and the same path. Try renaming the name from “/ActionGraph” to something else (lines 5 and 36 in the doc).