About this article
The intention of this article is to troubleshoot issue when inserting email elements or other types of assets using Templafy Library add-in for Outlook or another Office application (Excel/PowerPoint/Word).
Operation failed for the following document: error when inserting email elements and other assets
When inserting email elements or other assets from Templafy library you might encounter an error message: "Operation failed for the following document: .."
This happens, because Microsoft Office development projects require access to the Visual Basic for Applications (VBA) project system in Microsoft Office Word and Microsoft Office Excel, even though the projects do not use Visual Basic for Applications. Reference to Microsoft article here
To resolve this issue, make sure that "Microsoft VBA" add-in is enabled. If it is not available, reach out to your internal IT support team to request further assistance.