S05005
Error Code
S05005
Error Message
Not allowed to create a void vector. RefId:S05005
Probable Causes
It is not allowed to create a vector of VOID type. This error commonly occurs in the following situations:
- Creating a vector of length N where all elements are NULL.
take(NULL, 5)
- Specifying NULL as a column when creating a
table.
t = table(NULL as x, 1..5 as y)
Solutions
Explicitly specify the type of the NULL value. For example, the above scripts can be modified as follows:
- Creating a vector of length N where all elements are
NULL.
take(int(NULL), 5)
- Specifying a vector with NULL values of a certain type when creating a
table.
t = table(take(int(NULL), 5) as x, 1..5 as y)