Child pages
  • DBAccess - Error Codes

See below the list of error codes returned by TOTVS | DBAccess.

Code

Name

Description

Solution

0

TCF_NoError

Function call did not succeed.

-

-1

TCF_NoRouterInstalled

Attempt to run function TC_Connect() without the communication layer.

You must have an APPC - Advanced Program-to-Program Communications or TCP/IP router available.

-2

TCF_NoConnection

Attempt to run a function without establishing a previous connection.

Run function of tcLink().

-4

TC_NoUserSecurity

You must provide a valid user/password as TC_Setuser

-

-5

PassThru_Failed

-

-

-6

TCF_No_More_Connections

No more connections available.

Close one of the connections and attempt a new connection.

-7

TCF_ScanTableError

A difference exists between the current record format filed by AS/400 and the format typed in PC Table.

Get the record of format AS/400, for the file used in TClient program and check the table.

-8

TCF_Invalid_Top_Key

-

-

-9

TCF_Invalid_Environment

-

-

-10

TCF_InvalidFile

Attempt to open a file that could not be found.

Check whether the file is in the library indicated for opening.

-11

TCF_UnknownFile

Attempt to open a file not associated to a process in AS/400.

Check whether the table identifier is used in opening.

-12

TCF_InvalidProgram

The program specified in function of TC_Call could not be found.

Check program location.

-13

TCF_InvalidOperation

The program is using an invalid function.

Check function existence.

-14

TCF_InvalidKeyNum

A key field number higher than the file was specified as a key access function.

Check the value of n_keys parameter.

-15

TCF_File_In_Use

-

-

-16

TCF_TooManyFiles

Attempt to open a file, though exceeding the maximum number of open files in server.

Close one of the open files and attempt to open the file again.

-17

TCF_InvalidNumRecs

A negative number is specified in parameter, of lock_or_count, of operation multiple-read.

Check the parameter value of lock_or_count, of operation multiple-read.

-18

TCF_CallFailed

The program that calls the function of TC_Call failed.

Check error messages in AS/400.

-19

TCF_CommandFailed

The command of AS/400 called in function of TC_Call failed.

Check error messages in AS/400.

-20

TCF_OverrideFailed

The OVRDBF command of AS/400 is failing to open the file.

Check error messages in AS/400.

-21

TCF_QueryFailed

Error produced in OPNQRYF or in command SELECT of AS/400.

Check error messages in AS/400.

-22

TCF_Creation_Failed

-

-

-23

TCF_OpenFailed

Cannot open file.

Check error messages in AS/400.

-24

TCF_NotOpened

Attempt to execute operation with a file that is not open.

Check whether the file was opened correctly.

-25

TCF_NoRecordFound

The record requested cannot be found as a function of access to key field.

Chekc field values in record.

-26

TCF_EndOfrecords

End of file or record, found in Read_Multiple, has been reached.

This message provides information only.

-27

TCF_NoWritePossible

Cannot add a new record to file.

Check the value of index key on record.
Note: Perhaps you are trying to write a record with a duplicated key, or the database is full.

-28

TCF_NoRecordEqual

There is no record belonging to key specified in function of TCF_ReadE.

Check index key values in record.

-29

TCF_UpdateFailed

Cannot create record in file.

Check the key used in creation and make sure record is not locked.

-30

TCF_DeleteFailed

Cannot delete file record.

Check the key used and make sure record is not locked.

-31

TCF_RecordLocked

The record is locked by another task.

Check which table is not releasing the record.

-32 

TCF_FileLocked 

-

-

-33

TCF_NoAuthorization

Use of DBAccess not authorized.

This indicates the connection with AS/400 cannot be completed because the DBAccess key is not valid or has expired.

-34

TCF_TooManyUsers

The maximum number of connected users was reached.

You must disconnect some users or request more licenses.

-35

TCF_NoDBConnection

Cannot access database.

-

-36

TCF_NoConnAllowed

-

-

-37

TCF_Integrity_Failure

-

-

-40

TCF_BufferOverflow

-

-

-41

TCF_InvalidParameters

-

-

-42

TCF_InvalidDLLLoaded

-

-

-50

TCF_NoAuditConnection

-

-

-58

TCF_CommDosmemError

No memory of DOS - Disk Operating System.

This indicates it cannot perform as needed, due to lack of current memory.

-67

TCF_CommPartnerError

-

-

-76

TCF_CommSNDStatError

-

-

-81

TCF_CommInitPgmError

-

-

-86

TCF_CommParamError

-

-

-88

TCF_CommProgram_Error

-

-

-90

TCF_CommInsMemError

Memory not sufficient

This indicates you cannot update the work, due to lack of computer memory.

-99

TCF_InvalidBuild

Build not valid.

The build not compatible with DBAccess version. Make sure both are up to date.

-100

TCF_InvalidTOPAPI

-

-