I am running a local Docker-Compose setup with Camunda 8.9.1. I use Elasticsearch as my secondary DB. Yet I am facing a problem that appears to stem from the RDBMS exporter (you will see when you check the Java stack).
This is the error message (I inserted some line breaks into the error message to improve readability):
### Error flushing statements. Cause: org.apache.ibatis.executor.BatchExecutorException:
io.camunda.db.rdbms.sql.DecisionInstanceMapper.insert (batch index #3) failed. 2 prior sub executor(s) completed successfully, but will be rolled back.
Cause: org.h2.jdbc.JdbcBatchUpdateException: Value too long for column "RESULT CHARACTER VARYING(256)":
"'[{""name"":null,""vollstaendig"":true,""hinweis"":null,""anmerkung"":null,""nachgeforder... (481)"; SQL statement:
INSERT INTO DECISION_INSTANCE (DECISION_INSTANCE_ID,
DECISION_INSTANCE_KEY,
PROCESS_INSTANCE_KEY,
ROOT_PROCESS_INSTANCE_KEY,
PROCESS_DEFINITION_KEY,
PROCESS_DEFINITION_ID,
DECISION_DEFINITION_KEY,
DECISION_DEFINITION_ID,
DECISION_REQUIREMENTS_KEY,
DECISION_REQUIREMENTS_ID,
FLOW_NODE_INSTANCE_KEY,
FLOW_NODE_ID,
ROOT_DECISION_DEFINITION_KEY,
TYPE,
STATE,
EVALUATION_DATE,
RESULT,
EVALUATION_FAILURE,
EVALUATION_FAILURE_MESSAGE,
TENANT_ID,
PARTITION_ID,
HISTORY_CLEANUP_DATE)
VALUES (?, ?, ?,
?,
?, ?,
?, ?,
?, ?,
?, ?,
?,
?, ?,
?, ?, ?,
?,
?, ?,
?) [22001-240]
And here is the stack trace:
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.flushStatements(DefaultSqlSession.java:254)
at io.camunda.db.rdbms.write.queue.DefaultExecutionQueue.doFLush(DefaultExecutionQueue.java:245)
at io.camunda.db.rdbms.write.queue.DefaultExecutionQueue.flush(DefaultExecutionQueue.java:132)
at io.camunda.db.rdbms.write.RdbmsWriters.flush(RdbmsWriters.java:337)
at io.camunda.exporter.rdbms.RdbmsExporter.flushExecutionQueue(RdbmsExporter.java:448)
at io.camunda.exporter.rdbms.RdbmsExporter.flushAndReschedule(RdbmsExporter.java:360)
at io.camunda.zeebe.scheduler.ActorJob.invoke(ActorJob.java:86)
at io.camunda.zeebe.scheduler.ActorJob.execute(ActorJob.java:43)
at io.camunda.zeebe.scheduler.ActorTask.execute(ActorTask.java:125)
at io.camunda.zeebe.scheduler.ActorThread.executeCurrentTask(ActorThread.java:127)
at io.camunda.zeebe.scheduler.ActorThread.doWork(ActorThread.java:104)
at io.camunda.zeebe.scheduler.ActorThread.run(ActorThread.java:224)
Obviously the column RESULT has a length of 255 characters which is too short to hold my result of a 481 characters long JSON string. Yes, I use a DMN decision to prepare quite a big result set. I am surprised that the result is expected to not be longer than 255 characters. How can I get around this problem?