Hello Serena,
The "undefined" error you are encountering when attempting to import test cases via CSV into Azure DevOps is typically caused by a corrupted header row, an unmapped mandatory field, or blank columns being parsed by the importer. When the import wizard tries to read a column without a valid header, it fails to map the object property, resulting in the "undefined" error.
To resolve this issue, you need to ensure your CSV file strictly follows the formatting and column rules expected by Azure Test Plans.
According to the official Microsoft documentation, ensure your CSV includes the exact required fields:
"Review the field mappings. The following nine fields are required:
- ID — leave empty for new test cases, or provide an existing ID to update.
- Work Item Type — must be Test Case (exact spelling and casing)
- Title
- Test Step — sequential step number (1, 2, 3)
- Step Action
- Step Expected
- Area Path — must match an existing path (for example, MyProject\MyArea)
- Assigned To — valid user in your organization.
- State — must be Design."
Troubleshooting Steps:
- Open your CSV file in a plain text editor (like Notepad) to verify there are no hidden trailing commas at the end of your header row (e.g.,
...,State,,). Extra commas create blank, "undefined" columns. - Ensure you do not have any blank or improperly named headers.
- Save the file with the correct encoding. As Microsoft documentation advises: "For CSV files, save with UTF-8 encoding to preserve special characters. Enclose cell values in double quotes if they contain commas or line breaks."
Note: This response is drafted with the help of AI systems.