@flamber
Thank you for reply.
I check the log.
Failed pattern
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Jul 31 10:30:36 INFO metabase.api.card :: Card results metadata passed in to API is VALID. Thanks!
Jul 31 10:30:36 DEBUG metabase.async.util :: Running metabase.api.card$save_new_card_async_BANG_$fn__45948@4b1de8e on separate thread...
Jul 31 10:30:36 ERROR metabase.async.util :: Caught error running metabase.api.card$save_new_card_async_BANG_$fn__45948@4b1de8e
java.sql.SQLDataException: (conn=7872) Data too long for column 'result_metadata' at row 1
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:225)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
(Abbreviation...)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.sql.SQLException: Data too long for column 'result_metadata' at row 1
Query is: INSERT INTO report_card
(description
, collection_position
, table_id
, result_metadata
, database_id
, collection_id
, query_type
, name
, creator_id
, updated_at
, dataset_query
, display
, visualization_settings
, created_at
) VALUES (NULL, NULL, 362, ?, 3, NULL, ?, ?, 1, ?, ?, ?, ?, ?), parameters ['[{"name":"0_01","display_name":"0 01","base_type":"type/Integer","special_type":"type/Category","fingerprint":{"global":{"distinct-count":1,"nil%":0},"type":{"type/Number":{"min":0,"max":0,"avg":0,"sd":0,"q1":0,"q3":0}}}},{"name":"0_02","display_name":"0 02","base_type":"type/Integer","special_type":"type/Category","fingerprint":{"global":{"distinct-count":1,"nil%":0},"type":{"type/Number":{"min":0,"max":0,"avg":0,"sd":0,"q1":0,"q3":0}}}},{"name":"0_03","display_name":"0 03","base_type":"type/Integer","special_type":"type/Category","fingerprint":{"global":{"distinct-count":2,"nil%":0},"type":{"type/Number":{"min":0,"max":1,"avg":0.008771929824561403,"sd":0.0936585811581694,"q1":0,"q3":0.3017...
java thread: clojure-agent-send-off-pool-22
at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:163)
at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:280)
at org.mariadb.jdbc.MariaDbPreparedStatementClient.executeInternal(MariaDbPreparedStatementClient.java:223)
... 45 more
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Success pattern
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Jul 31 10:55:40 INFO metabase.api.card :: Card results metadata passed in to API is VALID. Thanks!
Jul 31 10:55:40 DEBUG metabase.async.util :: Running metabase.api.card$save_new_card_async_BANG_$fn__45948@7a3db575 on separate thread...
Jul 31 10:55:40 DEBUG metabase.middleware.log :: POST /api/card 200 [ASYNC: completed] 252 ms (38 DB calls) Jetty threads: 3/50 (2 idle, 0 queued) (67 total active threads) Queries in flight: 1
Jul 31 10:55:48 DEBUG metabase.middleware.log :: GET /api/user/current 200 2 ms (3 DB calls) Jetty threads: 4/50 (3 idle, 0 queued) (66 total active threads) Queries in flight: 0
Jul 31 10:55:48 DEBUG metabase.middleware.log :: GET /api/session/properties 200 2 ms (1 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (66 total active threads) Queries in flight: 0
Jul 31 10:55:48 DEBUG metabase.middleware.log :: GET /api/database 200 2 ms (3 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (66 total active threads) Queries in flight: 0
Jul 31 10:55:48 DEBUG metabase.middleware.log :: GET /api/setting 200 353 µs (0 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (66 total active threads) Queries in flight: 0
Jul 31 10:55:52 DEBUG metabase.middleware.log :: GET /api/user/current 200 2 ms (3 DB calls) Jetty threads: 5/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
Jul 31 10:55:52 DEBUG metabase.middleware.log :: GET /api/session/properties 200 2 ms (1 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
Jul 31 10:55:52 DEBUG metabase.middleware.log :: GET /api/database 200 2 ms (3 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
Jul 31 10:55:52 DEBUG metabase.middleware.log :: GET /api/setting 200 280 µs (0 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
Jul 31 10:56:13 DEBUG metabase.middleware.log :: GET /api/user/current 200 2 ms (3 DB calls) Jetty threads: 5/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
Jul 31 10:56:13 DEBUG metabase.middleware.log :: GET /api/session/properties 200 2 ms (1 DB calls) Jetty threads: 4/50 (2 idle, 0 queued) (65 total active threads) Queries in flight: 0
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
After you’ve created tableA/B and added data, have you synced/scanned the database in Metabase? Admin > Databases > “Sync database schema now” and “Re-scan field values now”
→This has been done.