Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For test data, better error message when the "Library" or "Datasets" tab, or the column headers within them are not found or malformed #211

Open
chowsanthony opened this issue Feb 15, 2024 · 1 comment

Comments

@chowsanthony
Copy link

Reproduce step: Name the test data spreadsheet tab "datasets" instead of "Datasets."

When the "Datasets" tab is not found or malformed, I see this error message, which I found a tad cryptic and not easy to troubleshoot:

{
  "error": "KeyError",
  "message": "\"one or more datasets missing the following keys {'label'}\""
}

In contrast. when the "Library" tab is not found or malformed, I see this error message, which I found more informative:

{
  "MI": [
    {
      "executionStatus": "execution_error",
      "domain": "MI",
      "variables": [],
      "message": "rule execution error",
      "errors": [
        {
          "error": "An unknown exception has occurred",
          "message": "Missing standard and version data"
        }
      ]
    }
  ]
}

Lastly, I hope the error message to include some coping mechanism, e.g.,, "Make sure there is a 'Datasets' tab, case-sensitive."

@chowsanthony chowsanthony changed the title For test data, better error message when the "Datasets" tab is not found or malformed For test data, better error message when the "Library" or "Datasets" tab, or the column headers within them are not found or malformed Feb 20, 2024
@gerrycampion
Copy link
Collaborator

Another example: Product and Version within Library tab are also case sensitive and don't provide appropriate error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants