{"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":"Error \"no valid rows found in table\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/teams_webhook/teams_webhook.go:357 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":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}