[Bug Report] Problem with Trello import function #291

Closed
opened 2026-02-04 18:24:20 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @Jakinlade on GitHub (Feb 17, 2023).

I seem to be having some difficulty importing trello .json files into planka.

My deployment is through Docker Compose, i have been running Planka for a while and all other functions seem to be working correctly.

When I import nothing happens within the GUI and the log kicks out the following error.

2023-02-17 10:48:23 [E] Sending 500 ("Server Error") response: ,
Invalid new record.,
Details:,
Missing value for required attribute position. Expected a number, but instead, got: undefined

Prior to posting this, I did try a few things including correctly parsing the .json and double checking my deployment for things such as write errors. Let me know if there is additional information I can share to help diagnose the problem I am having.

Originally created by @Jakinlade on GitHub (Feb 17, 2023). I seem to be having some difficulty importing trello .json files into planka. My deployment is through Docker Compose, i have been running Planka for a while and all other functions seem to be working correctly. When I import nothing happens within the GUI and the log kicks out the following error. 2023-02-17 10:48:23 [E] Sending 500 ("Server Error") response: , Invalid new record., Details:, Missing value for required attribute `position`. Expected a number, but instead, got: undefined Prior to posting this, I did try a few things including correctly parsing the .json and double checking my deployment for things such as write errors. Let me know if there is additional information I can share to help diagnose the problem I am having.
OVERLORD added the bug label 2026-02-04 18:24:20 +03:00
Author
Owner

@meltyshev commented on GitHub (Feb 18, 2023):

Hi!

Thank you for reporting this. There seems to be a bug somewhere, also we have not tested this feature much. I'd be happy to fix it, but I need to reproduce it somehow.

There are 3 entities with the pos field in the import file: list, card, checklistItem. Probably, in some case this field is missing, which leads to an error. I would suggest to add console.log(trelloCheckItem); above line 70, console.log(trelloCard); above line 103 and console.log(trelloList); above line 138 to server/api/helpers/boards/import-from-trello.js and see what output comes before the error.

Or you can also send the import file here and I will try to look at it myself, but of course removing all private data from it.

@meltyshev commented on GitHub (Feb 18, 2023): Hi! Thank you for reporting this. There seems to be a bug somewhere, also we have not tested this feature much. I'd be happy to fix it, but I need to reproduce it somehow. There are 3 entities with the `pos` field in the import file: list, card, checklistItem. Probably, in some case this field is missing, which leads to an error. I would suggest to add `console.log(trelloCheckItem);` above line 70, `console.log(trelloCard);` above line 103 and `console.log(trelloList);` above line 138 to `server/api/helpers/boards/import-from-trello.js` and see what output comes before the error. Or you can also send the import file here and I will try to look at it myself, but of course removing all private data from it.
Author
Owner

@christophenne commented on GitHub (Feb 19, 2023):

Hi,

it seems that the import is broken completely, independently of the import file. I just tested it locally too with the sample file I used to develop with: sample-board-export.json.

Possible hint for debugging/fixing: I remember some time ago there was a breaking API change, I fixed it in the trello2planka client: bc83740e19 . I didn't check whether it affected the integrated planka import too, but maybe that is related. Other than that, I haven't really had the time to check the latest planka changes, so it might also be something different that breaks the import.

@christophenne commented on GitHub (Feb 19, 2023): Hi, it seems that the import is broken completely, independently of the import file. I just tested it locally too with the sample file I used to develop with: [sample-board-export.json](https://github.com/christophenne/trello2planka/blob/develop/sample-board-export.json). Possible hint for debugging/fixing: I remember some time ago there was a breaking API change, I fixed it in the trello2planka client: https://github.com/christophenne/trello2planka/commit/bc83740e1902e0e17facb017874b0eb08db82af0 . I didn't check whether it affected the integrated planka import too, but maybe that is related. Other than that, I haven't really had the time to check the latest planka changes, so it might also be something different that breaks the import.
Author
Owner

@matatentacle commented on GitHub (Feb 20, 2023):

Hi!

Thank you for reporting this. There seems to be a bug somewhere, also we have not tested this feature much. I'd be happy to fix it, but I need to reproduce it somehow.

There are 3 entities with the pos field in the import file: list, card, checklistItem. Probably, in some case this field is missing, which leads to an error. I would suggest to add console.log(trelloCheckItem); above line 70, console.log(trelloCard); above line 103 and console.log(trelloList); above line 138 to server/api/helpers/boards/import-from-trello.js and see what output comes before the error.

Or you can also send the import file here and I will try to look at it myself, but of course removing all private data from it.

Hey @meltyshev,

I work with @Jakinlade and we are both big fans of Planka, so thanks for the all the hard work. Here are the log files. I will also send you the Trello file later today.

debug: Detected Sails environment is "production", but NODE_ENV is undefined.,
debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
debug: Detected Sails environment is "production", but NODE_ENV is undefined.,
debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
debug: Detected Sails environment is "production", but NODE_ENV is undefined.,
debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
2023-02-20 06:47:24 [E] Sending 500 ("Server Error") response: ,
Invalid new record.,
Details:,
Missing value for required attribute position. Expected a number, but instead, got: undefined

@matatentacle commented on GitHub (Feb 20, 2023): > Hi! > > Thank you for reporting this. There seems to be a bug somewhere, also we have not tested this feature much. I'd be happy to fix it, but I need to reproduce it somehow. > > There are 3 entities with the `pos` field in the import file: list, card, checklistItem. Probably, in some case this field is missing, which leads to an error. I would suggest to add `console.log(trelloCheckItem);` above line 70, `console.log(trelloCard);` above line 103 and `console.log(trelloList);` above line 138 to `server/api/helpers/boards/import-from-trello.js` and see what output comes before the error. > > Or you can also send the import file here and I will try to look at it myself, but of course removing all private data from it. Hey @meltyshev, I work with @Jakinlade and we are both big fans of Planka, so thanks for the all the hard work. Here are the log files. I will also send you the Trello file later today. debug: Detected Sails environment is "production", but NODE_ENV is `undefined`., debug: Automatically setting the NODE_ENV environment variable to "production"., debug: , debug: Detected Sails environment is "production", but NODE_ENV is `undefined`., debug: Automatically setting the NODE_ENV environment variable to "production"., debug: , debug: Detected Sails environment is "production", but NODE_ENV is `undefined`., debug: Automatically setting the NODE_ENV environment variable to "production"., debug: , 2023-02-20 06:47:24 [E] Sending 500 ("Server Error") response: , Invalid new record., Details:, Missing value for required attribute `position`. Expected a number, but instead, got: undefined
Author
Owner

@meltyshev commented on GitHub (Feb 20, 2023):

Sorry, my bad 🙈 I added labels reordering and they now have a required position field. I'll try to do a quick fix now.

@meltyshev commented on GitHub (Feb 20, 2023): Sorry, my bad 🙈 I added labels reordering and they now have a required position field. I'll try to do a quick fix now.
Author
Owner

@matatentacle commented on GitHub (Feb 22, 2023):

Thanks for the Fix @meltyshev massivly appriciated.

@matatentacle commented on GitHub (Feb 22, 2023): Thanks for the Fix @meltyshev massivly appriciated.
Author
Owner

@Jakinlade commented on GitHub (Feb 22, 2023):

Yes this has really helped us out! Thanks again @meltyshev !

@Jakinlade commented on GitHub (Feb 22, 2023): Yes this has really helped us out! Thanks again @meltyshev !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#291