I'm using collective.exportimport to import json content. The content was exported from another Plone site using collective.exportimport. Is it safe to ignore the following warning during an import? I'm not 100% sure of what the warning means.
WARNING [collective.exportimport.import_content:365][waitress-1] cannot deserialize http://localhost:8080/Plone/committees/finance/resources/xx-4521-provider-solution: BadRequest([{'message': 'Constraint not satisfied', 'field': 'committee', 'error': 'ValidationError'}])
There's a custom content type called committee
, in this case the 'finance' committee and a custom content type called bill
, in this case the 'xx-4521' bill.
The associated object from the provided json looks like this:
"@id": "http://localhost:8080/Plone/committees/finance/resources/xx-4521-provider-solution",
"@type": "bill",
"UID": "e99ba9eac2f94a19b95db1a2e099182d",
"allow_discussion": true,
"bill_number": "XXXXX",
"body": {
"content-type": "text/html",
"data": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n <p>The Commissioner shall promulgate To the fullest extent practicable, these standards and procedures shall incorporate the use of<span>\u00a0</span>
... snip ...
<span>blockchain</span></a><span>\u00a0</span>technology, as defined in this act, on a permanent, statewide basis. If making such a recommendation, the report shall also include legislative recommendations to improve the efficiency, effectiveness, and security of such</u></p>\r\n</body>\r\n</html>",
"encoding": "utf-8"
},
"committee": {
"title": "Finance\t",
"token": "Finance\\t"
},
"contributors": [],
"copy_of_the_bill": null,
"created": "2019-01-14T16:38:13+00:00",
"creators": [
"04190735"
],
"description": "Relates to electronic return ...pilot program may return ...",
"effective": "2019-01-09T10:40:00",
"expires": null,
"id": "xx-4521",
"is_folderish": true,
"jurisdiction": {
"title": "Virginia ",
"token": "Virginia "
},
"language": {
"title": "English (USA)",
"token": "en-us"
},
"layout": "view",
... snip ...