aaif-goose/goose · error

Invalid cell reference format

Error message

Invalid cell reference format

What it means

Error "Invalid cell reference format" thrown in aaif-goose/goose.

Source

Thrown at crates/goose-mcp/src/computercontroller/xlsx_tool.rs:273

        .context("Range area overflow")?;
    anyhow::ensure!(
        cell_count <= MAX_RANGE_CELLS,
        "Range contains {cell_count} cells; maximum is {MAX_RANGE_CELLS}"
    );

    Ok((row_count, column_count))
}

fn parse_cell_reference(reference: &str) -> Result<(u32, u32)> {
    // Parse Excel cell reference (e.g., "A1") and return (row, column) to match umya_spreadsheet's expectation
    let mut col_str = String::new();
    let mut row_str = String::new();
    let mut parsing_row = false;

    for c in reference.chars() {
        if c.is_alphabetic() {
            if parsing_row {
                anyhow::bail!("Invalid cell reference format");
            }
            col_str.push(c.to_ascii_uppercase());
        } else if c.is_numeric() {
            parsing_row = true;
            row_str.push(c);
        } else {
            anyhow::bail!("Invalid character in cell reference");
        }
    }

    let col = column_letter_to_number(&col_str)?;
    let row = row_str.parse::<u32>().context("Invalid row number")?;

    Ok((row, col))
}

fn column_letter_to_number(column: &str) -> Result<u32> {
    let mut result = 0u32;

View on GitHub (pinned to 3810898a74)

When it happens

Trigger: Thrown at crates/goose-mcp/src/computercontroller/xlsx_tool.rs:273 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of aaif-goose/goose@3810898a74 (2026-08-16). Data as JSON: /api/errors/449b1bbe76066020. Report an issue: GitHub.