Skip to main content

Adding a table shape with a single column (1 column, 2 rows) causes an error in the API request, but works with 2 columns, 2 rows.

 

Expected result:


Error returned

Body: {"code":"internalServerError","message":"An unknown error occurred","requestId":"e7e90a6cc8050583"}

 

This json fails

{
"rowCount": 2,
"colCount": 1,
"cells": "
{
"xPosition": 0,
"yPosition": 0,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 0,0"
},
{
"xPosition": 0,
"yPosition": 1,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 0,1"
}
],
"verticalBorder": true,
"horizontalBorder": true,
"id": "bg",
"type": "table",
"boundingBox": {
"x": 1126.5999999999995,
"y": 1448.8000000000002,
"w": 513.2999999999997,
"h": 342.1999999999998
}
},

 

 

This json succeeds (just the addition of a column, and the cells.)

{
"rowCount": 2,
"colCount": 2,
"cells": l
{
"xPosition": 0,
"yPosition": 0,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 0,0"
},
{
"xPosition": 0,
"yPosition": 1,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 0,1"
},
{
"xPosition": 1,
"yPosition": 0,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 1,0"
},
{
"xPosition": 1,
"yPosition": 1,
"mergeCellsRight": 0,
"mergeCellsDown": 0,
"text": "Test 1,1"
}
],
"verticalBorder": true,
"horizontalBorder": true,
"id": "bg",
"type": "table",
"boundingBox": {
"x": 1126.5999999999995,
"y": 1448.8000000000002,
"w": 513.2999999999997,
"h": 342.1999999999998
}
},

 

Hi Andrew.Casta,

Thank you for your interest in the Lucid standard import and for pointing this out. I’ve confirmed that something is not working as intended. I’ll start looking into this to see if I can get it fixed.


The code fix for this is done and waiting for review. I’ll notify again when the fix is released.


The fix has been released. This should work as intended now.


Reply