# Help with Data Ingestion

**URL:** <https://community.cratedb.com/t/help-with-data-ingestion/1076>\
**Category:** SQL\
**Created:** [April 6, 2022, 2:08pm UTC](https://community.cratedb.com/t/help-with-data-ingestion/1076 "2022-04-06T14:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phomuth](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@phomuth](https://community.cratedb.com/u/phomuth)\
**Post date:** [April 6, 2022, 2:08pm UTC](https://community.cratedb.com/t/help-with-data-ingestion/1076/1 "2022-04-06T14:08:24Z")

</div>

Currently, I am having issues using the Copy From statement to import data into CrateDB. I have created a table already in CrateDB with the correct data types and naming scheme. Then I attempted the following code:

Copy testimport From ‘file:///C:/CrateIO/crate-4.7.1/TestData/testimport.csv’ WITH (FORMAT = ‘CSV’)

After I run the query I get a return statement saying “COPY OK, 0 records affected.” The mock data (testimport.csv) should add 10 rows of data, but no matter what I try I am unable to import the data. This issue still exists when the file format is switched to JSON from CSV. Is there something I am missing?

I am running the Windows 4.7.1 version of CrateDB

---

<div class="post-metadata">

**Author:** ![hammerhead](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/hammerhead/32/270_2.png) [@hammerhead](https://community.cratedb.com/u/hammerhead)\
**Post date:** [April 6, 2022, 2:13pm UTC](https://community.cratedb.com/t/help-with-data-ingestion/1076/2 "2022-04-06T14:13:32Z")

</div>

Hi @phomuth,

the `COPY` command is not very verbose by default in regards to error messages. Can you try please to append `RETURN SUMMARY`? That should give a hint on what the issue is.

```sql
Copy testimport From 'file:///C:/CrateIO/crate-4.7.1/TestData/testimport.csv' WITH (FORMAT = 'CSV') RETURN SUMMARY;

```

---

<div class="post-metadata">

**Author:** ![phomuth](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@phomuth](https://community.cratedb.com/u/phomuth)\
**Post date:** [April 6, 2022, 3:06pm UTC](https://community.cratedb.com/t/help-with-data-ingestion/1076/3 "2022-04-06T15:06:05Z")

</div>

Hi,

I have tried the return summary. It gives a similar return message of “COPY OK, 1 Row Affected.” It then shows the summary below. Is there a way to get more detail on the error count?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/crate/original/1X/5f4600dd45b047e97419a38594f700de2f4fd070.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![jayeff](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/jayeff/32/271_2.png) [@jayeff](https://community.cratedb.com/u/jayeff)\
**Post date:** [April 6, 2022, 3:10pm UTC](https://community.cratedb.com/t/help-with-data-ingestion/1076/4 "2022-04-06T15:10:06Z")

</div>

@phomuth “errors” column is an object with details nested insight. Either uncheck “Format results” to see the full json object or click on “\> Object” to open the object
