---
title: "Command errors"
canonical: "https://docs.cuesystem.com/space/CVCHELP/510525445/Command%20errors"
format: markdown
---
> Macro (toc)

---

# GetLastError

The function gets the error number of the **immediately previous command** within the same process or functions called from this process.  

#### Syntax 

```visualbasic
Function GetLastError() As Long
```

#### Return value 

<u>[Long](https://cue.atlassian.net/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the number of error.  

# SetLastError

The function sets the error number for this process. 

#### Syntax 

```visualbasic
Function SetLastError(errornumber As Long)
```

#### Parameters 

errornumber     

              <u>[Long](https://cue.atlassian.net/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the number of error. 

# **Error Codes**

# 0

No error. 

# 1

The process has been stopped. 

# 2

End of format. 

# 3

A type of format is not implemented. 

# 4

An unknown format. 

# 5

A right curly bracket missing.  

# 6

A number beforedotcount is zero. It must not be zero. 

# 7

A number afterdotcount is zero. It must not be zero. 

# 8

A number expdigitcount is zero. It must not be zero. 

# 9

A final apostrophe of an inline string missing. 

# 10

A binary or hexadecimal format cannot be used for a double type. 

# 11

The justification size is zero. It must not be zero. 

# 12

Justificationsize is not specified. 

# 13

Justificationsize must be greater than the real size. 

# 14

A specification of char encoding is invalid. 

# 15

A specification of char encoding is used twice. 

# 16

A source Text/ByteString is not available. 

# 17

A formatting Text/ByteString is not available. 

# 18

The number of parameters in a formatting Text/ByteString is less than the number of ParamArray parameters. 

# 19

A source Text/ByteString is too short. 

# 20

A destination value is not an address of a variable. 

# 21

A numerical type of a destination value does not correspond to the type of a variable. 

# 22

A destination value is not available. 

# 23

A free Text/ByteString is specified in a formatting Text/ByteString but does not correspond to the source formatting Text/ByteString. 

# 24

A formatting Text/ByteString is not allowed for the command Parse. 

# 25

A specified numeric type is not supported. 

# 26

Data cannot be sent to the IDE. 

# 27

Debug is not enabled. 

# 28

There is no space for other semaphores in a lock table. 

# 29

A semaphore is not locked. It must be locked when it is unlocked. 

# 30

The time is out of range of absolute time, it cannot be converted to the structure. 

# 31

The time is negative, it is invalid. 

# 32

A format specification does not correspond to the numerical type of a value. 

# 33

An unsupported type of format. 

# 34

An output Text/ByteString is too short to store whole converted data. 

# 35

A value cannot be shown in a specified format. 

# 36

Several parameters are less than the number of parameters in a formatting Text/ByteString. 

# 37

A parameter is not available. 

# 38

A destination Text/ByteString is not available. 

# 39

A formatting Text/ByteString is not available. 

# 40

Invalid XON/XOFF flow control parameters. 

# 41

An invalid delay flow control parameter. 

# 42

Invalid ACK flow control parameters. 

# 43

A length parameter is negative. 

# 44

A start parameter is negative or zero. 

# 45

A destination Text/ByteString is not available. 

# 46

A source Text/ByteString is not available. 

# 47

An output Text/ByteString is too short to store whole source data. 

# 48

A start position is greater than a current source length. 

# 49

A sum of a start position and a length is greater than a current source length. 

# 50

A length value is negative. 

# 51

A length value is greater than a declared length. 

# 52

A destination Text/ByteString is not available. 

# 53

A source Text/ByteString to get a length is not available. 

# 54

A source Text/ByteString to get a length is not available. 

# 55

A destination Text/ByteString is not available. 

# 56

A destination Text/ByteString is too short to concatenate all sources. 

# 57

A source is not Text/ByteString. All parameters must be Text (for ConcatenateText) or ByteString (for ConcatenateByteString). 

# 58

A source Text/ByteString is not available. 

# 59

A source Text/ByteString is not available. 

# 60

A destination Text/ByteString is not available. 

# 61

A trimchars Text/ByteString is not available. 

# 62

An output Text/ByteString is too short to store whole trimmed data. 

# 63

A source Text/ByteString is not available. 

# 64

A source subText/subByteString is not available. 

# 65

A From position is negative or zero. 

# 66

A From position is greater than a current source length. 

# 67

Invalid value of the compare flags. 

# 68

Text(s)/ByteString(s) to compare is(are) not available. 

# 69

A source Text is not available. 

# 70

A destination ByteString is not available. 

# 71

A destination is too short. 

# 72

An unknown format of the conversion. 

# 73

A source ByteString is not available. 

# 74

A destination Text is not available. 

# 75

A destination is too short. 

# 76

An unknown format of the conversion. 

# 77

A file cannot be opened. 

# 78

A file is not opened. 

# 79

A file is already opened. 

# 80

A length of a parameter is too short to store a whole path. 

# 81

A file cannot be deleted. 

# 87

DNS server is not set. 

# 88

An unknown URL. 

# 89

A channel is already connected. 

# 90

There are no free system resources for connecting a channel. 

# 91

A channel is not connected / a server is not opened. 

# 92

Receive timeout expired. 

# 93

A channel cannot connect to a server. 

# 94

Cannot connect to a server within a timeout. Cannot connect to a server because the connection has been refused by the server. 

# 95

A server is already opened. 

# 96

A port is already used. 

# 97

A count of remote clients exceeds the maximum limit. 

# 98

An invalid number of a client. 

# 99

A connection timeout expired. 

# 100

TCP server is not opened. 

# 101

Cannot find the file size. 

# 102

Cannot erase the content. 

# 103

An invalid foreign file descriptor. A file function cannot be operated from the foreign controller. 

# 104

A destination file cannot be opened. 

# 105

A destination file already exists. 

# 106

Cannot read from the source file. 

# 107

Cannot write to the destination file. 

# 108

Invalid path name format. 

# 109

Unknown virtual path. 

# 110

A path is too long. 

# 111

The file is not a required type. _TextFile content must be in UTF16-LE encoding with BOM. 

# 112

Cannot read from the file. The end of the file is reached. 

# 113

A parameter variable is not available. 

# 114

Unsupported type values to write. 

# 115

Cannot write to the file. 

# 116

A type of parameter variable and a variable in a file are not the same. 

# 117

The destination variable is not available. 

# 118

Cannot get the file position. 

# 119

Cannot create the folder. 

# 120

A destination ByteString must be 16 bytes long at least. 

# 121

Parameters are not available. 

# 123

A connection to the SMTP server failed. Attempt to specify the SMTP server as its IP address. 

# 124

A sender address was refused by the SMTP server. 

# 125

Parameter(s): sender, recipient, attachment, SMTP is (are) empty or in an invalid format. Use AdminWeb to set the SMTP server parameters, and email sender. If you use the SendPresetEmail command, you must also set the e-mail recipient in AdminWeb. 

# 126

A file attachment cannot be opened. 

# 127

A file attachment cannot be read. 

# 128

Parameter(s): authenticate username or password is (are) empty or in an invalid format. 

# 129

An authenticate type is not supported by the SMTP server. 

# 130

Some other authentication errors. 

# 131

Error from the SMTP server: authenticate username or password is (are) invalid. 

# 132

The command is not implemented. This may occur only in simulation mode. 

# 133

A parameter is not available. 

# 134

The parameter macaddress has a bad format. 

# 135

There are no free system resources. 

# 136

Cannot init broadcast socket. 

# 137

Cannot get the broadcast address. 

# 138

Cannot send wake on LAN packet. 

# 139

Cannot retrieve controller ipaddress and port. 

# 140

Destination bytestring is too short. 

# 141

_ModifiablePicture.ReadFromFile cannot read picture from file. Insufficient system resources to load the image. The image probably has too high a resolution.

#  142

_ModifiablePicture.ReadFromFile cannot read picture from file. The file does not exist or contains an image in an unsupported format. 

# 143

BytestringToText conversion error. UT8 bytestring contains invalid UTF8 codes. 

# 144

BytestringToTextOnTheFly conversion error. The destination buffer is full. 

# 145

The destination buffer is full. 

# 146

_Video.Play error. Cannot read the video from the URL. Probably URL is not valid. 

# 147

A resource is busy. The FTP client for downloading a file from the server is busy (maximum count of running concurrent FTP clients reached).  The audio or video channel is busy. 

# 148

Ip address is not a multicast address. 

# 149

Not enough memory to read a picture from the file. 

# 150

The picture does not exist or it is not in a supported format. 

# 151

Destination ByteString is too short for Ir Data. 

# 152

Source Ir data is not valid. 

# 153

Invalid parameter. The length of the header and/or footer must be greater than 0. Data length must be greater than 0. 

# 154

Declared result length exceeded. 

# 155

Calibrate battery has been stopped because external power was off. 

# 156

Calibrate battery has been interrupted by a call command StandBy or _Display.Off. 

# 157

ParseJSON command error. JSON text variable is not available. The error typically appears when the variable is in the remote controller and the controller is not available at the moment. 

# 158

ParseJSON command error. The error typically appears when the destination variable is too large. The maximum size of the destination parameter is 1MB. The second reason for this error is that the destination variable is in the remote controller and the controller is not available at the moment. 

# 159

ParseJSON command error. JSON text is empty. 

# 160

ParseJSON command error. JSON text byte size is odd. That error is one of the internal errors. When this error occurs, please, contact technical support. 

# 161

ParseJSON command error. Unexpected end of JSON text. The error appears when the JSON text is not syntactically correct. Maybe not complete? 

# 162

ParseJSON command error. The text is not a JSON object or array. The JSON text must start with the [ or { character (not counting whitespaces). 

# 163

ParseJSON command error. Invalid JSON token found. The JSON text is invalid, maybe corrupted. 

# 164

ParseJSON command error. The destination buffer is too short. The error appears when the parser reaches the end of the destination variable. That is one of the internal errors. Please, contact technical support. 

# 165

ParseJSON command error. JSON object syntax is invalid. The JSON text is not correctly formatted. 

# 166

ParseJSON command error. The unexpected character is found inside the JSON text. The JSON text is invalid. 

# 167

ParseJSON command error. Invalid escape hex character found inside the JSON text string value. The JSON text is invalid. 

# 168

ParseJSON command error. Invalid escape character found inside the JSON text string value. The JSON text is invalid. 

# 169

ParseJSON command error. JSON variable name path has too many levels. The JSON text is too complex. Actually, the maximum of levels is 10. 

# 170

ParseJSON command error. The name path in the JSON text is too long. The JSON text is too complex. The total amount of characters in the path to the actual JSON structure variable is actually 128 characters. When the real JSON variable is too complex, this error occurs. 

# 171

ParseJSON command error. Invalid JSON value starts character. The JSON text is invalid. 

# 172

ParseJSON command error. Invalid JSON value. The JSON text is invalid. 

# 173

ParseJSON command error. The destination variable does not match the JSON object. The declaration of the destination variable does not match the JSON data. For example in the JSON text was found the array, but the variable has the structure at that position. 

# 174

ParseJSON command error. Array index out of bounds. There are too many items of an array in the JSON data. The destination array is declared too short. 

# 175

ParseJSON command error. Structure item not found in the destination variable. The structure in the destination variable does not have the item with the same name or alias as the item in the JSON text. 

# 176

ParseJSON command error. JSON leaf type does not match the destination type. The leaf type is any type that is not array or structure. It can be a number or text or boolean. This error occurs when the type of the destination variable does not match the type in the JSON text. 

# 177

ParseJSON command error. Internal unspecified error. Please, contact technical support. 

# 178

ParseJSON command error. Invalid destination description internal error. Please, contact technical support. 

# 179

ParseJSON command error. Destination buffer length is an odd internal error. Please, contact technical support. 

# 180

FormatJSON command error. The source variable is not available. The null address has got. Maybe the variable is from the remote controller and the controller is not available. 

# 181

FormatJSON command error. The destination text variable is not available. The null address has got. Maybe the variable is from the remote controller and the controller is not available. 

# 182

FormatJSON command error. The destination text variable is too short. 

# 183

FormatJSON command error. The source variable is JSON incompatible. The source variable is not compatible with JSON value types. Only boolean, text, number, structure, or single-dimensional array can be used and the root variable must be an array or structure. 

# 184

FormatJSON command error. Internal error. Please, contact technical support. 

# 185

Not enough input bytes. The inputdata stream does not contain enough bytes for the required conversion. 

# 186

Invalid encodingformat:

- The encodingformat parameter is not _IEE754_64BITS nor _IEE754_32BITS.
- The encodingformat parameter is not _SIGNED_INT_8BITS, _UNSIGNED_INT_8BITS, _SIGNED_INT_16BITS, _UNSIGNED_INT_16BITS, _SIGNED_INT_32BITS, _UNSIGNED_INT_32BITS.

# 187

The numofbytes is negative and different from -1. 

# 188

Not enough space in the output data stream. The numofbytes parameter is too large against the declared length of the outputvalue parameter.

# 189

The delimiter pattern has not been found. The syncframe pattern has not been found. The pattern has not been found. 

# 190

Unexpected end of XML text. XML text is not complete. 

# 191

The destination buffer is too short. The output parameter name is declared too short. The name of the element is longer. 

# 192

XML text is syntactically invalid. XML text does not match the XML standard specification. 

# 197

Parser data not found. The function Create was not used before or the data were destroyed by the function Destroy. 

# 198

Content item, not found._XmlElement class data are invalid. Maybe the _XmlParser class used Destroy or does not exist at the moment or the element was not initialized. 

# 199

XML element not found. The root element does not exist. The function Create returned false probably. 

# 200

The attribute has not been found.

# 201

FormatJSON command error. Internal error. Please, contact technical support. 

# 202

Subelement found. 

# 203

Cannot delete a folder. 

# 204

Cannot create a folder. 

# 205

Cannot get folder content because the folder is not found. 

# 207

There are no more items in the folder. Cannot get folder content because the parameter fromindex is higher than the total items in the folder. 

# 208

The file or the folder does not exist. 

# 209

Cannot read a MAC address. 

# 210

The parameter period in _CallPeriodically is negative or zero. Parameter delay in _CallDelayed is negative or zero  

# 211

Parameter fncname in _CallPeriodically or _CallDelayed is Nothing or it is a function from a foreign controller. 

# 212

Parameter fncname in _CallPeriodically or _CallDelayed is Nothing or it is a function from a foreign controller. 

# 213

Cannot register function for invoking. The system is out of resources. Max number of registered functions in the application is 1000.  

# 214

The versatile channel is in a different mode and cannot execute the command. There are input mode, resistance measurement mode, and voltage measurement mode. 

# 215

Parameter threshold in command StartDigitalSignalMeasurement is invalid or parameter range in StartResistanceMeasurement, StartVoltageMeasurement is invalid. 

# 216

The parameter address is out of range. The parameter address must be in the range of 1 – 512. 

# 217

The application does not exist. 

# 218

There is no SSL certificate on the server. 

# 219

The SSL certificate is expired. 

# 220

The SSL certificate is not yet valid. 

# 221

The SSL certificate is self-signed. 

# 222

The domain name in the SSL certificate doesn't match the parameter serveraddress in the ConnectSSL command. 

# 223

The SSL certificate is signed by not trusted certification authority. 

# 226

Cannot connect to specified service on the server.  

# 227

Some errors in LDAP protocol. Maybe the server doesn't support LDAPv3. 

# 228

LDAPAuthenticate: Invalid server name, user name, or password. 

ConnectSSH: Invalid username or password. 

# 229

The connection failed because the server uses an unsupported authentication method. 

# 230

NTP server domain name or IP address is not set. 

# 231

The DNS server IP address is not set. 

# 232

Cannot convert NTP server domain name to IP address. The DNS server is not available or the NTP server domain name is not valid. 

# 233

Timeout while waiting for a response from the NTP server expired. The NTP server is probably not available.

# 234

HTTPGet error. The server returns HTTP error 401 Unauthorized. Probably the username or password is not valid, or the server requires you to send the authorization in another way. 

# 238

HTTP server has closed the TCP connection.

# 239

Invalid/unsupported HTTP header or HTTP body. 

# 241

HttpGet error. The server returns HTTP error 404, URL not found on the server. 

# 242

Entered text variable is not from resource text. 

# 243

Resource text is not available in the requested language. 

# 244

AES256CBC encode/decode invalid parameters. The actual length of sources ByteString must be divided by 16.  

# 245

AES256CBC encode/decode - destination ByteString is too short. 

# 252

Cannot convert source ByteString from base64 to ByteString because source base64 ByteString includes unsupported base64 character.  

# 253

Cannot convert source ByteString from base64 to ByteString because destination ByteString is too short.  

# 257

Cannot move file because destination file already exists.  

# 258

Cannot move the file probably because there is no free space to move the file to the destination folder.  

# 259

Cannot send an email by specified SMTP server using STARTTLS or TLS encryption because SMTP server’s certificate is not signed by a trusted certification authority.  

# 278

HttpGet and HttpClient channel - declared length of the reply buffer is not long enough for the received response.  

# 279

EncodeComponentURI – the destination encodedcomponent is too short.  

# 280

HttpClient.SetTimeout – invalid timeout. Timeout must be in the range of 0.001s to 3600s 

# 281

HttpClient channel - SetServer, SetAuthentication invalid parameters.  

# 282

HttpClient channel – server address is not set for this channel. Please call HttpClient.SetServer() 

# 283

HttpClient channel – HTTP server returns HTTP error response status code. The value of the HTTP response status code is in the parameter response status code 

# 284

HttpGet and HttpClient channel – Maximal HTTP redirection achieved. The maximal redirection count is 5. The maximal redirection count is 15 since firmware 15.00e. 

# 285

HttpGet and HttpClient channel – added header items are not valid. Added header items cannot contain double CRLF. 

# 286

HttpGet – Invalid URL. 

# 287

Invalid sensitivity given to motion sensor. 

# 288

Invalid file path given to link web app filestorage to folder.

# 289

WebView - Empty URL given.

# 290

WebSocket protocol error.

# 291

Given parameter is not a device instance.

# 292

Invalid semaphore address.

# 293

_JSONItem - item or subitem not found.

# 294

_JSONItem - destination parameter is not compatible with JSON item type.

# 295

_JSONItem.GetName - cannot get JSON item name.

# 296

_JSONItem.GetSubItemPath - invalid parameters in ParamArray. Only Long or Text are supported in path.

# 297

_JSONParser.Parse - cannot parse JSON. Probably invalid JSON.

# 298

Source ByteString in UTF8 contains an invalid UTF8 byte sequence.

# 300

Cannot read command’s parameters. 

# 301

The invalid parameter value. 

# 302

Cannot communicate with the cloud. 

# 303

Cloud credentials are invalid. 

# 304

The destination text buffer is too short. 

# 310

Cloud command internal error. 

# 311

Some error on the cloud. 

# 312

Invalid UTF8 text has been received. 

# 313

Invalid cloud answer has been received. 

# 318

Unknown cloud credentials password. Please set a password on the AdminWeb. 

# 319

Invalid Syslog protocol. 

# 320

Invalid Syslog format. 

# 321

Cannot get the Syslog server setting, because the Syslog server setting has not been set yet. 

# 322

Cannot send a log message to Syslog server because cannot connect to Syslog server. 

# 325

Unable to perform cloud command, cloud script error. 

# 326

Unable to perform cloud command. Cannot open database on the cloud. 

# 327

Unable to perform cloud command. Error processing database query. 

# 328

Unable to perform cloud command. There is no reply to the query in the cloud database. 

# 329

Unable to perform cloud command. Invalid message format. 

# 330

Unable to perform cloud command. Invalid message format. 

# 331

Unable to perform cloud command. Invalid message parameters format. 

# 332

Unable to perform cloud command. Requested command not found. 

# 333

Unable to perform cloud command. The requested answer was not found. 

# 334

Unable to perform cloud command. There is no application on the cloud for specified credentials. 

# 335

Unable to perform cloud command. There is no license for the specified application on the cloud. 

# 336

Cannot update the firmware because new firmware is not available. 

# 337

Cannot convert specified text to QR code. Text is too long or one includes unsupported characters. 

# 342

Command Ping. The parameter repeat count must be in the range of 1 to 20. 

# 343

Command Ping. Cannot create a RAW socket. 

# 344

Command Ping. No reply packet was received from the destination address. 

# 345

Cannot enable the keep-alive mechanism on the TCP channel. 

# 346

File with a specified name not found in the webstorage. 

# 347

Cannot add next HTTP header field. The maximal count of the specified HTTP header field for the application is 100. 

# 348

Cannot set HTTP header field. The field name is not valid. 

# 349

Cannot set HTTP header field. The field value is not valid. 

# 353

Unknown IANA timezone.

# 356

Cannot send data to destination IP by UDP client. 

# 400

The inter project communication (IPC) server is not open. 

# 401

Target magic name does not exist or it is not available. The Target IP address is not available. 

# 402

There is no IPC server with the requested protocol name or instance name in the destination CUEunit or the password is invalid. 

# 403

IPC system is not able to connect to the destination CUEunit. Connection timeout expired. 

# 404

IPC system is not able to connect to the destination CUEunit. The destination CUEunit does not support inter process communication protocol. 

# 405

Timeout for answering expired. 

# 406

IPC server is already open. 

# 407

There is no free IPC server. The maximum count of opened IPC servers parallel is 10. 

# 410

The destination CUEunit does not support inter process communication protocol. 

# 411

The previous query received by the ReceiveQuery command was not answered by SendAswer or SendErrorAnswer command. 

# 412

The received answer was sent by SendErrorAnswer. It means that the reply buffer contains any error message. 

# 413

Receive answer timeout expired. Probably destination IPC Server is busy processing previous IPC requests. 

# 500

Invalid parameters value. 

# 501

There is too many captured burst in the IR data. 

# 502

Captured IR data has low carrier frequency. 

# 503

Cannot evaluate carrier frequency from captured IR data. 

# 504

There are too many bursts in the captured IR data.

# 505

There is too long a burst in the captured IR data.

# 506

Cannot capture IR data from IR capture channel. 

# 507

The invalid file name for captured IR data. 

# 508

Cannot open the file to save captured IR data. 

# 509

Cannot write captured IR data to the file. 

# 510

IR capturer on the unit is busy now. 

# 511

There are only a few pulses in the captured IR data.  

# 600

Not valid destination IR channel. 

# 601

Invalid parameters value. 

# 602

Cannot read IR data from the specified file. 

# 603

Cannot send IR data from the specified file. 

# 604

The specified file does not contain valid IR data.

# 600

Not valid destination IR channel. 

# 800

Download timeout specified by the user in the command expired. 

# 801

Cannot connect to FTP/FTPS server. Connection timeout expired. 

# 802

Connection to FTP/FTPS has been lost during file downloading. 

# 803

FTP/FTPS server - SSL/TLS handshake on control connection failed. 

# 804

FTPS mode (SSL/TLS) is not supported by FTP/FTPS server. 

# 805

FTPS mode is required by the server but this mode is forbidden by option flags in command. 

# 806

FTP/FTPS server returns FTP error 421 (service not available) 

# 807

FTP handshake failed. The server returns an unexpected answer. 

# 808

FTP/FTPS server login failed. Invalid username or password.  

# 809

Remote filename not found on FTP/FTPS server. 

# 810

The remote filename exists on FTP/FTPS server but the file cannot be read by the user. 

# 811

Cannot establish a data connection to download file data from FTP/FTPS server. 

# 812

FTP/FTPS server - SSL/TLS handshake on data connection failed. 

# 813

FTP/FTPS server - SSL certificate is not signed by trusted root CA or SSL certificate is issued for another domain. 

# 10000

KNX port hardware error. 

# 10002

KNX group address is not registered. 

# 10003

Command was not acknowledged from the KNX bus. 

# 10004

KNX bus error. 

# 10005

Value is out of range or value is not supported by selected DPT dimension. 

# 10010

The receiver KNX data packet is not valid.

# 10101

Framing Error in DALI received data. 

# 10102

Timeout - DALI query command not responded  

# 10104

The parameter is out of range. 

# 10105

Parameter scene out of range 0-15. 

# 10106

Short address out of range 0-63. 

# 10107

Group address out of range 0-15. 

# 10108

Short Address collision – duplicated short address in the DALI system. 

# 10200

tapCUE-4 InitCommunication - timeout for initialization has expired

# 10201

tapCUE-4 InitCommunication - property IP address or Magicname is already set. Or command Initcommunication is called more than once.

# 2147483641

The command is not implemented. 

# 2147483643

Not enough system resources. 

# 2147483645

Cannot reach variable. The Variable is probably in a foreign CUEunit but that CUEunit is not available.  

# 2147483646

Unexpected system error.