79615286

Date: 2025-05-10 08:14:59
Score: 1.5
Natty:
Report link

It turns out that the issue was that you cannot use .getChild().copy() to move things from one document to another; that method only works to copy elements within the same document. Rather, I have to use .getParagraphs()[].copy() to copy paragraphs and .getTables()[].copy() to copy tables from one document to another.

A very unhelpful and unintuitive error message, but it's sorted now.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Spencer