Skip to content
Dashboard
Theme
Theme

directory_csv_invalid

Developer and IT administrator messages for directory_csv_invalid.

View Markdown

Since API version 1.0.

Field Value
Type invalid_request
Status 400
Surfaces api
Retryable No

The CSV file was refused and nothing in the directory changed. The message lists up to 20 problems in words, and details lists the same problems one per item, with the row (1 is the header row; 0 is the file as a whole), the column when there is one, and what is wrong.

  • The header row has an unknown or duplicate column, or misses external_id, or has neither user_name nor email.
  • A row has no external_id, an invalid email address, or an active value other than true or false.
  • The file is not UTF-8, is larger than the limit, or has a malformed row (for example an unclosed quote).
  • Read details to show each problem next to its row and column in your own upload screen; don’t parse message.
  • Fix every listed row and upload the whole file again; a file is applied all at once or not at all.
  • Use dry_run=true to check a file without changing the directory.
  • Fix the rows the error lists, save the file as UTF-8 CSV and upload it again.

The API answers HTTP 400. details carries one item per problem:

{
"error": {
"type": "invalid_request",
"code": "directory_csv_invalid",
"message": "row 1 departmnt: unknown column; row 4 email: not an email address",
"param": "body",
"doc_url": "https://docs.ohauthcat.com/errors/directory_csv_invalid",
"request_id": "req_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"details": [
{ "row": 1, "column": "departmnt", "problem": "unknown column" },
{ "row": 4, "column": "email", "problem": "not an email address" }
]
}
}

The CSV file is invalid; message names up to 20 problems by row and column

The CSV file has errors. Fix the rows listed and upload it again

The hosted portal shows these machine translations, which native speakers have not reviewed yet. Placeholders and identity provider console labels stay in English.

  • de: Die CSV-Datei enthält Fehler. Korrigieren Sie die aufgeführten Zeilen und laden Sie sie erneut hoch
  • es: El archivo CSV tiene errores. Corrija las filas indicadas y vuelva a subirlo
  • fr: Le fichier CSV contient des erreurs. Corrigez les lignes indiquées et importez-le à nouveau
  • ja: CSV ファイルにエラーがあります。表示された行を修正して、もう一度アップロードしてください
  • pt-BR: O arquivo CSV tem erros. Corrija as linhas indicadas e envie-o novamente