microsoft / terraform-provider-power-platform

Power Platform Terraform Provider
https://registry.terraform.io/providers/microsoft/power-platform/latest/docs
MIT License
31 stars 9 forks source link

`powerplatform_data_record` invalid character '<' looking for beginning of value #474

Open mattdot opened 1 day ago

mattdot commented 1 day ago

Describe the bug

powerplatform_data_record invalid character '<' looking for beginning of value when creating a business unit

Sample Terraform Code

If applicable, add terraform code to help explain your problem.

REMINDER: REMOVE SENSITIVE DATA SUCH AS SECRETS, USER NAMES, EMAILS, TENANT INFORMATION, ETC.

resource "powerplatform_data_record" "business_unit" {
  environment_id     = var.environment_id
  table_logical_name = "businessunit"
  columns = {
    name       = var.name
    costcenter = var.costcenter
    parentbusinessunitid = {
      table_logical_name = "businessunit"
      data_record_id     = var.parent_business_unit_id
    }
  }
}

Expected behavior

A clear and concise description of what you expected to happen.

System Information

Additional context

Add any other context about the problem here.

Contribution

Do you plan to raise a PR to address this issue? MAYBE