Thread
#getting-started
    w

    witty-vegetable-61961

    2 months ago
    hi all I am getting this error in Pulumi: error: Duplicate resource URN 'urn😛ulumi:dev::KillerGaming.Pulumi.AuthZero::auth0:index/client:Client::KillerGaming Server Automation API HealthUI'; try giving it a unique name However, I have deleted everything I created and made a new stack, which is empty. How can I fix this error?
    b

    billowy-army-68599

    2 months ago
    It's in your code. Are you creating something in a loop?
    w

    witty-vegetable-61961

    2 months ago
    i am and thats intentional. but everything has a unique name. I will check the code, but isn't this error becxause of something in my state I could just clear out?
    b

    billowy-army-68599

    2 months ago
    no, it’s trying to add something to state with a name that already exists when it builds the dependency graph. if you’re building something in a loop, add the index of the loop to the end of each resource
    w

    witty-vegetable-61961

    2 months ago
    fixed! you were right. it was the logic in my loop, whcih reads from a csv. 🙂