我正在尝试与谷歌文档和表格执行邮件合并,这是我项目的链接。https://github.com/EyadZaeim/MDS
但是,我一直遇到这个错误
<HttpError 400 when requesting https://docs.googleapis.com/v1/documents/1ON3u_SSf33ow-AkzAf01yMl0RrgXIdUT:batchUpdate?fields=&alt=json returned "This operation is not supported for this document". Details: "This operation is not supported for this document">
File "C:\Users\BAU\Desktop\MDS\Merge.py", line 100, in merge_template
documentId=copy_id, fields='').execute()
File "C:\Users\BAU\Desktop\MDS\Merge.py", line 132, in <module>
i+1, merge_template(DOCS_FILE_ID, SOURCE, DRIVE))) ```
in this line ``` # send requests to Docs API to do actual merge
DOCS.documents().batchUpdate(body={'requests': reqs},
documentId=copy_id, fields='').execute()
return copy_id ```
what can i do ? thank you so much