temporalio/temporal · error
RecordWorkflowExecutionClosed rowsAffected error: %v
Error message
RecordWorkflowExecutionClosed rowsAffected error: %v
What it means
Error "RecordWorkflowExecutionClosed rowsAffected error: %v" thrown in temporalio/temporal.
Source
Thrown at common/persistence/visibility/store/sql/visibility_store.go:148
) error {
row, err := s.generateVisibilityRow(request.InternalVisibilityRequestBase)
if err != nil {
return err
}
row.CloseTime = &request.CloseTime
row.HistoryLength = &request.HistoryLength
row.HistorySizeBytes = &request.HistorySizeBytes
row.ExecutionDuration = new(request.ExecutionDuration.Nanoseconds())
row.StateTransitionCount = &request.StateTransitionCount
result, err := s.sqlStore.DB.ReplaceIntoVisibility(ctx, row)
if err != nil {
return err
}
noRowsAffected, err := result.RowsAffected()
if err != nil {
return fmt.Errorf("RecordWorkflowExecutionClosed rowsAffected error: %v", err)
}
if noRowsAffected > 2 { // either adds a new row or deletes old row and adds new row
return fmt.Errorf(
"RecordWorkflowExecutionClosed unexpected numRows (%v) updated",
noRowsAffected,
)
}
return nil
}
func (s *VisibilityStore) UpsertWorkflowExecution(
ctx context.Context,
request *store.InternalUpsertWorkflowExecutionRequest,
) error {
row, err := s.generateVisibilityRow(request.InternalVisibilityRequestBase)
if err != nil {
return err
}View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/persistence/visibility/store/sql/visibility_store.go:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/093a7fc473e07920.
Report an issue: GitHub.