I have been asked to let this question be forwarded to this Forum by
As I do not understand the diffrences between workflows with Sharepoint and Azure I do as I am told.
My problem is as soon as I do a lookup towards a Task i come into a Suspended state.
What I do is looking at the dates of Created and Modified regarding the Task.
Or I look at the Created by and Modified By and compare them to see if the task has been claimed or not.
A flat lookup upon the document in question is no problem.
Please have a look at this problem and let me have your guidence.
regards Anders K
How are you looking up for the task? I mean which activities you are using for Looking up task, getting task properties? Once the workflow is in suspended state, you should get a correlation id in the status that you can use to find details in the ULS log file. Also you can debug the problem on workflow side by using different types of logs: http://ranaictiu-technicalblog.blogspot.com.au/2013/03/sharepoint-2013-workflow-debugdiagnosis.html
This is the Suspend state info I recieve.
It comes when I do a Lookup against a Task
Data Source-- WorkFlowTask --Created by ---Login Name--Id-- TaskId
RequestorId: c7ecea27-1ac4-87ee-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at Microsoft.Activities.Expressions.ParseNumber`1.Execute(CodeActivityContext context) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Can you see anything obvious?
- Edited by kohler49 Saturday, June 08, 2013 9:24 PM
Your workflow has some activity which expects or returns a numerical parameter.
However the activity gets a parameter of type string.
I have no idea, which activity is that, but I would recommend to find it and to change your parameter type from number (I think it is decimal) to string at least temporary to be able to execute the workflow.
After that you can investigate what is string value and why it cannot be parsed to Decimal.
The way you can debug the issue is to write in Workflow History. Try to write something in Workflow History after every possible activity and then find out which activity is the one you have problem. I usually use workflow History in SharePoint 2013 workflow to track workflow progress.