--- title: LocationDeactivateUserError - GraphQL Admin description: The possible errors that can be returned when executing the `locationDeactivate` mutation. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/locationdeactivateusererror md: https://shopify.dev/docs/api/admin-graphql/latest/objects/locationdeactivateusererror.md --- # Location​Deactivate​User​Error object Requires `read_locations` access scope. The possible errors that can be returned when executing the `locationDeactivate` mutation. ## Fields * code [Location​Deactivate​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/LocationDeactivateUserErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [location​Deactivate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/locationDeactivate) mutation Deactivates a location and moves inventory, pending orders, and moving transfers to a destination location. *** ## <\~> LocationDeactivateUserError Mutations ### Mutated by * <\~>[location​Deactivate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/locationDeactivate) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-LocationDeactivateUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)