--- title: DiscountsAllocatorFunctionUserErrorCode - GraphQL Admin description: Possible error codes that can be returned by `DiscountsAllocatorFunctionUserError`. api_version: unstable api_name: admin source_url: html: https://shopify.dev/docs/api/admin-graphql/unstable/enums/discountsallocatorfunctionusererrorcode md: https://shopify.dev/docs/api/admin-graphql/unstable/enums/discountsallocatorfunctionusererrorcode.md --- # Discounts​Allocator​Function​User​Error​Code enum Possible error codes that can be returned by `DiscountsAllocatorFunctionUserError`. ## Valid values * FUNCTION\_​NOT\_​FOUND The discounts allocator function cannot be found. * INELIGIBLE\_​SHOP The shop is not eligible for discounts allocator functions. * INTERNAL\_​ERROR Unexpected internal error happened. * INVALID\_​FUNCTION\_​TYPE The function provided was not a discounts allocator function. *** ## Fields * [Discounts​Allocator​Function​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountsAllocatorFunctionUserError#field-DiscountsAllocatorFunctionUserError.fields.code) OBJECT An error that occurs during the execution of a discounts allocator function mutation. *** ## Map ### Fields with this enum * <-|[Discounts​Allocator​Function​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/DiscountsAllocatorFunctionUserError#field-DiscountsAllocatorFunctionUserError.fields.code)