TCS0095E: Table cannot be referenced by a key.
This error may occur for different situations.
- It is required that the tables must have a key for apply. This key is used to uniquely identify a record. That is not the case for this error situation.
- During a bi-directional update between ADABAS or IDMS and a RDBMS on a Windows/UNIX/Linux platform:
A record is inserted into the RDBMS which results in new a new ISN (ADABAS) or DBKEY (IDMS) on the mainframe that must be replicated back to update the RDBMS record with the new values (refer to chapters 10 and 11 of tcScript manual).
The open system application has no knowledge about ADABAS ISNs or IDMS DBKEYs, hence the column named ISN or DBKEY is not filled during the INSERT. This INSERT is captured by --productname-- and sent to ADABAS--productname-- VISION captures the INSERT in ADABAS/IDMS and is about to replicate this INSERT back to the RDBMS.
Due to the back-update definition in the Repository with a given key field, the processing changes the ADABAS/IDMS INSERT into an UPDATE to populate the missing ISN/DBKEY value in the RDBMS table. To do this other key field(s) in the RDBMS table are required for the generation of the WHERE clause (the ISN/DBKEY is empty in the target). If the back-update definition in the Repository has been defined to look for the ISN or DBKEY will result in the error because the ISN or DBKEY is the field that the back-update cannot use.
Check and correct the table or Repository definitions.