---
title: LocationActivateUserError - GraphQL Admin
description: An error that occurs while activating a location.
api_version: unstable
api_name: admin
source_url:
html: >-
https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationActivateUserError
md: >-
https://shopify.dev/docs/api/admin-graphql/unstable/objects/LocationActivateUserError.md
---
# LocationActivateUserError
object
Requires `read_locations` access scope.
An error that occurs while activating a location.
## Fields
* code
[LocationActivateUserErrorCode](https://shopify.dev/docs/api/admin-graphql/unstable/enums/LocationActivateUserErrorCode)
The error code.
* field
[\[String!\]](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
The path to the input field that caused the error.
* message
[String!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String)
non-null
The error message.
***
## Map
No referencing types
***
## Mutations
* [locationActivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationActivate)
mutation
Activates a location so that you can stock inventory at the location. Refer to the [`isActive`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Location#field-isactive) and [`activatable`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Location#field-activatable) fields on the `Location` object.
***
**Caution:** As of 2026-01, this mutation supports an optional idempotency key using the \@idempotent\ directive. As of 2026-04, the idempotency key is required and must be provided using the \@idempotent\ directive. For more information, see the \idempotency documentation\.
***
* locationId
[ID!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/ID)
required
### Arguments
The ID of a location to activate.
***
***
## LocationActivateUserError Mutations
### Mutated by
* [locationActivate](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/locationActivate)
***
## Interfaces
* [DisplayableError](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)
interface
***
## LocationActivateUserError Implements
### Implements
* [DisplayableError](https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/DisplayableError)