active-directory-b2c-advanced-policies
active-directory-b2c-advanced-policies copied to clipboard
Validation errors do not communicate reason for failed validation
Does anyone have any advice on troubleshooting validation errors? I tried setting up Application Insights for my tenant but all I see is a generic message
"Error returned was 400/Request_BadRequest: One or more property values specified are invalid."
I had a working setup based on the starter pack. All I did was add a companyName field on signup and it fails validation. I posted more info at https://stackoverflow.com/questions/57186366/how-to-troubleshoot-validation-errors-in-azure-active-directory-b2c-custom-attri
That is the exact response returned from AAD Graph API. We don't yet log the request sent to Graph so we don't know which property has invalid value. But we are planning to enhance the debugability and logging experience so this kind of issue will be easier to troubleshoot in the future.