Error Codes

The following table contains the DICOM error codes. Test for errors with an On Error statement.

For a list of the other LEADTOOLS errors, refer to Error Codes in the Main COM help file in the HELP directory.

0

DICOM_SUCCESS

20001

DICOM_ERROR_LOCKED - Dicom support is locked. You must unlock the Medical Support.

20002

DICOM_ERROR_MEMORY - Insufficient memory.

20003

DICOM_ERROR_OPEN - Error opening the file.

20004

DICOM_ERROR_READ - Error reading the file.

20005

DICOM_ERROR_WRITE - Error writing to a file.

20006

DICOM_ERROR_SEEK - Error during search.

20007

DICOM_ERROR_END - Error - end of file.

20008

DICOM_ERROR_FORMAT - Improper file format.

20009

DICOM_ERROR_PARAMETER - Incorrect parameter.

20010

DICOM_ERROR_IMAGE - Improper image.

20011

DICOM_ERROR_COMPRESSION - Improper compression.

20012

DICOM_ERROR_PHOTOMETRIC - Improper photometric type.

20013

DICOM_ERROR_CONVERSION - Error converting the file.

20014

DICOM_ERROR_RANGE - Out of range.

20015

DICOM_ERROR_BITSPERPIXEL - Improper bits per pixel.

20016

DICOM_ERROR_QFACTOR - Improper quality factor.

20017

DICOM_ERROR_PDU_TYPE - Improper PDU type.

20018

DICOM_ERROR_PDU_LENGTH - Improper PDU length.

20019

DICOM_ERROR_PDU_ID - Improper PDU ID.

20029

DICOM_ERROR_NET_FAILURE - Network failure.

20030

DICOM_ERROR_NET_ACCESS - The address is a broadcast address

20031

DICOM_ERROR_NET_ADDRESS_IN_USE - The address is already in use

20032

DICOM_ERROR_NET_ADDRESS_NOT_AVAILABLE - The address is not available from the local computer

20033

DICOM_ERROR_NET_ADDRESS_NOT_SUPPORTED - The address family is not supported

20034

DICOM_ERROR_NET_CONNECTION_ABORTED - The virtual circuit was aborted

20035

DICOM_ERROR_NET_CONNECTION_REFUSED - The attempt to connect was forcefully rejected

20036

DICOM_ERROR_NET_CONNECTION_RESET - The virtual circuit was reset by the remote side

20037

DICOM_ERROR_NET_DESTINATION_REQUIRED - A destination address is required

20038

DICOM_ERROR_NET_ARGUMENT_INCORRECT - The namelen argument is incorrect

20039

DICOM_ERROR_NET_IN_PROGRESS - A blocking operation is in progress

20040

DICOM_ERROR_NET_BLOCKING_CANCELED - The blocking call was canceled

20041

DICOM_ERROR_NET_INVALID - The socket has not been bound with bind

20042

DICOM_ERROR_NET_IS_CONNECTED - The socket is already connected

20043

DICOM_ERROR_NET_NO_MORE_FILE - No more file descriptors are available

20044

DICOM_ERROR_NET_MESSAGE_SIZE - The datagram is larger than the maximum supported

20045

DICOM_ERROR_NET_DOWN - The network subsystem has failed

20046

DICOM_ERROR_NET_RESET - The connection must be reset

20047

DICOM_ERROR_NET_UN_REACH - The network can't be reached from this host at this time

20048

DICOM_ERROR_NET_NO_BUFFERS - No buffer space is available

20049

DICOM_ERROR_NET_NOT_CONNECTED - The socket is not connected

20050

DICOM_ERROR_NET_NOT_SOCKET - The descriptor is not a socket

20051

DICOM_ERROR_NET_OPERATION_NOT_SUPPORTED - The type does not support connection-oriented service

20052

DICOM_ERROR_NET_PROTOCOL_NOT_SUPPORTED - The specified protocol is not supported

20053

DICOM_ERROR_NET_PROTOCOL_TYPE - The specified protocol is the wrong type

20054

DICOM_ERROR_NET_SHUTDOWN - The socket has been shut down

20055

DICOM_ERROR_NET_SOCKET_NOT_SUPPORTED - The type is not supported in this address family

20056

DICOM_ERROR_NET_TIME_OUT - Attempt to connect timed out without establishing a connection

20057

DICOM_ERROR_NET_WOULD_BLOCK - The socket is marked as nonblocking and the requested operation would block

20058

DICOM_ERROR_NET_HOST_NOT_FOUND - Authoritative Answer Host not found

20059

DICOM_ERROR_NET_NO_DATA - Valid name, no data record of requested type

20060

DICOM_ERROR_NET_NO_RECOVERY - Nonrecoverable errors

20061

DICOM_ERROR_NET_NOT_INITIALISED - The system was not initialized

20062

DICOM_ERROR_NET_SYSTEM_NOT_READY - Not ready for network communication

20063

DICOM_ERROR_NET_TRY_AGAIN - Non-Authoritative Host not found, or server failed

20064

DICOM_ERROR_NET_VERSION_NOT_SUPPORTED - The version requested is not provided by this implementation

20065

DICOM_ERROR_NET_SECURITY_BREACH - There is a cryptographic error.

20066

DICOM_ERROR_TLS - TLS internal error

20067

DICOM_ERROR_SECURITY_LOCKED - DICOM Security Features are locked

20068

DICOM_ERROR_TLS_DLL_NOT_LOADED - TLS and/or CRY DLL not loaded

20069

DICOM_ERROR_BAD_SECURE_MODE - ISCL operation attempted on TLS object

20070

DICOM_ERROR_ANN - Annotation error

20071

DICOM_ERROR_ANN_LOCKED - Annotation support is locked

20072

DICOM_ERROR_ANN_MISSING - Annotation dll is missing

20073

DICOM_ERROR_TAG_ALREADY_EXISTS - LEAD private creator element already exists

20074

DICOM_ERROR_ANN_NO_EXIST - Requested annotation file or page does not exist

20100

DICOM_ERROR_ISCL_BAD_OPTION - Bad option

20101

DICOM_ERROR_ISCL_BAD_LENGTH - Bad length

20102

DICOM_ERROR_ISCL_LOCAL_ICCARD - Error in the local IC card

20103

DICOM_ERROR_ISCL_REMOTE_ICCARD - Error in the remote IC card

20104

DICOM_ERROR_ISCL_BAD_MSGID - Bad message ID

20105

DICOM_ERROR_ISCL_BAD_VERSION - Bad version number

20106

DICOM_ERROR_ISCL_BAD_MUTUAL_AUTH_METHOD - Bad mutual authentication mode

20107

DICOM_ERROR_ISCL_BAD_COMMBLOCK_LENGTH - Bad communication block length

20108

DICOM_ERROR_ISCL_RECEIVED_NAK - Received a 'Not Acknowledged' message

20109

DICOM_ERROR_ISCL_MSG_TRANSMISSION - Error in the message transmission

20110

DICOM_ERROR_ISCL_PEER_SMALL_LENGTH - Peer small length

20111

DICOM_ERROR_ISCL_LOCAL_SMALL_LENGTH - Local small length

20112

DICOM_ERROR_ISCL_DECRYPT - Decryption error

20113

DICOM_ERROR_ISCL_BAD_MAC - Bad message authentication code

20114

DICOM_ERROR_ISCL_RND_NO_FOR_SESSION_KEY_EXPECTED - Round number for session key expected.

20115

DICOM_ERROR_ISCL_PEER_REFUSE_CLOSE - Peer refused close request

20128

DICOM_ERROR_TLS_CLOSE_NOTIFY - Error in close notification

20129

DICOM_ERROR_TLS_UNEXPECTED_MESSAGE - Unexpected message

20130

DICOM_ERROR_TLS_BAD_RECORD_MAC - Bad record message authentication code

20131

DICOM_ERROR_TLS_DECRYPT_FAILED - Decryption failed

20132

DICOM_ERROR_TLS_RECORD_OVERFLOW - Record overflow

20133

DICOM_ERROR_TLS_DECOMPRESSION_FAILURE - Decompression failed

20134

DICOM_ERROR_TLS_HANDSHAKE_FAILURE - Handshake failed

20135

DICOM_ERROR_TLS_BAD_CERTIFICATE - Bad certificate

20136

DICOM_ERROR_TLS_UNSUPPORTED_CERTIFICATE - Unsupported certificate

20137

DICOM_ERROR_TLS_CERTIFICATE_REVOKED - Certificate revoked

20138

DICOM_ERROR_TLS_CERTIFICATE_EXPIRED - Certificate Expired

20139

DICOM_ERROR_TLS_CERTIFICATE_UNKNOWN - Certificate unknown

20140

DICOM_ERROR_TLS_ILLEGAL_PARAMETER - Illegal parameter

20141

DICOM_ERROR_TLS_UNKNOWN_CA - Unknown certificate authenticator

20142

DICOM_ERROR_TLS_ACCESS_DENIED - Access denied

20143

DICOM_ERROR_TLS_DECODE_ERROR - Error decoding

20144

DICOM_ERROR_TLS_DECRYPT_ERROR - Decryption error

20145

DICOM_ERROR_TLS_EXPORT_RESTRICTION - Export restriction

20146

DICOM_ERROR_TLS_PROTOCOL_VERSION - Wrong protocol version

20147

DICOM_ERROR_TLS_INSUFFICIENT_SECURITY - Insufficient security

20148

DICOM_ERROR_TLS_INTERNAL_ERROR - Internal error Call LEAD

20149

DICOM_ERROR_TLS_USER_CANCELED - User cancelled

20150

DICOM_ERROR_TLS_NO_RENEGOTIATION - No renegotiation

20151

DICOM_ERROR_TLS_NO_KEEPALIVE - "Windows Sockets provider" does not support the use of keep-alives.

20152

DICOM_ERROR_TLS_CLOSED_CONTROLLED - An error occurred and the connection was closed gracefully.

20160

DICOM_ERROR_TLS_UNABLE_TO_GET_ISSUER_CERT - "Unable to get issuer certificate"

20161

DICOM_ERROR_TLS_UNABLE_TO_GET_CRL - "Unable to get CRL"

20162

DICOM_ERROR_TLS_UNABLE_TO_DECRYPT_CERT_SIGNATURE - "Unable to decrypt certificate signature"

20163

DICOM_ERROR_TLS_UNABLE_TO_DECRYPT_CRL_SIGNATURE - "unable to decrypt CRL signature"

20164

DICOM_ERROR_TLS_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY - "unable to decode issuer public key"

20165

DICOM_ERROR_TLS_CERT_SIGNATURE_FAILURE - "Certificate signature failure"

20166

DICOM_ERROR_TLS_CRL_SIGNATURE_FAILURE - "Error TLS CRL Signature Failure"

20167

DICOM_ERROR_TLS_CERT_NOT_YET_VALID - "Error TLS Certificate Not Yet Valid"

20168

DICOM_ERROR_TLS_CERT_HAS_EXPIRED - "Error TLS Certificate Has Expired"

20169

DICOM_ERROR_TLS_CRL_NOT_YET_VALID - "Error TLS CRL Not Yet Valid"

20170

DICOM_ERROR_TLS_CRL_HAS_EXPIRED - "Error TLS CRL Has Expired"

20171

DICOM_ERROR_TLS_ERROR_IN_CERT_NOT_BEFORE_FIELD - "Error TLS Error In Certificate Not Before Field"

20172

DICOM_ERROR_TLS_ERROR_IN_CERT_NOT_AFTER_FIELD - "Error TLS Error In Certificate Not After Field"

20173

DICOM_ERROR_TLS_ERROR_IN_CRL_LAST_UPDATE_FIELD - "Error TLS Error In CRL Last Update Field"

20174

DICOM_ERROR_TLS_ERROR_IN_CRL_NEXT_UPDATE_FIELD - "Error TLS Error In CRL Next Update Field"

20175

DICOM_ERROR_TLS_OUT_OF_MEM - "Error TLS Out Of Memory"

20176

DICOM_ERROR_TLS_DEPTH_ZERO_SELF_SIGNED_CERT - "Error TLS Depth Zero Self Signed Certificate"

20177

DICOM_ERROR_TLS_SELF_SIGNED_CERT_IN_CHAIN - "Error TLS Self Signed Certificate In Chain"

20178

DICOM_ERROR_TLS_UNABLE_TO_GET_ISSUER_CERT_LOCALLY - "Error TLS Unable To Get Issuer Certificate Locally"

20179

DICOM_ERROR_TLS_UNABLE_TO_VERIFY_LEAF_SIGNATURE - "Error TLS Unable To Verify Leaf Signature"

20180

DICOM_ERROR_TLS_CERT_CHAIN_TOO_LONG - "Error TLS Certificate Chain Too Long"

20181

DICOM_ERROR_TLS_CERT_REVOKED - "Error TLS Certificate Revoked"

20182

DICOM_ERROR_TLS_INVALID_CA - "Error TLS Invalid CA"

20183

DICOM_ERROR_TLS_PATH_LENGTH_EXCEEDED - "Error TLS Path Length Exceeded"

20184

DICOM_ERROR_TLS_INVALID_PURPOSE - "Error TLS Invalid Purpose"

20185

DICOM_ERROR_TLS_CERT_UNTRUSTED - "Error TLS Certificate Untrusted"

20186

DICOM_ERROR_TLS_CERT_REJECTED - "Error TLS Certificate Rejected"

20187

DICOM_ERROR_TLS_SUBJECT_ISSUER_MISMATCH - "Error TLS Subject Issuer Mismatch"

20188

DICOM_ERROR_TLS_AKID_SKID_MISMATCH - "Error TLS AKID SKID Mismatch"

20189

DICOM_ERROR_TLS_AKID_ISSUER_SERIAL_MISMATCH - "Error TLS AKID Issuer Serial Mismatch"

20190

DICOM_ERROR_TLS_KEYUSAGE_NO_CERTSIGN - "Error TLS Keyusage No Certsign"

20191

DICOM_ERROR_TLS_APPLICATION_VERIFICATION - "Error TLS Application Verification"

20192

DICOM_ERROR_TLS_INVALID_CTX - "Error TLS Invalid SSL Context"

20193

DICOM_ERROR_TLS_INVALID_CTX_VERIFY_DEPTH - "Error TLS Invalid SSL Context Verify Depth"

20194

DICOM_ERROR_TLS_INVALID_CTX_VERIFY_MODE - "Error TLS Invalid SSL Context Verify Mode"

20195

DICOM_ERROR_TLS_INVALID_CTX_CAFILE - "Error TLS Invalid SSL Context CA File"

20196

DICOM_ERROR_TLS_INVALID_CTX_OPTIONS - "Error TLS Invalid SSL Context Options"

20200

DICOM_ERROR_DICOMDIR_FOLDER - The destination folder of the DICOMDIR File is not specified, or the specified folder doesn’t exist.

20201

DICOM_ERROR_FILE - The file doesn’t reside in the destination folder of the DICOMDIR File or in a subfolder of it, or the file doesn’t exist.

20202

DICOM_ERROR_FILEID - The File ID of the specified file is invalid. Refer to the RejectInvalidFileID property for more information.

20203

DICOM_ERROR_J2K_LOCKED - J2K support is locked.

20204

DICOM_ERROR_LUT_DESCRIPTOR_MISSING – LUT descriptor is missing.

20205

DICOM_ERROR_MODALITY_LUT_MISSING – Modality LUT is missing.

20206

DICOM_ERROR_BAD_PIXEL_REPRESENTATION – Bad pixel representation.

20207

DICOM_ERROR_PALETTECOLORLUTDATAMISSING – Palette color LUT is missing.

20208

DICOM_ERROR_FEATURE_NOT_SUPPORTED – Feature not supported.

20209

DICOM_ERROR_VOI_LUT_MISSING – VOI LUT is missing.

20210

DICOM_ERROR_OVERLAY_ATTRIBUTES_MISSING – Overlay attributes are missing.

20211

DICOM_ERROR_OVERLAY_ACTIVATIONLAYER_MISSING – Overlay activation layer element is missing.

20212

DICOM_ERROR_OVERLAY_DATA_MISSING – Overlay data element is missing.

20213

DICOM_ERROR_INVALID_STRUCT_SIZE – Invalid structure size.

20214

DICOM_ERROR_NULL_PTR – NULL pointer.

20215

DICOM_ERROR_LTIMG_MISSING – LTIMG DLL is missing.

20216

DICOM_ERROR_CRYPTO_LIB_LOAD_FAILED - Failed to load the underlying cryptographic library

20217

DICOM_ERROR_INVALID_MAC_TRANSFER_SYNTAX -Unable to change to the MAC Calculation Transfer Syntax

20218

DICOM_ERROR_PRIVATE_KEY_LOAD_FAILED - Failed to load the private key from the specified file

20219

DICOM_ERROR_CERTIFICATE_LOAD_FAILED - Failed to load the digital certificate from the specified file

20220

DICOM_ERROR_CERTIFICATE_READ_FAILED - Failed to read the digital certificate from the Data Set

20221

DICOM_ERROR_KEYS_MISMATCH - The specified private key doesn’t match the public key in the specified digital certificate

20222

DICOM_ERROR_INVALID_MAC_ALGORITHM - The specified Digital Signature Security Profile doesn’t allow the use of the specified MAC Algorithm

20223

DICOM_ERROR_INVALID_ENCRYPTION_ALGORITHM - The specified Digital Signature Security Profile doesn’t allow the use of the encryption algorithm implied by the specified keys

20224

DICOM_ERROR_MAC_ID_NUMBER_ALLOCATE_FAILED - All possible values for the MAC ID Number are already used in the associated MAC Parameters Sequence

20225

DICOM_ERROR_CRYPTO_LIB_FAILURE - The underlying cryptographic library failed

20226

DICOM_ERROR_MAC_PARAMETER_MISSING - Failed to verify the Digital Signature because one or more of the MAC Parameters are missing

20227

DICOM_ERROR_MAC_ID_NUMBER_MISSING - Failed to verify the Digital Signature because no MAC Parameters Sequence Item is referenced

20228

DICOM_ERROR_UNKNOWN_MAC_ALGORITHM - Failed to verify the Digital Signature because the specified MAC Algorithm is unknown

20229

DICOM_ERROR_SIGNATURE_MISSING - Failed to verify the Digital Signature because the Signature is missing

20230

DICOM_ERROR_INVALID_SIGNATURE - The Digital Signature is invalid or at least one of the Digital Signatures in the Data Set is invalid

20231

DICOM_ERROR_CMP_FILTER_MISSING - LFCMP Filter is missing

20232

DICOM_ERROR_J2K_FILTER_MISSING - LFJ2K Filter is missing

20301

DICOM_ERROR_PRINTSCU_CLASS_NOT_SUPPORTED - The required SOP/Meta SOP Class is not supported on the Association (refer to the method itself)

20302

DICOM_ERROR_PRINTSCU_TIME_OUT - Timed out (refer to the Timeout property)

20303

DICOM_ERROR_PRINTSCU_ASSOCIATE_RQ_REJECTED - The Association request was rejected by the Print SCP (refer to the Associate method)

20304

DICOM_ERROR_PRINTSCU_FAILURE_STATUS - The response of the Print SCP specifies a Failure status code (the operation was not performed)