# Add Data Is Broken?

**URL:** <https://discuss.elastic.co/t/add-data-is-broken/289031>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [November 12, 2021, 12:06am UTC](https://discuss.elastic.co/t/add-data-is-broken/289031 "2021-11-12T00:06:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![corndog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corndog/32/96803_2.png) [@corndog](https://discuss.elastic.co/u/corndog)\
**Post date:** [November 12, 2021, 12:06am UTC](https://discuss.elastic.co/t/add-data-is-broken/289031/1 "2021-11-12T00:06:09Z")

</div>

I am at [http://localhost:5601/app/home#/tutorial\_directory](http://localhost:5601/app/home#/tutorial_directory)

Specifically Add Data / Upload File.

When I Upload my newline delimited JSON file, it is correctly formatted as ndjson.

HOWEVER THERE ARE ABSOLUTELY NO ITEMS FOUND AND NO FILE STATS APPEARING. When I try to import it just goes to a white screen!?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/4301911642b3d25fc177d20fb38794d5b514ada3.png)

```auto
{"properties": {"fid": 1, "searchable_site": "Site Name etc"}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[coordinates etc......]]]]}}

```

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [November 15, 2021, 2:50pm UTC](https://discuss.elastic.co/t/add-data-is-broken/289031/2 "2021-11-15T14:50:34Z")

</div>

File Uploader expects a flat object but you are uploading a sequential GeoJSON file that contains features where properties are a full object. Each line is like this:

```auto
{
"type": "Feature",
"geometry": ...
  "properties": {
    "prop1": "val1",
    "prop2": "val2",
    ....
  }
}

```

And you'd need to convert them into something like:

```auto
{
  "geometry": ...,
  "prop1": "val1",
  "prop2": "val2",
  ....
}

```

Still, I could not make it work for a polygon dataset, getting this error that tells me that the tool could not understand the geometry object.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/b/ab970d504d6ffc9e97908d0b91e1f23f9ef51282.png)

Your best option is to convert your sequential GeoJSON into a normal GeoJSON file and if it's below 100MB, you should be able to upload it using The Maps App. You can find a tutorial on how the tool works [here](https://www.elastic.co/guide/en/kibana/current/indexing-geojson-data-tutorial.html).

To convert the sequential GeoJSON you can use the [geojson2ndjson](https://www.npmjs.com/package/geojson2ndjson). I've tested it with a multipolygon dataset successfully.

```nohighlight
ndjson2geojson /tmp/countries.seq.geo.json > /tmp/countries.geo.json

```

If your output JSON file is larger than 100MB then maybe you can consider [using GDAL to upload your dataset to Elasticsearch](https://www.elastic.co/blog/how-to-ingest-geospatial-data-into-elasticsearch-with-gdal).

Hope it helps.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [November 17, 2021, 3:51pm UTC](https://discuss.elastic.co/t/add-data-is-broken/289031/3 "2021-11-17T15:51:41Z")

</div>

> [@jsanz](#):
>
> If your output JSON file is larger than 100MB then maybe you can consider [using GDAL to upload your dataset to Elasticsearch](https://www.elastic.co/blog/how-to-ingest-geospatial-data-into-elasticsearch-with-gdal).

Sorry I missed one thing. You can change the file upload 100MB limit with this setting `fileUpload:maxFileSize`.

> **[Advanced Settings | Kibana Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/kibana/current/advanced-options.html#fileupload-maxfilesize)**

(thanks @Nathan_Reese for the tip)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 15, 2021, 3:51pm UTC](https://discuss.elastic.co/t/add-data-is-broken/289031/4 "2021-12-15T15:51:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
