In our project, we will transfer A12 documents including external attachments between multiple instances. The business case here is handing over some tax documents to another federal state, because this second state is now responsible.
Because the generated PDFs can become huge, the chances are high that the A12 document and the external attachments will not be transfered in the same request and thus will not be stored to the DB/file system at the same time.
Will this be OK or will there be exceptions/restrictions while trying to save either the document or the attachment because of the missing counterpart?
Thanks!
Hi @bastian-far-leaf,
Unfortunately, there is no import of documents currently available with attachments. Documents must have valid attachment references during the creation. This implies that attachments needs to be persisted before the documents.
The attachment UUIDs from the uploaded attachments must be stored in the documents. Old attachment UUIDS will not work after the save because new UUIDs will be generated. To keep old attachment UUIDs, and avoid these assignments, I would recommend moving the complete content store DB/file system and then recreating documents.
If the documents themselves should also retain docRefs (due to link references) I would also recommend copying links and documents table as well.
Cheers this response is valid for DS versions 36.3.0 - 37.2.0
Hi @bastian-far-leaf,
has your question been answered or do you need further support? If it is solved, please, use the checkbox to mark the solution to your problem so that other users also know what helped in your case.
Thanks in advance!
Denise from the Discourse team