When exceptional conditions occur, the UD8/CSV driver passes the following error codes and message to Uniface. Many of these errors are also reported with a message from the operating system that may give a stronger indication of what caused the condition to arise.
not_implemented | -1001 | Uniface requested a function that is not implemented in this driver |
not_capable | -1002 | Logon information is not available. |
cant_open | -1003 | Cannot open file |
cant_close | -1004 | Cannot close file |
write_error | -5005 | Write error on file |
read_error | -5006 | Read error on file |
seek_error | -1007 | Seek error on file |
read_eof | -5008 | End of File |
cant_append | -1009 | Cannot append to file |
cant_unlock | -1010 | Cannot unlock file |
filenotexist | -1011 | File does not exist |
update_error | -1012 | Update Error |
at_eof | -1013 | At End of File, not attempting requested operation |
realloc_error | -1014 | Could not increase buffer size. |
read2many | -5015 | The record found in the file has more fields than Uniface indicates that it should have. |
malloc_error | -1016 | Could not create buffer this size. |
pkey_error | -1017 | Update Error - Primary key already exists. Use nokeycheck to turn this feature off. |
not_implemented_pra | -1018 | Cannot implement this function when using PRA. Use nopra to turn this feature on. |
delete_error | -1019 | Delete Error |
seek_end_fail | -1020 | Failed to seek the end of a file (usually write) |
demo_expired | -1021 | Maximum operations for demo exceeded, demo version of UD8/CSV is limited to 100 operations or a PRA of 100, whichever occurs first. |
failhit_error | -1022 | Fetch failed while trying to find a hit (fetch mode 0). |
notexist_error | -1023 | Fetch could not find a matching record. |
getpos_error | -5024 | fgetpos returned an error. |
begin_endrec_error | -1025 | Could not add beginning or end of record tag (usually realloc) |
begin_endfld_error | -1026 | Could not add beginning or end or field tag (usually realloc) |
writetrail_error | -1027 | Write error of trailer on file |
read_nomatch | -1028 | Unexpected tag has no closing. |
owrite_error | -5029 | Write error on overflow file (generic - any number of reasons) |
nopra_joined | -1030 | Fetch by PRA not allowed for joined tables. |
owrite_nostrt | -5031 | Write error on overflow file (no start) |
owrite_nomtch | -5032 | Write error on overflow file (no match) |
owrite_ffld | -5033 | Write error on overflow file (find final field) |
owrite_data | -5034 | Write error on overflow file (find <data>) |
owrite_datagt | -5035 | Write error on overflow file (find next tag after <data>) |
owrite_wprec | -5036 | Write error on overflow file (fputs pRec) |
owrite_wbkp | -5037 | Write error on overflow file (fputs backup) |
cant_openj | -1038 | Cannot open joined file |
cant_closej | -1039 | Cannot close joined file |
compare_fail | -1040 | the record read does not match the WHERE LIST |
badtag_error | -5041 | Read error on file, got bad tag |
text_error | -5042 | Read error on file, got text |
wrong_field | -5043 | Read error on file, wrong field |
noent_error | -5044 | Read error on file, no entity, got field |
stok_error | -5045 | Read error on file, strtok() |
size_exceeded | -1046 | Size for parameter exceeded |
dirlstfail | -1047 | Directory listing failed |
nopolyserver | -1048 | Polyserver cannot be used with DEMO driver |