SYMPTOM:
"There are two items with the same name in collection Folder" error appears when creating metrics in Command manager 9.4.x-10.x as shown below:

Syntax is correct. There are two items with the same name in collection Folder. Task(s) execution completed with errors.


2. Run the script below to create a metric with error as shown below:
CREATE METRIC "New Metric2" IN FOLDER "\Public Objects\ItemA\ItemB" EXPRESSION "Count(Customer){~}<>" FOR PROJECT "Strategy Tutorial";

Syntax is correct. There are two items with the same name in collection Folder. Task(s) execution completed with errors.