# Bulk Import rows

It can be a tedious process to manually insert or update several rows. In such cases, you can bulk import the data directly from an external file.&#x20;

<figure><img src="/files/HxLKcEidBifwzy4bvbfB" alt=""><figcaption><p>Import bulk data</p></figcaption></figure>

PowerTable allows you to insert and update multiple rows at once by importing CSV or Excel files. The rows are updated based on matching primary keys from the file.

1. To import new rows, click **Import** on the toolbar that opens the 'Import from file' pop-up.
2. Click on the space to upload an Excel or a CSV file.
3. Select the required file from the systems folder and click **Upload.**
4. You can view the uploaded data.&#x20;

* Records with existing primary keys are updated.&#x20;
* Records with new primary keys are inserted as new rows.
* Mismatches are flagged as errors that can be resolved by clicking on logs.

<figure><img src="/files/3CL3fV05Owt76LIXYcU2" alt=""><figcaption><p>Inserted rows</p></figcaption></figure>

{% hint style="info" %}

1. Ensure the XLSX/CSV file that you import contains the necessary primary key fields and other mandatory fields configured in the 'Columns' section.
2. The maximum number of new rows that can be inserted at once is 20000.
   {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powertable.com/explore-powertable/working-with-powertable/basic-table-operations/bulk-import-rows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
