# Canvas datasource error

**URL:** <https://discuss.elastic.co/t/canvas-datasource-error/180313>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [May 9, 2019, 8:31am UTC](https://discuss.elastic.co/t/canvas-datasource-error/180313 "2019-05-09T08:31:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [May 9, 2019, 8:31am UTC](https://discuss.elastic.co/t/canvas-datasource-error/180313/1 "2019-05-09T08:31:17Z")

</div>

elasticsearch version: 6.7.0  
kibana version: 6.7.0

![canvas_error](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e0d84661b11ee148f2a28e1de4aa6ace865597b8.png)

Error occurs when importing data from a specific index from canvas.  
The index works well for all functions such as search query, aggregation, visualization, and timing, except canvas.  
Are there any restrictions when importing data from canvas?  
example... index size, document size, field length.....

Please let me know why this error is occurring.  
Just in case, I'm attaching the Elastic Search log.

 ![elastic_error](https://us1.discourse-cdn.com/elastic/original/3X/6/6/66e82843966d4b9b9b662e9c4459a0a20dfd3f41.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 9, 2019, 5:27pm UTC](https://discuss.elastic.co/t/canvas-datasource-error/180313/2 "2019-05-09T17:27:58Z")

</div>

What does the canvas expression look like? What does a similar request look like from Kibana visualization?

Canvas does not impose any index size, document size, or field length restrictions.

---

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [May 10, 2019, 12:15am UTC](https://discuss.elastic.co/t/canvas-datasource-error/180313/3 "2019-05-10T00:15:01Z")

</div>

There is no problem with visualization.  
All the graphs come out well.

What kind of canvas expression are you asking?  
In canvas, data cannot be imported from the index, regardless of the element type.  
Only the contents of the first uploaded image can be checked, and no other messages are displayed.

Attached is an index setting.  
{  
"index-name" : {  
"aliases" : { },  
"mappings" : {  
"card" : {  
"properties" : {  
"@timestamp" : {  
"type" : "date"  
},  
"@version" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"amount" : {  
"type" : "long"  
},  
"approval\_date" : {  
"type" : "date",  
"format" : "yyyy.MM.dd HH:mm:ss.SSS"  
},  
"be\_date" : {  
"type" : "date"  
},  
"beat" : {  
"properties" : {  
"hostname" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"name" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"version" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
}  
},  
"before\_amount" : {  
"type" : "long"  
},  
"before\_code" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"before\_date" : {  
"type" : "date",  
"format" : "yyyy.MM.dd HH:mm:ss.SSS"  
},  
"before\_location" : {  
"type" : "geo\_point",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"before\_name" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"before\_region" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"before\_region\_code" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"card\_name" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"card\_number" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"cu\_date" : {  
"type" : "date"  
},  
"data\_code" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"data\_time" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"distance" : {  
"type" : "float"  
},  
"duration\_time" : {  
"type" : "date",  
"format" : "HH:mm:ss"  
},  
"fds\_check" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"location" : {  
"type" : "geo\_point",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"offset" : {  
"type" : "long"  
},  
"prospector" : {  
"properties" : {  
"type" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
}  
},  
"region" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"region\_code" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"res\_message" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"tags" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
"tr\_num" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
}  
}  
},  
"settings" : {  
"index" : {  
"number\_of\_shards" : "2",  
"blocks" : {  
"read\_only\_allow\_delete" : "false"  
},  
"provided\_name" : "index-name",  
"creation\_date" : "1550647668306",  
"number\_of\_replicas" : "0",  
"uuid" : "index-uuid",  
"version" : {  
"created" : "6050499",  
"upgraded" : "6070099"  
}  
}  
}  
}  
}

---

<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:** [June 7, 2019, 12:15am UTC](https://discuss.elastic.co/t/canvas-datasource-error/180313/4 "2019-06-07T00:15:02Z")

</div>

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