Getting error after signin/signup through adb2c hosted pages

Prateek Rathore 21 Reputation points

I am getting error page which stated AADB2C: An exception has occurred sometimes when we sign in or sign up with azure adb2c custom policy we integrated.
can we check these kind of error with correlation id mentioned in screenshot ? is there anyway to check the exception msg occurred in this error page

Please check attached screenshot one of error page.


Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
785 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,631 questions
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points

    Hi Prateek,

    As this is a custom policy I will sugges you to diagnose problems and investigate in detail, use Application Insights. Application Insights traces the activity of your custom policy user journey. It provides a way to diagnose exceptions and observe the exchange of claims between Azure AD B2C and the various claims providers that are defined by technical profiles, such as identity providers, API-based services, the Azure AD B2C user directory, and other services.

    As you have Correlation ID please follow this troubleshooting guide and use App Insights. troubleshoot

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Sandeep G-MSFT 14,076 Reputation points Microsoft Employee

    @Prateek Rathore

    I have pulled the error by using the correlation ID that you shared. As per the backend logs below is the error due to which it is failing,

    "Microsoft.Cpim.Common.ClaimTypeMismatchException: The data type 'Boolean' of the claim with id 'extension_IsPaypal' does not match the DataType 'String' of ClaimType with id 'extension_IsPaypal' specified in the policy."

    This indicates that there is a mismatch between the claim type which is configured and the claim value that you are sending.
    You can check the claim type in the policy and confirm if they are mentioned correctly.

    Or you can also fix this issue by checked the output claim source and confirm if the claim values are being pulled and passed as it is expected as per claim type.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments