Closed lnkirkham-datasparq closed 2 months ago
Hi @lnkirkham-datasparq, this would indicate a partial corruption in the .docx
file.
Basically one of the document "parts" (sub-files, often XML) is indicating a relationship to another part (customXML/item3.xml
in this case) but that part is not present in the package (zip archive).
Quick fix if it's a onesie-twosie is probably to load it with Word, have it repair the file if it complains, maybe make a trival change like add a space then delete it (but don't undo it), then save the file.
If for whatever reason that doesn't suit then you'll need to remove the relationship in question. python-opc
can be helpful for that but you'll need to install it from the develop branch as it hasn't been released lately and the PyPI version won't work with Python 3.
I realize this response may use terms you're not familiar with, feel free to ask any questions and I can explain or point you to resources.
Thanks for the quick response @scanny, I'll give the quick fix a go, but may follow up with a qus if I go town the python-opc
route!
The quick first worked and is suitable for the small batch of docs I'm working with. Thanks again!
Glad you got it working Louise :)
I'm creating a document from a local .docx file, which I've done with a number of similar files without any issue:
But I'm encountering the following error with one file in particular: