Rspacer cannot replace files when the template contains a missing field #10
Labels
for Rspace instead of rspacer
Tag to use when it seems an issue is related to the Rspace API and not to the wrapper.
I cannot replace a document using the Rspace API if there are missing numbers in the columnIndex, which is a parameter within fields. I tried replacing documents with other templates and it is fine if they have for example the LACDR-ISA - Study v1.0.0 template, but the Assay template does not work.
Screenshot of the error:
![image](https://private-user-images.githubusercontent.com/55512235/386226204-cbce723a-5d18-416f-b2fc-2cb27c309205.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTMxNjIsIm5iZiI6MTczOTU5Mjg2MiwicGF0aCI6Ii81NTUxMjIzNS8zODYyMjYyMDQtY2JjZTcyM2EtNWQxOC00MTZmLWIyZmMtMmNiMjdjMzA5MjA1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MTQyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwYjg2Y2RmOTI3MmJjZDQ5MzIwNTNhYzFmYWJmMTNhZDg0Yjc4ODhiNDY0ZTc0ZGFiNDI1NWYxNTFkZTk2NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xwUoLNp4bZJmN9WiZgWkShtnJ9kNGvJXbccbzwNzyTs)
Code that you can use to see that the columnIndex is missing some numbers.
gives:
![image](https://private-user-images.githubusercontent.com/55512235/386228347-be29a050-f37e-440a-a6ea-f0b5f8eac0f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTMxNjIsIm5iZiI6MTczOTU5Mjg2MiwicGF0aCI6Ii81NTUxMjIzNS8zODYyMjgzNDctYmUyOWEwNTAtZjM3ZS00NDBhLWE2ZWEtZjBiNWY4ZWFjMGY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MTQyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkNzMyZWMzYWFmMjA3ZjYzYzUxNDU4ZTgyMjJmMmE1MDBmOWU2NGZlZDc1ZjcxMWU1MWJlMDVkNGU1ZmVmYmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-FspdqKbTzyjHN6nyVPu2moevHrnGTs58L7IkGUC2rw)
Using the field id instead, as described on https://community.researchspace.com/public/apiDocs > Documents > PUT did not solve the issue. I do not know why this error occurs and think that we should contact the people at Rspace.
The text was updated successfully, but these errors were encountered: