Skip to main content
Nintex Community Menu Bar

Send Notification Fails to Create PDF

  • February 20, 2020
  • 3 replies
  • 18 views

Forum|alt.badge.img+1

I created a Nintex workflow with a Send Notification that should include a PDF copy of a letter from the SharePoint list.  The letter was created with JungleDocs.  

The email sends but the PDF isn't attached. It's just an error file.

This is what I have in the Nintex Send Notification attachment link -  the URL from SharePoint and then I selected "urlPath" from the "Workflow Variables".  By default "Existing SharePoint Content" is checked.

This is the error that is included on the attachment in the email:

Error attaching file from https://(our internal SP URL).org.
System.InvalidOperationException: Unable to retrieve file. Is the attachment URL valid? ---> System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
at Nintex.Workflow.HumanApproval.MessageAttachment.GetAsMailAttachment(String processedSource, String processedFileName, INWWorkflowContext context)
--- End of inner exception stack trace ---
at Nintex.Workflow.HumanApproval.MessageAttachment.GetAsMailAttachment(String processedSource, String processedFileName, INWWorkflowContext context)

3 replies

Forum|alt.badge.img+8
  • Novice
  • February 21, 2020

Hi,

seems like your workflow is not running on your pdf file, therefore the urlPath is not pointing to the file.

If your pdf is attached to the item the workflow is running on, you can tick "include list item attachments" in your send notification action


Forum|alt.badge.img+1
  • Author
  • Nintex Partner
  • February 21, 2020

Thank you.  It's not actually a PDF from the SharePoint source list.  It's a PDF that is generated when an item is created in the list. 


Forum|alt.badge.img+8
  • Novice
  • February 24, 2020

Okay and your workflow variable "urlPath" sure contains the correct path to your pdf?

Maybe it´s an issue with versioning? Is the created pdf published as major version?