I need help with what Iโm doing wrong. I have a report right now that sets a โstatusโ column to โrunโ when I hit an action. that triggers a workflow to email a document. I copied that whole thing and am now attempting to change the attachment template to email every row in the table. So far, the emailing only works when no start expression is added. I tried following the documentation and tried this: <Start:C19[Unique_ID]> with no luck. What is the correct expression to use to export the entire table?
Firstly read this:
And yet, please do clarify:
<<Start>><<End>>
expression in the template?Hi there, sorry for the long post.
I read the documentation and tried searching through the community questions before asking.
Can you post a screenshot from your PDF template? Provided you havenโt specified any template variables in between the <<Start>>
and <<End>>
itโs so normal that you donโt receive anything. Also please post a screenshot from your worfklow setup. Thnx.
Alright, I stripped my template down and slowly added stuff back in to see what was causing the issue. Now the
Unfortunately, that just returned the same error:
Error:
โJeenee.DataTypes.SpreadsheetException: An exception occurred during a WebClient request. โ The HTML to PDF conversion web service failed to convert the HTML document to PDF for application โPaulusApp-770529 (f59e0b87-e262-4bdc-8856-3f003dbd1dc9)โ despite 3 retries due to: An exception occurred during a WebClient request. โ> System.Net.WebException: An exception occurred during a WebClient request. โ> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. โ> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host\r\n at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)\r\n โ End of inner exception stack trace โ\r\n at System.Net.ConnectStream.Read(Byte buffer, Int32 offset, Int32 size)\r\n at System.Net.WebClient.DownloadBitsState.RetrieveBytes(Int32& bytesRetrieved)\r\n at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp)\r\n at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)\r\n โ End of inner exception stack trace โ\r\n at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n โ End of inner exception stack trace โ\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.PDFEncoder.Encode(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.WorkflowActionResultEmail.<>c__DisplayClass68_0.b__0()โ
I want to say that that error comes up when the template file is not shared with the proper account. Try to make it publicly viewable and see if it changes. I could be completely wrong thoughโฆ
But regardless, that error doesnโt tell us much. There should be an error somewhere else thatโll actually say what the issue it. Like:
โErrorsโ: โError: Workflow rule โlongtext testโ action โAction 1โ Attachment template. Expression โ[blah blah]โ is invalid due to: Unable to find column โblah blahโ. Error: Workflow rule โlongtext testโ action โAction 1โ Attachment template. Start expression โ[blah blah]โ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โKeyโ column of the referenced table. Error: Workflow rule โlongtext testโ action โAction 1โ Body template. Expression โ[blah blah]โ is invalid due to: Unable to find column โblah blahโ. Error: Workflow rule โlongtext testโ action โAction 1โ Body template. Start expression โ[blah blah]โ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โKeyโ column of the referenced table.โ,
Which I got from here:
You can also try to use the โTestโ button on the workflow, then โSendโ on one record from the following screen, and if there is any error in the template it should show a pop-up with the error.
@Austin_Nunns
May I ask where your workflow template doc is? Under your own account (which the app is currently)?
User | Count |
---|---|
16 | |
13 | |
8 | |
7 | |
4 |