In case anyone has the same problem here is the solution. Used the content stream versus the Doc object.//Attach documentsif (doc.dataObjects) { doc.dataObjects.forEach(function(attachment, i, a) { var contentStream = doc.getDataObjectContents(attachment.name); reportDoc.create...