Skip to main content

2xxxx codes

Error codes 2xxxx indicate business logic related issues with input (failed preconditions, validations etc.).

21000​

MessageOne or more preconditions failed
DescriptionThe provided input data are valid, but do not conform some of the prerequisites of the requested operation
DetailsContains details about the failed preconditions. See error codes of the details below
What to doCheck the details field for additional information

21000-1001​

Messageasset with unique Id uniqueAssetId does not exist
Descriptionthe requested operation requires, that the asset with the 'uniqueAssetId' exists prior to execution of this operation
What to docheck that correct uniqueAssetId is used
ArgumentsuniqueAssetId

21000-1002​

Messagethe user userId does not own asset uniqueAssetId issuer's address assetIssuerAddress
Descriptionthe requested operation requires, that the user, requesting the operation, owns the wallet, that was used to create the asset
What to do

- check that correct uniqueAssetId is used

- check that correct user in requesting the operation

- check that the 'assetIssuerAddress' wallet is added to user's wallet

Arguments

userId

uniqueAssetId

assetIssuerAddress

21000-1003​

Messageinvalid units amount provided (must be positive integer): providedAmount
Descriptionthe amount of sparks is less than or equal to zero
What to docheck the value of the sparks and provide correct value of providedAmount
ArgumentsprovidedAmount

21000-1004​

Messagespark factor is not defined for the asset uniqueAssetId
Descriptionthe requested operation requires, that the spark factor is defined for the asset, but it's actually missing
What to doadd sparkFactor to the asset description
ArgumentsuniqueAssetId

21000-1005​

Messagethe user userId does not own signer address signerAddress
Descriptionthe user does not own the signer address
What to docheck that the 'assetIssuerAddress' wallet is added to user's wallet
Arguments

userId

signerAddress

21000-1006​

Messagenot enough sparks on the balance. Address: signerAddress, uniqueAssetId: uniqueAssetId, required amount: requiredAmount, actual amount: actualAmount
Descriptionthe requested operation requires, that there's at least 'actualAmount' of sparks on the 'signerAddress' asset balance
What to doadd enough sparks of the asset to the 'signerAddress'
Arguments

signerAddress

uniqueAssetId

requiredAmount

actualAmount

21000-1007​

Messagethe instance is configured to operate on assets from ledger configuredLedgerId, but the requested asset 'uniqueAssetId' is from ledger assetLedgerId
Descriptionthe requested operation requires, that the asset with the 'uniqueAssetId' was created in the ledger, that is configured for the current instance
What to docheck that correct uniqueAssetId is used
Arguments

configuredLedgerId

uniqueAssetId

assetLedgerId

21000-1008​

Messagethe source asset with id 'sourceUniqueAssetId' is already linked to the asset with id 'targetUniqueAssetId'
Descriptionit is not possible to link an already liked asset
What to docheck that the targetUniqueAssetId belongs to an asset that is not yet linked
Arguments

sourceUniqueAssetId

targetUniqueAssetId

21000-1009​

Messagethe source asset with id 'sourceUniqueAssetId' is not linked to the asset with id 'targetUniqueAssetId'
Descriptionit is not possible to unlink assets which are not linked
What to docheck that the targetUniqueAssetId of a linked asset is used
Arguments

sourceUniqueAssetId

targetUniqueAssetId

21000-1019​

Messageinvalid exchange rate provided (must be positive): 'providedAmount'
Descriptionthe exchange rate is less than or equal to zero
What to docheck the value of the exchange rate and provide correct value of providedAmount
ArgumentsprovidedAmount

21000-1020​

Messagesupply end date must be specified using ExpirationDate or ExpirationBlock
Descriptionthe requested operation requires, that either of the parameters: ExpirationDate or ExpirationOnBlock is specified. You can't specify both of them
What to dospecify only one parameter: ExpirationDate or ExpirationOnBlock in the request

21000-1021​

Messagesupply with Id 'supplyId' does not exist
Descriptionthe requested operation requires, that the supply with the 'supplyId' exists prior to execution of this operation
What to docheck that correct supplyId is used
ArgumentssupplyId

22000​

MessageOne or more validations failed
DescriptionThe provided input data are correct, but do not conform some of the prerequisites of the requested operation
Detailscontains details about the failed validations. See error codes of the details below
What to doCheck the details field for additional information

22000-2001​

MessageEither asset name or issuer address should be provided in search request
Descriptionwhen executing a search, either asset name or issuer address or both should be provided in search request, but both fields are empty
What to dofill either or both of the requested fields

22000-2002​

MessageIssuer address value should be 40 or 42 symbol long
DescriptionWhen executing a search a valid address should be provided: it should be 40 characters long or 42 if prefixed with 0x
What to doProvide a correct issuer address

22000-2003​

MessageValid language code should be provided for asset
DescriptionA created asset must have a value for the field 'Language'
What to doAssign a correct value taken from the document db collection of attributes

22000-2004​

MessageValid jurisdiction should be provided for asset
DescriptionA created asset must have a value for the field 'jurisdiction'
What to doAssign a correct value taken from the document db collection of attributes

22000-2005​

MessageAsset's unit of measure is not valid
DescriptionAn incorrect value is provided for the asset's property 'UnitOfMeasure'
What to doAssign a correct value taken from the document db collection of attributes

22000-2006​

MessageAsset's spark factor is not valid
DescriptionAn incorrect value is provided or the asset's property 'SparkFactor'
What to doProvide a valid number for the asset's property 'SparkFactor'

22000-2007​

MessageAsset's class is not valid
DescriptionAn incorrect value is provided for the asset's property 'AssetClass'
What to doAssign a correct value taken from the document db collection of attributes

22000-2008​

MessageThe number of sections in Asset custom definition item's SectionsPathNames differs from SectionsPath
DescriptionThe number of sections in Asset custom definition item's SectionsPathNames differs from SectionsPath. For example, SectionPath="[main][fields][name]" has three sections and SectionsPathNames has only two "[Main][Asset properties]"
What to doEither provide the same number of section names in SectionsPathNames as for SectionsPath or leave it empty. In latter case the names will be copied from SectionsPath

22000-2009​

MessageOffered asset unqueId must be specified in request
DescriptionThe request does not contain a value for the required property OfferedAssetId
What to doProvide a value for the property OfferedAssetId

22000-2010​

MessageDesired asset unqueId must be specified in request
DescriptionThe request does not contain a value for the required property DesiredAssetId
What to doProvide a value for the property DesiredAssetId

22000-2011​

MessageDesired and offered assets unqueIds must differ
DescriptionSame values are provided for both OfferedAssetId and DesiredAssetId properties in the request
What to doProvide different values for the properties OfferedAssetId and DesiredAssetId

22000-2012​

MessageEither offered or desired amount of sparks must be specified in request but not both
DescriptionIt is required, that either OfferedAmount or DesiredAmount value is specified in the request (not both)
What to doCheck that one and only one property (either OfferedAmount or DesiredAmount) is assigned a value

22000-2013​

MessageSigner address must be specified
DescriptionAn authenticated user can have different owned address, so the signer address must be specified
What to doProvide a value for the property SignerAddress

22000-2014​

MessageInput amount must be a positive integer
DescriptionIncorrect value is specified for the property InputAmount
What to doProvide a positive integer value for the property InputAmount

22000-2015​

MessageArray of supply ids must contain at least one supply id
DescriptionThe SupplyIds property must be a non-empty array
What to doProvide a correct value (non-empty array) for the SupplyIds property

22000-2016​

MessageArray of target unique asset ids must not be empty
DescriptionThe TargetAssetIds property must be a non-empty array
What to doProvide a correct value (non-empty array) for the TargetAssetIds property

22000-2017​

MessageUser can delete only his own data. Calling user:callingUserUser to delete:userToDelete
DescriptionThe user id of currently logged-in user is different than the id, provided as parameter for deletion
What to doProvide the userId as parameter same as the current user id

22000-2018​

MessageDesired amount must be a positive integer
DescriptionThe request contains incorrect value of DesiredAmount, it must be positive integer
What to do

Provide correct value in sparks for the

DesiredAmount

22000-2019​

MessageTarget address must be specified
DescriptionThe request does not contain a value for the required property TargetAddress
What to doProvide the address TargetAddress to which sparks will be sent when invoice is paid

22000-2020​

MessageThe due date is required and must be in the future
DescriptionThe request contains incorrect value of DueOn, it must be the date in the future (more than current date)
What to do

Provide correct date for the

DueOn

22000-2021​

MessageAsset's currency is not valid
Description

The request contains incorrect value of

CurrencyCode

What to doCheck the list of available currencies by calling GET /Currencies and provide correct value for CurrencyCode

22000-2022​

MessageUnit of measure field is not supported for current asset type
Description

The request contains value of

UnitOfMeasureCode though the asset has the type which doesn't support property UnitOfMeasureCode, asset should have CurrencyCode instead

What to doRemove UnitOfMeasureCode from the request or change the asset

22000-2023​

MessageCurrency field is not supported for current asset type
Description

The request contains value of

CurrencyCode though the asset has the type which doesn't support property CurrencyCode, asset should have UnitOfMeasureCode instead

What to doRemove CurrencyCode from the request or change the asset

22000-2024​

MessageWallet with EthereumAddress already exists
DescriptionThe wallet address which was used as EthereumAddress in the request already exists in the list of wallets of the specified UserId
What to doProvide correct request data: new EthereumAddress for the specified UserId or new UserId for the specified EthereumAddress

22000-2025​

MessageWarp desired asset warpDesiredUniqueAssetId does not match the invoice asset invoiceUniqueAssetId"
DescriptionThe result of the warp execution gives the units of an asset that is different form the asset defined in the invoice
What to doWhen paying an invoice with WARP, the WARP desired asset must correspond to the asset defined in the invoice.

22000-2026​

MessageThe output amount after warp execution is not sufficient
DescriptionThe result of the warp execution gives an amount that is less than the amount defined in the invoice
What to doSpecify the higher amount. Or better use the input amount provided in the result of the WARP search

22000-2030​

Messagesupply end date must be in range minSupplyEndDate to maxSupplyEndDate
Descriptioneither of the supply end date parameters (ExpirationDate or ExpirationOnBlock) does not fit in the min/max end date limit
What to docheck the value of the supply end date and provide correct value