Error messages¶
To look up a message, search for a few distinctive words of it, or find it in the Message index.
When a subscription or group fails, the Replicator Service records what happened in its service log (see Logs) and in the run's replication events. The Capture Agents log to their own log, on the Diagnostics tab of the SQDR Control Center.
How an error message is built¶
A replication error reports the facts: the object, the operation, and the database's own error. A polling failure, for example:
Incremental group 'SALES_CDC' encountered an error while polling for changes:
ODBC message: SQLSTATE 22001, native error -302, [IBM][CLI Driver] value too large for the target
Context: incremental apply group=SALES_CDC phase=poll;
Connection: salesdest(Staging): Obtaining changes for MYLIB.ORDERS
| Part | What it tells you |
|---|---|
The subscription, group or member ('SALES_CDC', Member subscription 'X') |
Which replication object failed. |
The operation (polling for changes, Failed to run group, enable baseline snapshot) |
What SQDR was doing when it failed. |
Context: ... phase=... |
The stage of the run: baseline, poll (reading changes) or apply. |
Connection: <name>(<role>) and Obtaining changes for <table> |
Where it happened: the source, the destination or the staging database, and the table. |
SQLSTATE |
The standard code of the error. Its first two characters, the class, tell you the kind of problem (see SQLSTATE classes). |
native error and the driver text |
The database's own error number and message, in the vendor's words. |
Use the SQLSTATE class and the tables below to find the page that explains it. When you contact Stelo Support, include the whole message.
SQLSTATE classes¶
The class (the first two characters of the SQLSTATE) is defined by the SQL standard, so it means the same kind of thing whether the error came from Db2, SQL Server, Oracle, MySQL or PostgreSQL. The native error number after it is vendor-specific: use the class for the category, and the driver text for the specifics.
| Class | Meaning | Typically when | Where to look next |
|---|---|---|---|
08 |
Connection exception | A source, destination, staging database or the control database can't be reached, or a session dropped. | Test connectivity; Db2 on the Stelo VM isn't running; The Data Replicator Manager can't connect |
22, for example 22001 (right truncation), 22003 (numeric value out of range), 22007 and 22008 (date and time), 22018 (invalid value for cast) |
Data exception | A source value is wider than the destination column, or can't be converted to its type. | Character data; Data type mapping; LOB values truncated; SQLCODE=-302 in a staging table |
23 |
Integrity constraint violation | A primary key, unique key or foreign key at the destination rejected a row. | Duplicate key errors when applying changes; Duplicate keys and duplicate rows |
28 |
Invalid authorization | The credentials for a source, destination or the control database were rejected or have expired. | Change the passwords Stelo Capture uses; The Data Replicator Manager can't connect |
40, for example 40001 |
Transaction rollback (deadlock, serialization failure) | The destination or control database rolled the transaction back under contention. | Usually transient: the run retries. If it persists, run fewer groups and baselines against that database at the same time. |
42, for example 42703 (undefined column), 42S01 and 42S21 (object or column already exists), 42000 (general) |
Syntax error or access rule violation | A named object or column is missing, duplicated or not allowed: a column dropped or renamed at the source, a reserved name at the destination, a missing permission. | Criteria errors (42703); SQDRSVC error 1010 or 2012; the destination's Troubleshooting section, for example Oracle |
57, for example 57011 |
Resource not available (Db2) | The database is out of a resource, most often transaction log or table space. | Ask the database administrator to add space; AGENT_STACK_SZ |
Messages by kind of failure¶
| What failed | The message starts with | Where to look |
|---|---|---|
| A baseline or snapshot run | Failed to run group ... or Failed to run subscription ..., with the member that failed, its SQLSTATE, and the value or statement it rejected. |
The SQLSTATE class above. For SQL Server bulk copy errors, see the SQL Server destination. |
| An incremental group, while getting or applying changes | Incremental group '...' encountered an error while polling for changes:, followed by the database's error and the table (Obtaining changes for <table>). The SQLSTATE can come from the staging database, so a subscription to one destination type can report another database's error. |
Polling errors; Duplicate key errors; A trigger on the destination table |
| The Capture Agent couldn't add or reset a subscription | Failed to add incremental subscription at Capture Agent ... or Failed to enable baseline snapshot at Capture Agent ...; the trailing Error: is the agent's own error, for example 42703 or "Table/File has been altered or deleted". It points at the source table named in the message. |
Criteria errors (42703); SQLCODE=-670 |
| The source table was altered | Capture Agent reported that source table '...' was altered .... Replication of the table is suspended until the subscription matches the new source definition. |
ALTER processing; Schema changes |
| The member needs a new baseline | Baseline snapshot is required, according to Capture Agent |
"Baseline snapshot is required, according to Capture Agent" |
| The Replicator Service itself | The service stops, or the crash log has an entry. | The Replicator Service crashes |
"Invalid string or buffer length" for a LOB column¶
Symptom
Replicating a table with a LOB column, for example a BLOB from an Oracle source, fails with
Invalid string or buffer length. It can happen with any destination.
Cause
A LOB value is larger than the Indeterminable-size column limit (KB), the most the Replicator Service holds in memory for a value whose size can't be known in advance (see LOB and long columns).
What to do
Raise the Indeterminable-size column limit (KB) to the size of the largest LOB value plus about 10%: for every group on the Replication tab of the service's settings (see Global replication settings) (maxLongFieldData), or for one group in its properties (see Group Replication Settings). Then run the subscription again.
"Data truncated" or "String data, right truncated" while applying LOB changes¶
Symptom
Applying changes to a table with a LOB column fails, for example:
Error processing LOB change data for subscription MYSUB1. SQL attempted: 'SELECT "MYCOL" FROM "MYSCHEMA"."MYTABLE"
WHERE RRN("MYSCHEMA"."MYTABLE")= ? '. Keys: '<RRN>41</RRN>'.
ODBC message: SQLSTATE 01004, native error 0, [StarSQL][StarSQL ODBC Driver]Data truncated.
With other sources the driver's text differs, for example
[ODBC Oracle Wire Protocol driver]String data, right truncated. Error in column 1.
Cause
To apply a change to a table with LOB columns, the Replicator Service reads the LOB value from the source table, into a buffer of the Indeterminable-size column limit (KB) (1024 KB by default). The value is larger.
What to do
Raise the Indeterminable-size column limit (KB) above the size of the largest LOB value, as in the entry above.
Message index¶
Messages in alphabetical order, ignoring quotes and leading punctuation. ... stands for names and values that
differ in your message. More messages of one database are on its page in this section.
| Message | Explained in |
|---|---|
| Characters arrive as "?" | Informix › Troubleshooting |
SQL30082N Security processing failed with reason "19" ("USERID DISABLED or RESTRICTED") |
"User ID revoked" |
| "19816 - Cannot perform this operation on a table defined for replication" | Informix › Troubleshooting |
| "A syntax error has occurred" when the destination table is created | Informix › Troubleshooting |
| Capture lags behind, and db2diag.log shows "ADM1843I Started retrieve for log file" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| AWS Glue: "At least one security group must open all ingress ports" | Cloud and streaming destinations › Troubleshooting |
| "Attempt to recover subscription failed(Cleanup.) Unexpected Exception encountered during Replication" | MySQL and MariaDB › Troubleshooting |
| "Attempt to use Bulk Copy with a non-existent Server table" | SQL Server › Troubleshooting |
| "Attempt to use permanent system object QGY without authority" | Db2 for i › Troubleshooting |
Bad IP address: N.N.N.N:2728 (... System error 10049: The requested address is not valid in its context.) |
"Bad IP address" |
Baseline snapshot is required, according to Capture Agent |
"Baseline snapshot is required" |
Buffer limit of ... bytes reached for LONG source column |
LOB and long columns |
| "Bulk-copy commit failed (bcp_batch)" with text or image columns | SQL Server › Troubleshooting |
'C:\Program' is not recognized as an internal or external command |
'C:\Program' is not recognized |
| "Cannot allocate object SQSPC0" (CPF9803) | Db2 for i › Troubleshooting |
| "... cannot be created because a drop is pending on the object" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
Cannot connect to server at host ... and port ... |
The Data Replicator Manager can't connect |
| "Cannot initialize service program: Value for a parameter was not valid" | Db2 for i › Troubleshooting |
| "Cannot read user space: Connection refused", or the agent keeps restarting | Db2 for i › Troubleshooting |
Capture Agent reported that source table '...' was altered |
Messages by kind of failure |
| "CDC: Log Reader: ERROR: could not get logid" | Informix › Troubleshooting |
| "Change Data Capture is disabled for table" | SQL Server › Troubleshooting |
Connection authorization failure occurred. Reason: User ID revoked. ERRORCODE=-4214; SQLSTATE=28000 |
"User ID revoked" |
| "Could not create a capture instance because the capture instance name 'schema_table' already exists" | SQL Server › Troubleshooting |
| "Could not find first log file name in binary log index file" | MySQL and MariaDB › Troubleshooting |
| "Could not open a connection to SQL Server" | SQL Server › Troubleshooting |
| "Could not open a connection to SQL Server" | SQL Server › Troubleshooting |
| More than one exit program registered, or "CPF2469" spooled files | Db2 for i › Troubleshooting |
CPF9801 from QjoRetrieveJournalEntries |
"Baseline snapshot is required" |
Data truncated (SQLSTATE 01004) |
LOB values truncated |
| "Database 'name' is being recovered. Waiting until recovery is finished." | SQL Server › Troubleshooting |
| "DDL operations on "rowid" prohibited" | Informix › Troubleshooting |
error 2896 executing action EnableTextSearchCA / ValidatePanelCA failed |
Db2 installation fails |
Error applying change data for subscription ...: ... Violation of PRIMARY KEY constraint ... Cannot insert duplicate key |
Duplicate key errors |
| SQL Server doesn't start: "error code: 0x8009030D" | SQL Server › Troubleshooting |
| "Error loading library rpsqls28.dll" | SQL Server › Troubleshooting |
| "Error opening socket to server ... ERRORCODE=-4296, SQLSTATE=08001" | Cloud and streaming destinations › Troubleshooting |
Error opening socket to server localhost/... on port 50,000 ... Connection refused: connect. ERRORCODE=-4499, SQLSTATE=08001 |
Db2 on the Stelo VM isn't running |
Error processing LOB change data for subscription ... |
LOB values truncated |
| "Failed in call to log library (RC=-1)" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| "Failed in call to log library (RC=-1263)" after a Db2 upgrade | Db2 for LUW and Db2 for z/OS › Troubleshooting |
Failed to add incremental subscription at Capture Agent ... SQLCODE=-206, SQLSTATE=42703 |
Criteria errors |
Failed to add incremental subscription at Capture Agent ... SQLCODE=-670, SQLSTATE=54010 |
SQLCODE=-670 |
Failed to enable baseline snapshot at Capture Agent ... |
Messages by kind of failure |
Failed to enable Change Data Notification for incremental group '...'. Error: Bad IP address |
"Bad IP address" |
Failed to run group ... / Failed to run subscription ... |
Messages by kind of failure |
| "GSKit Error 408" or "GSKit Error 414" in db2diag.log | Db2 for LUW and Db2 for z/OS › Troubleshooting |
Incremental group '...' encountered an error while polling for changes |
Polling errors |
Initialization of incremental support failed (retrying) (SQDRSVC error 2012) |
SQDRSVC error 1010 or 2012 |
| "invalid byte sequence for encoding "UTF8": 0x00" | PostgreSQL › Troubleshooting |
Invalid data conversion: Parameter instance ... is invalid for the requested conversion. ERRORCODE=-4461, SQLSTATE=42815 |
"Invalid data conversion" |
| "Invalid journaling/logging options" or "File Not Journaled" when you add a subscription | Db2 for i › Troubleshooting |
| "Invalid object name 'cdc.lsn_time_mapping'" | SQL Server › Troubleshooting |
Invalid string or buffer length |
Invalid string or buffer length |
| "Java VM options do not match previous options" | Cloud and streaming destinations › Troubleshooting |
javax.crypto.BadPaddingException: Given final block not properly padded |
"BadPaddingException" after a move or reinstall |
| "Journaled for Minimized Journal Entries, but not on Field Boundaries" | Db2 for i › Troubleshooting |
| "Log reader failed with sqlcode=-2652" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| "Log reader initialization failed with sqlcode=-2018", or SQLCODE=-440 for SQ_READLOG | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| "Log reader initialization failed with sqlcode=-2032" after a Db2 upgrade | Db2 for LUW and Db2 for z/OS › Troubleshooting |
Log reading has been paused. Current storage count=n |
Stalled subscriptions hold up all replication |
Login request failed. |
More about signing in |
Min LSN is above current read position in CDC change table for ... |
"Baseline snapshot is required" |
| Confluent: "Missed required property: ..." or "Get cluster settings failed" | Cloud and streaming destinations › Troubleshooting |
| "MySQL server has gone away" | MySQL and MariaDB › Troubleshooting |
New baseline snapshot needed for ... (onInvalidLogPosition) |
"Baseline snapshot is required" |
| "No resolvable bootstrap urls given in bootstrap.servers" | Cloud and streaming destinations › Troubleshooting |
The server principal "NT AUTHORITY\SYSTEM" is not able to access the database ... (SQDRSVC error 1010) |
SQDRSVC error 1010 or 2012 |
| "Object MYJRN in library MYLIB not found" after a role swap | Db2 for i › Troubleshooting |
| "Only a DBA can create, drop, grant, or revoke for another user." | Informix › Troubleshooting |
| "Operation not valid on system domain object" (CPF3C48) | Db2 for i › Troubleshooting |
| "ORA-00020: maximum number of processes exceeded" with XStream | Oracle › Troubleshooting |
| "ORA-00600: internal error code, arguments: [knacpft_ProcessFetchedTxns250]" | Oracle › Troubleshooting |
| "ORA-00904: "ROWID": invalid character" | Oracle › Troubleshooting |
| "ORA-01291: missing logfile" | Oracle › Troubleshooting |
| "ORA-01410: invalid ROWID" | Oracle › Troubleshooting |
| "ORA-01882: timezone region not found" | Oracle › Troubleshooting |
| "ORA-03137: malformed TTC packet from client rejected" | Oracle › Troubleshooting |
| "ORA-26827: Insufficient privileges to attach to XStream outbound server" | Oracle › Troubleshooting |
| "Relational database LIBRARY not the same as the current server" (table names with ".") | Db2 for i › Troubleshooting |
Request failed. 500 the call failed on the server; see server log for details |
The SQDR Control Center misbehaves after an upgrade |
| "Security mechanism not supported" (ERRORCODE=-4214) when you add the agent | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| "Snapshot could not be started ... SQLCODE=-206" | SQL Server › Troubleshooting |
Specified driver could not be loaded due to system error 126: The specified module could not be found. (SQLSTATE IM003) |
Specified driver could not be loaded |
cannot read from logical replication slot "sqdrn" ... This slot has been invalidated because it exceeded the maximum reserved size. |
"Baseline snapshot is required" |
SQL30061N The database alias or database name "SQDRPn" was not found at the remote node |
SQL30061N when adding a Capture Agent |
SQDRSVC error 1010: ... The SELECT permission was denied on the object ... |
SQDRSVC error 1010 or 2012 |
SQDRSVC error 3039: failed to access the registry |
SQDRSVC error 3039 |
SQL0289N Unable to allocate new pages in table space (SQLCODE=-289, SQLSTATE=57011) |
SQL0289N |
| "[SQL0443] SYSIBM:CLI:-514" when you add the agent | Db2 for i › Troubleshooting |
| "[SQL0552] Not authorized to CREATE DATABASE" when you add the agent | Db2 for i › Troubleshooting |
| "[SQL0552] Not authorized to CREATE PROCEDURE" when the agent starts | Db2 for i › Troubleshooting |
| "[SQL0601] SQ_IXLIST in SQDR type *FILE already exists" when the agent starts | Db2 for i › Troubleshooting |
SQL0803N (SQLCODE -803, SQLSTATE 23505) |
Duplicate key errors |
SQL1005N The database SQDRPn already exists in either the local database directory or system database directory |
SQL1005N when adding a Capture Agent |
SQL1042C An unexpected system error occurred |
SQL1646N or SQL1042C |
SQL1224N The database manager is not able to accept new requests ... SQLSTATE=55032 |
SQL1224N when restoring |
SQL1646N A routine failed because the fenced user ID cannot access required files ... (native error -1646) |
SQL1646N or SQL1042C |
SQL4306N, SQLCODE=-4306, SQLSTATE=42724, SQLERRMC=SQDR.GETJARVERSION |
SQL4306N on SQDR.GETJARVERSION |
SQLCODE=-101, SQLSTATE=54001 (Stored procedure SQDR.GETCHANGE2 returned error 11) |
SQLCODE=-101 |
SQLCODE=-302, SQLSTATE=22001 (staging database) |
SQLCODE=-302 in a staging table |
SQLCODE=-443, SQLSTATE=38553, SQLERRMC=GETTYPEINFO;SYSIBM:CLI:-805 |
SQLCODE=-443 after a Db2 update |
| SQLCODE=-444, SQLSTATE=42724 for SQ_READLOG or SQ_GET_INITIAL_LRI | Db2 for LUW and Db2 for z/OS › Troubleshooting |
SQLCODE=-805, SQLSTATE=51002, SQLERRMC=NULLID.SYSLH... |
SQLCODE=-805 |
| SQLCODE=-911, SQLSTATE=40001 when you publish or subscribe to a table | Db2 for LUW and Db2 for z/OS › Troubleshooting |
SQLCODE=-973, SQLSTATE=57011, SQLERRMC=AGENT_STACK_SZ |
AGENT_STACK_SZ |
| "SSL Provider: The target principal name is incorrect" | SQL Server › Troubleshooting |
String data, right truncated (LOB column) |
LOB values truncated |
| Text arrives as hexadecimal, or "String data, right truncation" (CCSID 65535) | Db2 for i › Troubleshooting |
Subscription ...: its criteria contains ..., which is no longer permitted |
Criteria |
| The baseline fails with CPF7007 | Db2 for i › Troubleshooting |
| "The certificate received from the remote server has either expired or is not yet valid" | SQL Server › Troubleshooting |
| "The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption" | SQL Server › Troubleshooting |
| "The insert thread timed out waiting for a filled fetch buffer" | SQL Server › Troubleshooting |
| A Kafka broker on Windows: "The requested operation cannot be performed on a file with a user-mapped section open" | Cloud and streaming destinations › Troubleshooting |
The response could not be deserialized. |
More about signing in |
| "The server principal "user" is not able to access the database "name" under the current security context" after a restore | SQL Server › Troubleshooting |
The service did not start due to a logon failure (Service Control Manager event 7000) |
Error 7000 |
The transaction log file for SCN=... has been deleted. |
"Baseline snapshot is required" |
The transaction log for the database is full (SQLSTATE 57011, native error -964) |
"The transaction log for the database is full" |
| "The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use" | Db2 for i › Troubleshooting |
| "The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
| "Truncated before image record for : table" | Db2 for LUW and Db2 for z/OS › Troubleshooting |
Unable to connect to the server. Please verify the connection settings in Client Settings. |
The Data Replicator Manager can't connect |
| "Unable to copy resources to SQDR", or "adopt authority attribute not restored" | Db2 for i › Troubleshooting |
Unable to retrieve subscription information ... ERRORCODE=-4499 |
Memory overcommitted |
| "Unity Catalog is not available for feature tier STANDARD_TIER" | Cloud and streaming destinations › Troubleshooting |
| "Unknown ODBC error" or "Invalid cursor state" in the subscription wizard | MySQL and MariaDB › Troubleshooting |
| "UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService" | Cloud and streaming destinations › Troubleshooting |
| "User is not authorized to object" for the user space | Db2 for i › Troubleshooting |
| AWS Glue: "VPC S3 endpoint validation failed ... Could not find S3 endpoint or NAT gateway" | Cloud and streaming destinations › Troubleshooting |
Your computer is low on memory |
Memory overcommitted |