{"record":{"id":"e30199c669134175","repo":"sipeed/picoclaw","slug":"no-valid-rows-found-in-table","errorCode":null,"errorMessage":"no valid rows found in table","messagePattern":"no valid rows found in table","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/teams_webhook/teams_webhook.go","lineNumber":357,"sourceCode":"\t\t\t\theaderLengths = append(headerLengths, len(trimmedText))\n\t\t\t}\n\n\t\t\ttextBlock := adaptivecard.Element{\n\t\t\t\tType: adaptivecard.TypeElementTextBlock,\n\t\t\t\tText: trimmedText,\n\t\t\t\tWrap: true,\n\t\t\t}\n\t\t\tcell := adaptivecard.TableCell{\n\t\t\t\tType:  adaptivecard.TypeTableCell,\n\t\t\t\tItems: []*adaptivecard.Element{&textBlock},\n\t\t\t}\n\t\t\ttableCells = append(tableCells, cell)\n\t\t}\n\t\tallRows = append(allRows, tableCells)\n\t}\n\n\tif len(allRows) == 0 {\n\t\treturn adaptivecard.Element{}, fmt.Errorf(\"no valid rows found in table\")\n\t}\n\n\t// Create table with first row as headers\n\tfirstRowAsHeaders := true\n\tshowGridLines := true\n\n\ttable, err := adaptivecard.NewTableFromTableCells(allRows, 0, firstRowAsHeaders, showGridLines)\n\tif err != nil {\n\t\treturn adaptivecard.Element{}, fmt.Errorf(\"failed to create table: %w\", err)\n\t}\n\n\t// Set column widths based on header content length\n\ttable.Columns = calculateColumnWidths(headerLengths)\n\n\treturn table, nil\n}\n\n// calculateColumnWidths creates TableColumnDefinition entries with widths","sourceCodeStart":339,"sourceCodeEnd":375,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/teams_webhook/teams_webhook.go#L339-L375","documentation":"Guard inside parseMarkdownTable: the input had at least two lines, but after splitting rows into cells not a single valid row was accumulated into allRows — every line failed row-level parsing. The function therefore cannot construct a table with any content.","triggerScenarios":"Thrown at pkg/channels/teams_webhook/teams_webhook.go:357 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that table rows use consistent | delimiters and non-empty cells","Avoid malformed rows (e.g. lines that only contain separators after the header)","Regenerate the table content if the source markdown is corrupted"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","contentChangedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}