Article body
Full article
A question can fail during a model call, database query, authorization check, or browser connection. A typo in a field reference requires a different response from a request outside the user’s permissions. HENGSHI SENSE 7.0 shows tool parameters, output, and errors in the processing trace. Use these to decide whether to keep the task, repair the question, or request business review.
Identify where the failure occurred
| Symptom | Check first | Response |
|---|---|---|
| Field, function, or reference error | Types, relationships, fields, and source dialect | Correct the reference using supported syntax and preserve its meaning. |
| Query runs but values are wrong | Grain, joins, dates, and filters | Reconcile the baseline and confirm the definition. |
| Access or edit is denied | Caller identity and resource and data grants | Use the existing authorization process. |
| Repeated timeout or result limit | Scope, source load, and model configuration | Agree on a smaller scope and describe the coverage. |
| Browser disconnect, outcome unknown | Server state and saved turn | Check state before waiting, canceling, or starting again. |
Distinguish a read retry, query correction, and new question. Correct a broken reference in small steps after checking fields, types, and context. Resolve disputed definitions with their owner. In Act, a permission or business validation failure stops the affected operation. Use objects returned by successful responses to identify completed steps.
Check whether a repair changed the metric
Counting line items as orders understates average order value even when a query runs. This example assumes each line has its own payment amount. Count both rows and distinct orders to verify the denominator.
SELECT
COUNT(*) AS detail_rows,
COUNT(DISTINCT order_id) AS orders,
SUM(line_paid_amount) AS paid_amount,
SUM(line_paid_amount * 1.0)
/ NULLIF(COUNT(DISTINCT order_id), 0) AS avg_order_value
FROM order_items
WHERE order_status = 'PAID'
AND paid_at >= '2026-10-01'
AND paid_at < '2026-11-01'
Consolidate by order first if a full-order amount repeats on each row. Verify period boundaries, payment status, and refund rules. Calculate an order with several items independently. Use authorized read-only data access in production and the project’s confirmed business definition.
Read the processing trace before starting a new turn
Open the trace and use parameters, output, errors, and model latency to distinguish unsupported environments, changed data objects, and calculation errors. Give the data team the question, time, session and turn identifiers after checking logs for sensitive information. Retest the original and a boundary case. After changes to a model, verify the connection, then test Ask with a real account.
ChatBI’s Regenerate action starts a new turn using the same question and keeps the previous result. After an SSE disconnect, a host using the data client SDK can query the existing run and retrieve the persisted turn on completion. The SDK retries idempotent reads within bounds. The SDK does not automatically retry the POST that starts a turn. Stop an active server execution via the cancellation operation and set a wait and attempt budget for recovery.
Give business users the failed step and where to continue. If an authoring task already created a dashboard, identify it before retrying. For an external data source error, check the baseline report with equivalent permissions. If the baseline works, compare objects, dates, metrics, and filters. A product code moving from numeric to text can produce an empty result in an otherwise successful query.
Distinguish three identifiers when reconnecting
The server can continue after a browser refresh. HENGSHI’s SDK uses conversationId to find the session, runId to inspect or cancel active work, and chatUid to read the persisted turn. Logs can correlate requestId and traceId. The client-generated clientRequestId correlates submissions. Check server state before resending.
| Browser behavior | Recovery | User-facing result |
|---|---|---|
| Disconnected after receiving a run ID | Check state, then wait or request cancellation. | Processing status, original question, and time. |
| Task ended with a turn ID | Read the persisted turn. | The answer, error, or cancellation. |
| No run or turn ID arrived | Check recent conversation history. | Pending verification, avoiding duplicate submission. |
| Page received only a stream end event | Check both the turn and run. | Actual success, failure, or pending verification. |
Test a disconnect after streaming begins and another immediately after submission. Reopen the original conversation and confirm the number of persisted turns. Use server cancellation if needed. Closing the connection still leaves server state to verify.
Verify regeneration and definition corrections separately
Regenerate for comparison while retaining the first result. When a product code changes type, inventory the old and new values, stores, dates, and reports. Correct mappings and documentation. Test an actual match, a missing record, and a historical code to distinguish empty results, missing mappings, and API errors. Confirm the intended data and official metric before calling the outcome successful.
Test recovery and stopping conditions
Use a deprecated field, a permission-denied request, a disconnect during execution, and a query with the wrong denominator. Record starting conditions, failure, recovery, and retest. Verify that network failures can read back run status, access failures expose no unauthorized data or changes, and the metric change is explainable.
Track model, data, reconciliation, and manual interventions separately. Check dataset knowledge and schema changes for repeated field failures. Inspect connectivity, data volume, and aggregations for slow queries. Once the wait or attempt limit is reached, state the failed step and where to resume investigation.
About HENGSHI
Founded in 2016, HENGSHI builds enterprise analytics for the Data+AI era. Its Agentic BI offerings bring together HENGSHI SENSE, HENGSHI digital employees, the HENGSHI CLI execution engine, and HENGSHI BOX for private deployment. With ten years of BI experience, HENGSHI supports software vendors through Powered by Hengshi and provides integrated AI analytics for manufacturing, finance, retail, and government.