> For the complete documentation index, see [llms.txt](https://docs.powertable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powertable.com/explore-powertable/working-with-powertable/basic-table-operations/bulk-import-rows.md).

# 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="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FW3B65N8s5Hq05qzRHSIl%2Fimage.png?alt=media&amp;token=f6995bb7-bda0-4e09-a8d5-94a16299a555" 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="https://1781349671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKyXRCFh0c08ryiUFvyMV%2Fuploads%2FFyQNXo1ogL9BoNtCYPRW%2Fimage.png?alt=media&amp;token=2dbb2658-93d1-409d-98d6-c10d2187ceef" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
