Source: https://nishanth-fern-test.docs-staging.pageloop.ai/analytics/error-invalid-format-please-ensure-the-header-and-columns-are-the-same-as-the-template

# Error: Invalid format - Please ensure the header and columns are the same as the template.

## Issue

When you try to upload a CSV file that contains User IDs to [create a User list (Static Cohort)](/analytics/create-a-user-list), the action fails and you see the following error message: **Invalid format - Please** **ensure the header and columns are the same as the template**.

![user\_list\_invalid\_format\_error.png](/images/40/user_list_invalid_format_error-40c78b03.png)

## Probable Cause

By default, the CSV template contains the **userId** header, below which you can add the User IDs. The **Invalid format** error appears if you remove the **userId** header from the CSV file.

![user\_list\_without\_user\_id\_header.png](/images/2a/user_list_without_user_id_header-2a67d744.png)

## Suggested Solution

When adding User IDs to the CSV file, ensure that you retain the **userId** header as is.

![user\_list\_with\_user\_id\_header.png](/images/f8/user_list_with_user_id_header-f8f43de1.png)

> [!WARNING]
>
> If the issue persists, contact [support@whatfix.com](mailto:support@whatfix.com?subject=Invalid%20format%20error%20in%20User%20lists\&body=Hi%20team%2C%0A%0AI'm%20getting%20the%20following%20error%3A%20Invalid%20format%20-%20Please%20ensure%20the%20header%20and%20columns%20are%20the%20same%20as%20the%20template.%20Please%20help.%0AENT%20ID%3A).
