labd / terraform-provider-commercetools

Terraform provider for commercetools
https://registry.terraform.io/providers/labd/commercetools/latest/docs
Mozilla Public License 2.0
64 stars 68 forks source link

A duplicate value '"category-root-kw"' exists for field 'key'. errors getting #463

Closed SatishAlghanim closed 2 months ago

SatishAlghanim commented 6 months ago

with commercetools_category.category_root_kw, │ on main.tf line 13, in resource "commercetools_category" "category_root_kw": │ 13: resource "commercetools_category" "category_root_kw" {

Getting above error while running update.sh file

this is the resource we are using resource "commercetools_category" "category_root_kw" { key = "category-root-kw" name = { en-KW = "Kuwait Root Category" en-SA = "Kuwait Root Category" } slug = { en-KW = "root-kw" ar-SA = "root-kw" } }

Please help

demeyerthom commented 6 months ago

Hi @SatishAlghanim!

Appologies for the late reply.

Is it possible that there is already a category with this key in your dataset? That is what the error is indicating.