You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding user to environment returns: "A record with matching key values already exists. Unexpected HTTP status code. Expected: [200 204], received: [412] 412".
Adding Application users by their AAD ID returns:
Unexpected HTTP status code. Expected: [200 204], received: [412] 412
Precondition Failed | "error":"code":"0x80040237","message":"A record
with matching key values already exists."***
Sample Terraform Code
Sample Terraform code to create environment, get roles and add application User, app user for this case is a Service Principal
This was a free or new environment, so maybe we need to troubleshoot to see why we are receiving this error because the environment is created with the same terraform code.
System Information
Provider Version: 3.3.0
OS & Version: Linux GitHub Runner
Additional context
Error:
##[debug]│ Error: Client error when creating
##[debug]│
##[debug]│ with module.dealer4.module.power_platform_production.powerplatform_data_record.pp_environment_app_user["app_01"],
##[debug]│ on .terraform/modules/dealer4/modules/power_platform/add_users_to_pp_environment.tf line 21, in resource "powerplatform_data_record" "pp_environment_app_user":
##[debug]│ 21: resource "powerplatform_data_record" "pp_environment_app_user" ***
##[debug]│
##[debug]│ Unexpected HTTP status code. Expected: [200 204], received: [412] 412
##[debug]│ Precondition Failed | "error":"code":"0x80040237","message":"A record
##[debug]│ with matching key values already exists."***
Contribution
Do you plan to raise a PR to address this issue? YES.
The text was updated successfully, but these errors were encountered:
Adding user to environment returns: "A record with matching key values already exists. Unexpected HTTP status code. Expected: [200 204], received: [412] 412".
Adding Application users by their AAD ID returns:
Unexpected HTTP status code. Expected: [200 204], received: [412] 412
Precondition Failed | "error":"code":"0x80040237","message":"A record
with matching key values already exists."***
Sample Terraform Code
Sample Terraform code to create environment, get roles and add application User, app user for this case is a Service Principal
Expected behavior
System Information
Additional context
Error:
##[debug]│ Error: Client error when creating
##[debug]│
##[debug]│ with module.dealer4.module.power_platform_production.powerplatform_data_record.pp_environment_app_user["app_01"],
##[debug]│ on .terraform/modules/dealer4/modules/power_platform/add_users_to_pp_environment.tf line 21, in resource "powerplatform_data_record" "pp_environment_app_user":
##[debug]│ 21: resource "powerplatform_data_record" "pp_environment_app_user" ***
##[debug]│
##[debug]│ Unexpected HTTP status code. Expected: [200 204], received: [412] 412
##[debug]│ Precondition Failed | "error":"code":"0x80040237","message":"A record
##[debug]│ with matching key values already exists."***
Contribution
Do you plan to raise a PR to address this issue? YES.
The text was updated successfully, but these errors were encountered: