Взгляните внутрь документа внутри базы данных _warehouser
и найдите элемент warehouser_error_message
. Например:
"warehouser_error_message": "Exception occurred while creating table.
[SQL0670N The statement failed because the row size of the
resulting table would have exceeded the row size limit. Row size
limit: \"\". Table space name: \"\". Resulting row size: \"\".
com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-670,
SQLSTATE=54010, SQLERRMC=32677;;34593, DRIVER=4.18.60]"
Сообщение об ошибке «Складское сообщение» обычно дает вам достаточно информации для отладки проблемы.
Вы можете просмотреть документ _warehouser в информационной панели Cloudant или использовать API, например.
export cl_username='<your_cloudant_account>'
curl -s -u $cl_username -p \
https://$cl_username.cloudant.com/_warehouser/_all_docs?include_docs=true \
| jq [.warehouse_error_code]