Getting the error below when creating the candy machine

  logs: [
    'Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d invoke [1]',
    'Program log: Instruction: CreateCollection',
    'Program 11111111111111111111111111111111 invoke [2]',
    'Program 11111111111111111111111111111111 success',
    'Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d consumed 6149 of 1000000 compute units',
    'Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d success',
    'Program 11111111111111111111111111111111 invoke [1]',
    'Program 11111111111111111111111111111111 success',
    'Program CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J invoke [1]',
    'Program log: Instruction: Initialize',
    'Program log: AnchorError thrown in program/src/state/candy_machine_data.rs:104. Error Code: ExceededLengthError. Error Number: 6013. Error Message: Value longer than expected maximum value.',
    'Program CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J consumed 16759 of 993701 compute units',
    'Program CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J failed: custom program error: 0x177d'

2 Answers 2


The error was cause by exceeding the name length value which is defined here https://github.com/metaplex-foundation/mpl-core-candy-machine/blob/ef83491a2e5d7d6ba9e8f0b1547753f2d1fcefff/programs/candy-machine-core/program/src/state/candy_machine_data.rs#L103C16-L103C31

As per the docs, the name prefix is constrainted by a maximum length of 32 characters.

This also applies to the URI which has a maximum of 200 character.

The constraints apply for both TM Candy Machine and Core Candy Machine

source: https://developers.metaplex.com/candy-machine/settings#config-line-settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.