{"record":{"id":"ad9bc1f40e4746e9","repo":"temporalio/temporal","slug":"s","errorCode":null,"errorMessage":"%s","messagePattern":"%s","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/history/api/respondworkflowtaskcompleted/workflow_size_checker.go","lineNumber":74,"sourceCode":"\tpayloadSize int,\n\tmessage string,\n) error {\n\n\texecutionInfo := c.mutableState.GetExecutionInfo()\n\texecutionState := c.mutableState.GetExecutionState()\n\terr := common.CheckEventBlobSizeLimit(\n\t\tpayloadSize,\n\t\tc.blobSizeLimitWarn,\n\t\tc.blobSizeLimitError,\n\t\texecutionInfo.NamespaceId,\n\t\texecutionInfo.WorkflowId,\n\t\texecutionState.RunId,\n\t\tc.metricsHandler.WithTags(commandTypeTag),\n\t\tc.logger,\n\t\tcommandTypeTag.Value,\n\t)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"%s\", message) // nolint:err113\n\t}\n\treturn nil\n}\n\nfunc (c *workflowSizeChecker) checkIfMemoSizeExceedsLimit(\n\tmemo *commonpb.Memo,\n\tcommandTypeTag metrics.Tag,\n\tmessage string,\n) error {\n\tmetrics.MemoSize.With(c.metricsHandler).Record(\n\t\tint64(memo.Size()),\n\t\tcommandTypeTag)\n\n\texecutionInfo := c.mutableState.GetExecutionInfo()\n\texecutionState := c.mutableState.GetExecutionState()\n\terr := common.CheckEventBlobSizeLimit(\n\t\tmemo.Size(),\n\t\tc.memoSizeLimitWarn,","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/history/api/respondworkflowtaskcompleted/workflow_size_checker.go#L56-L92","documentation":"Error \"%s\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/history/api/respondworkflowtaskcompleted/workflow_size_checker.go:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}