Request

Response

    Error Codes Reference

    This page lists all error codes returned by the User Profile API. These codes appear in the extensions.internalCode field of GraphQL error responses.

    Note: Error codes are returned within a 200 OK response. See GraphQL Error Handling to understand how GraphQL errors work.

    Sample Error Response

    Sample Error Response

    Core Profile Error Codes

    These error codes relate to core user profile operations (queries and mutations on personal info, contact info, etc.).

    User Lookup Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-001 User with specified userId not found in the system. 404
    UP-CORE-077 User with specified emailId not found in the system. Email domain is SSO. 404
    UP-CORE-079 User with specified emailId not found in the system. 404

    Name Validation Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-002 Please enter your first name again. 400
    UP-CORE-003 First name exceeded the character limit. 400
    UP-CORE-004 First name contained unsupported characters. 400
    UP-CORE-005 First name must include at least one letter. 400
    UP-CORE-006 Please enter your last name again. 400
    UP-CORE-007 Last name exceeded the character limit. 400
    UP-CORE-008 Last name contained unsupported characters. 400
    UP-CORE-009 Last name must include at least one letter. 400
    UP-CORE-072 First name contains a word that is blocked. Please enter a different name. 400
    UP-CORE-073 Last name contains a word that is blocked. Please enter a different name. 400

    Contact Information Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-024 Email address was invalid. 400
    UP-CORE-026 Phone number was invalid. 400
    UP-CORE-056 Invalid phone extension. 400
    UP-CORE-061 Invalid phone type. 400
    UP-CORE-070 Invalid length for field emailId. 400
    UP-CORE-071 Email required. Please try again. 400
    UP-CORE-076 Input email does not belong to current user. 400

    Address Validation Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-010 Postal code exceeded character limit. 400
    UP-CORE-011 Postal code was invalid. 400
    UP-CORE-032 Invalid length for field address1. 400
    UP-CORE-052 Invalid character in address1. 400
    UP-CORE-053 Invalid character in address2. 400
    UP-CORE-054 Invalid characters in city. 400
    UP-CORE-055 Invalid characters in state. 400
    UP-CORE-064 Country is not supported. 400
    UP-CORE-065 Invalid length for field address2. 400
    UP-CORE-066 Invalid length for field city. 400
    UP-CORE-067 Invalid length for field state. 400

    Professional Information Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-012 Company name exceeded the character limit. 400
    UP-CORE-013 Job title exceeded the character limit. 400
    UP-CORE-057 Invalid characters in company. 400
    UP-CORE-058 Invalid characters in jobTitle. 400
    UP-CORE-060 Invalid characters in industry. 400
    UP-CORE-069 Invalid length for field industry. 400
    UP-CORE-074 Maximum 3 industry values can be selected. 400

    Other Errors

    Error CodeMessageHTTP Equivalent
    UP-CORE-062 The password you entered is incorrect. 400
    UP-CORE-063 Locale is not supported. 400
    UP-CORE-075 isReceivingPUDNecessaryInput cannot be set to false. 400
    UP-CORE-078 Language was invalid. 400
    UP-CORE-083 Web Products preference field is read-only and cannot be modified. This field is managed by the Consent & Privacy team. 400
    UP-XAPA-001 Error while fetching product usage data 500
    UP-FR-001 Query not Supported in FedRAMP environment 500

    GraphQL Query Security Error Codes

    These error codes apply when GraphQL query protection rejects a document on /userprofile or /unifieduserprofile (APIM alias). Responses use HTTP 200 with the error in the GraphQL errors[] array and data: null for the whole operation.

    Error CodeMessageHTTP Equivalent
    UP-GQLSEC-001 GraphQL query exceeded published protection limits (aliases, depth, complexity, or tokens). 400

    Reserved for future limit-specific codes: UP-GQLSEC-002, UP-GQLSEC-003, UP-GQLSEC-004.

    Published limits when gql_protection_enabled is on: 15 total aliases (document-wide), depth 7, complexity 1000, tokens 1000. Split batch lookups across multiple requests instead of exceeding alias limits.

    Product Preferences Error Codes

    These error codes relate to userProfile.productPreferences, updateProductPreferences, and deleteProductPreferences.

    Error CodeMessageHTTP Equivalent
    UP-PP-001 Invalid productLineName. 400
    UP-PP-003 Invalid or duplicate notification preference groupId. 400
    UP-PP-004 Product preferences payload exceeds allowed size. 400
    UP-PP-005 Assistant instructions exceed allowed length. 400

    Note: UP-PP-002 is reserved and not currently issued. Invalid userId format on mutations returns UP-CORE-081.