Troubleshooting & Known Limitations
Common problems and where to look. Most issues fall into one of three buckets: the connector isn’t on the classpath, the LLM endpoint/credentials are wrong, or the RAG/tool configuration doesn’t line up.
The template doesn’t appear / “connector not found”
- The overlay isn’t enabled. Confirm AI is on for your distribution: run prints
AI Agent connector enabledat startup (and it’s off under--productionunless--ai/AI_AGENT_ENABLED=true); Tomcat needslib-ai/oncommon.loader; WildFly needs the module dir + import present. See Installation. - Template path not configured. The modeler must scan
classpath*:element-templates/*.json(see Installation). connectorIdmismatch. It must be exactlycibseven-ai-agent(orcibseven-knowledge-ingestor).
Authentication / endpoint errors (401, connection refused, wrong host)
- Missing key. Set the
OPENAI_API_KEYenvironment variable of the engine’s JVM (see Configuring the Agent). - Server key not sent to this endpoint.
OPENAI_API_KEYis only sent to the endpoint ofOPENAI_BASE_URL(defaulthttps://api.openai.com/v1). If the model sets anotherbaseUrl, the request goes out without a key and the connector logs a warning naming the endpoint. SetOPENAI_BASE_URLto that endpoint, or define the API key in the model; see API key and endpoint. - Endpoint not allowed. A
ConnectorEndpointNotAllowedExceptionmeans the endpoint is missing from the connector’s allowed endpoints; see Allowed endpoints. - Wrong endpoint. Check
baseUrl(orOPENAI_BASE_URL). For Ollama usehttp://localhost:11434/v1; for Azure/OpenRouter see the provider recipes in Configuring the Agent. - Gateway expects the key in a header of its own. Put that header in
customHeaders. Its value is stored in the BPMN XML of the deployment (or, read by an expression, in a process variable): there is no server-side setting for headers yet. - Placeholder key reaches the public API. If
baseUrlis an internal gateway that injects the real credential, a placeholderapiKeymay still be sent and rejected — verify the gateway’s auth expectations.
“Model not found” / unexpected model
The task left Model empty and the deployment default resolves to a model your provider doesn’t
serve. Set model explicitly, or configure the default via
CIBSEVEN_CONNECT_AI_AGENT_DEFAULT_MODEL / -Dcibseven.connect.ai-agent.defaultModel
(see Installation). The built-in fallback is a placeholder, not a guarantee.
RAG returns nothing / errors
- Embedding dimension mismatch. The biggest gotcha:
embeddingDimensionon the AI Agent task must match what was used at ingestion (384 for localAllMiniLmL6V2, 1536 fortext-embedding-ada-002). Mismatched dimensions break retrieval. See RAG. - Different store/table. The AI Agent and the Knowledge Ingestor must use the same
pgHost/pgDatabase/pgTable. - pgvector missing. Run
CREATE EXTENSION IF NOT EXISTS vector;on the database. - Too strict a filter. If
minRagScoreis high, all chunks may be filtered out — start at0.0. - Embeddings hitting the wrong endpoint. A remote
embeddingModelNamecurrently always calls the public OpenAI endpoint regardless ofbaseUrl— expect connection failures in air-gapped setups and use the local model instead. See RAG.
Tool problems
toolClasseswon’t load. The connector fails fast if a class is missing or lacks a public no-arg constructor, or isn’t on the engine classpath. Check the FQN spelling and packaging (see Tools).- MCP duplicate tool names. Give each MCP server a distinct
nameso tools are prefixed<name>__<tool>and don’t collide (see Tools). - MCP unreachable / 401. Verify the
urland any authheadersper server entry. ProcessStarterToolseems to hang. A largemaxRetries/pollIntervalMillis(chosen by the model) makes it poll for a long time on a blocking thread. Constrain it via the prompt; see the limitations below.
Where did my output / audit go?
- No
agentOutput. Ensure the output mapping binds${output}to a variable. - Audit timeline. It’s in the process variables
cibseven-connect-ai-agent_<activityId>~<eventSeq>, one per model call, not an output parameter, and may be suppressed bypersistChatLogor the globalchatLogVariable.enabled=false. See Audit Trail. - Content looks hashed. Redaction is on (
redactContent) — that’s expected (see Audit Trail). - A failed model call is not in the log. That is by design: its transaction is rolled back
together with the entry. Look at the incident, the job log and the
LLM ERRORline in the application log.
Output varies, or JSON won’t parse
- Different result each run. Expected — LLM output is non-deterministic. Branch/validate on meaning, not exact text. Lower-variance models/settings help but don’t guarantee identical output.
agentOutputwon’t parse as JSON.${output}is aString; parse it with Spin (S(agentOutput)) in a following step. The model may add prose or deviate from the requested shape — ask for JSON explicitly (see Examples) and route unparseable output through a validation/error gateway. See Getting Started.
The agent task failed / raised an incident
The LLM call threw (timeout, 401/429/5xx, bad request). With asyncBefore the job retries, then
raises an incident — inspect the incident message in Cockpit. Common causes are in the
Authentication/endpoint and Model sections above. Consider a timeout/error boundary event for
graceful handling.
Memory doesn’t persist
Chat memory is kept as a process variable by default and survives restarts. When a conversation starts over, check that:
- Use chat memory (
useChatMemory) is${true}on the task; - the
memoryIdis passed back, for example from the mapped${memoryId}output; - the call runs in the same process instance: a
memoryIdbelongs to one process instance, so an agent in a called process or in a process started by a message begins anew; - the task did not fail and get retried: a failed run keeps no turn;
- parallel branches did not overwrite the
memoryIdvariable; cibseven.connect.ai-agent.chatMemoryVariable.enabledis notfalse, which keeps conversations in the server’s memory: lost on restart and not shared across nodes.
When the agent forgets only its oldest turns, the Chat memory max messages window is full. See Chat Memory.
Known Limitations
This section documents the current constraints of the connector. Review these before relying on it for production-critical flows. For security implications, see Security & Data Handling.
Chat memory belongs to one process instance and has a size limit
A conversation is a process variable of its process instance: another process instance cannot continue it
unless you install a store of your own. A conversation larger than chatMemoryMaxPayloadBytes (1 MiB by default)
fails the task after the model has answered, and two parallel branches with one memoryId save the same variable,
so one of them is retried. See Chat Memory.
No transaction rollback for agent-started subprocesses
A process started by ProcessStarterTool commits in its own transaction. If the agent task or a
later step rolls back, the started subprocess is not undone — there is no rollback symmetry.
Design tool-driven starts to be idempotent or compensable. See
Developer Guide.
ProcessStarterTool poll budget is unbounded server-side
maxRetries and pollIntervalMillis come from the model’s tool-call arguments with no server-side
ceiling, and polling uses a blocking sleep on a tool thread. A large budget can hold that thread for
a long time and, under load, pressure the job executor. Constrain expectations via the prompt until a
server-side cap lands. See Tools.
The engine-call executor is never shut down
ProcessStarterTool uses a static daemon thread pool that is not explicitly shut down. On hot
redeploy of the engine this can retain a classloader reference (a potential leak). Not an issue for
normal start/stop lifecycles. See Developer Guide.
Remote embeddings ignore baseUrl
When a remote embeddingModelName is set, the embedding calls go to the public OpenAI
endpoint regardless of the chat baseUrl (and customHeaders are not applied to them). For
air-gapped or data-residency-constrained deployments, use the local AllMiniLmL6V2 model so no
document or query text leaves your network. See RAG.
The chat-log audit variables can grow large
The chat log keeps every request and answer, including the system prompt and the list of tools, in one
cibseven-connect-ai-agent_<activityId>~<eventSeq> variable per model call. Many calls fill Cockpit’s Variables
tab and anything that loads all variables of a process instance (GET /process-instance/{id}/variables). You can
turn the chat log off (persistChatLog / chatLogVariable.enabled), but then the events are kept nowhere: the
connector has no other output for them yet. Do it only where you need no record, and mind the EU AI Act trade-off.
See Audit Trail.
The default model name is a placeholder
The built-in fallback model is a configurable placeholder, not a guarantee that your provider
serves it. Always set model on the task or a deployment-wide default. See
Installation.
toolClasses has no allowlist
Any class named in toolClasses is loaded and its @Tool methods are exposed to the LLM. Treat the
field as privileged configuration; an allowlist / @AgentTool SPI is a planned hardening. See
Tools.
No MCP tool allowlist / lazy discovery yet
All tools exposed by a configured MCP server are registered. There is no per-task allowlist/filter to narrow the LLM-visible set, and no lazy tool discovery — both are planned. Disambiguation across servers (name prefixing) is shipped. See Tools.
No RAG vector index by default
The pgvector store is created without an ANN index, so retrieval is a linear scan — fine for small/medium knowledge bases; add an index out-of-band for very large stores. See RAG.
An agent that drives an ad hoc sub-process
The connector can also drive an ad hoc sub-process: placed on the sub-process instead of a service
task, it decides which of the sub-process’s activities to start, turn by turn, until the work is done.
Each model call of such an agent runs as a job of type agentic-ad-hoc-turn on the sub-process; a
call that keeps failing ends in an incident on the sub-process, and retrying it repeats one model call.
See Agentic Ad Hoc Sub-Process.