DisplayHyperlink Error
I have a workflow that is using a template report. The workflow runs correctly all the way to the final step of 'DisplayHyperlink'. I get the following error:
"Workflow Unloaded
<Event Timestamp="2015-02-09T09:28:37.6019454-06:00" Level="ERROR"><Message>Unable to serialize object: Parameter is not valid.</Message></Event>
Workflow Aborted
Error: Aborted exception: 'Parameter is not valid.'.
Parameter is not valid.'
However, when I am in the Workflow Simulator and click the 'Advanced View' tab, I can see the hyperlink string:
" {
"isRequired": false,
"name": "Uri",
"typeName": "System.String, mscorlib",
"runtimeTypeName": "System.String, mscorlib",
"value": "https://MYSERVER/Geocortex/Essentials/WOPR/REST/TempFiles/PlowPhoto.pdf?guid=4fdeecdd-d097-4f37-af1a-9631af73280b&contentType=application%2Fpdf"
}"
When I copy the URL into a browser, it opens without a problem. I have confirmed my temporary file location exists and works as I have used it for other workflows without issue.
Here is how my DisplayHyperlink tool is configured:
/customer/servlet/servlet.FileDownload?file=00P6000000em1kJEAQ
hyperlinkUri is a STRING variable with the correct Temp folder location
strIDNUM is a STRING variable
Does anyone have thoughts as to why this is throwing an error?
-
Hi Mark,
I would check the scope of your report activity. There's probably some object within the scope of your report sequence that can't be serialized when the server passes everything to the client.
-Warren
0 -
Warren,
I've checked all my variables and their scope is correct. Since this is my first draft of this workflow, I've only have a few tools running in the Flowchart. I am trying to add a .jpg file from one of our local cloud servers to a report template. Could that be the issue? Here is my sequence to create the report:
/customer/servlet/servlet.FileDownload?file=00P6000000eltjwEAA
0 -
Hi Mark,
Just to clarify my earlier thoughts on the scope issue, could you just confirm that your dataSet and dataTable1 variables are not exposed at the Flowchart level? I did a little searching and found several references to this being an issue (https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=20&thread=46472)
Warren
0 -
Warren,
They were at the Flowchart level. However, when I moved them to the 'Add Photo Sequence' scope it still failed with the same error. (I renamed the sequence so I didn't confuse them with another sequence). Here are my variables:
/customer/servlet/servlet.FileDownload?file=00P6000000elzcBEAQ
0 -
Hi Mark,
I would recommend doing the same with your bitmap and dictionary variables and move them inside your Add Photo sequence since they aren't needed outside of that scope.
Warren
0 -
That did it Warren. As always...you're the man! Thanks.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare