Skip to content

Strange error message when reading RNTuples #21716

@jminguezCern

Description

@jminguezCern

Check duplicate issues.

  • Checked for duplicates

Description

I was trying with a minimal script to check the error messages that RDataFrame throws for example when trying to read a RNTuple with an incorrect name from a root file.

Reproducer

#include "ROOT/RDataFrame.hxx"
#include <iostream>

int main() {
    try {
        ROOT::RDataFrame rdf("a", "output.root");
        auto cols = rdf.GetColumnNames();
        std::cout << cols.size() << "\n";
    } catch (const std::exception &e) {
        std::cerr << "Error opening 'a' in 'output.root': " << e.what() << "\n";
        return 1;
    }
    return 0;
}

Getting this error message:
Error opening 'a' in 'output.root': RDataFrame: unsupported data format for dataset "a" in file "output.root".

ROOT version

ROOT Version: 6.39.01

Installation method

Build from source

Operating system

Linux Ubuntu

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions