---
title: >-
  Removal of the error code INVALID from LocationDeactivateErrorCode - Shopify
  developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/removal-of-the-error-code-invalid-from-locationdeactivateerrorcode
  md: >-
    https://shopify.dev/changelog/removal-of-the-error-code-invalid-from-locationdeactivateerrorcode.md
metadata:
  effectiveApiVersion: 2023-01
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Deprecation Announcement
    handle: deprecation
  indicatesActionRequired: false
  createdAt: '2022-12-01T11:40:25-05:00'
  postedAt: '2023-01-01T00:00:00-05:00'
  updatedAt: '2024-12-13T17:24:35-05:00'
  effectiveAt: '2023-01-01T00:00:00-05:00'
---

January 1, 2023

Tags:

* API
* 2023-01

# Removal of the error code `INVALID` from LocationDeactivateErrorCode

As of GraphQL Admin API version `2023-01`, we are removing the error code `INVALID` from `LocationDeactivateUserError` as we never return this error code when using the mutation `locationDeactivate` to deactivate a location. If you are explicitly checking for this error code, you should remove references to it.

Learn more about { Location deactivate user error codes } on [Shopify.dev](https://shopify.dev/api/admin-graphql/2023-01/enums/LocationDeactivateUserErrorCode).
