Equisys technical notes

Technical guidance, explanations and fixes for our products

FIX: Zetadocs Client side delivery fails when sending with additional attachments from SharePoint



This Zetadocs technical note applies to:

  • Zetadocs for NAV version 4.0 and later
  • Zetadocs delivery set for Client-Side delivery
  • Additional attachments coming from SharePoint


When using Zetadocs Client side delivery with a SharePoint attachment, the Send button displays an error pop up with the message ‘Error sending document’.

An additional error message can be seen in the Messages.

Also, the Archiving option in NAV for the Zetadocs document set is Disabled

It is always reproducible for the same type of documents.


When sending an additional attachment, the Client needs to download the SharePoint file before sending. Zetadocs process requires the SharePoint site string retrieve the credentials in the Windows Credential Manager.

A fault in the workflow means that the Site information is not passed from NAV to the Zetadocs Client when the Archiving option is disabled for the Document Type.


To fix the issue, the choice is to either:

-       Enable the Archiving option in the Document Set in NAV


-       Add the following Embedded command alongside the FileAttachment command in the Zetadocs-Send Customize codeunit (9009962):

o    file.AddCommand(STRSUBSTNO('%%[ArchiveFolder: sharepoint: <sharpoint site>, "Zetadocs"]'));

Warning: Having the ArchiveFolder command set twice, should it be from the default workflow with the Archive option and the additional embedded command will result in a failure.


This behaviour was addressed with the workaround detailed above.

Last updated: 7th February 2020 (CR) 

Keywords: Fail to send, Zetadocs, Attachment, Additional Attachment, Embeded command, Failed to download the file attachment, SharePoint file attachment

Equisys Logo, Document Management and Expense Management for Business Central

Replaced by script

ROI on expense management

Discover the return on investment you can benefit from by automating your expense management system, and download our infographic on the subject.

Read more