Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

NullReferenceException - TaskStatus [Sequential SharePoint Workflow]

$
0
0

I am creating a SharePoint sequential workflow using a task. When I am running the workflow, I am able to go to the task list on item creation and then change the status to "Completed". After changing the status and saving it. I am facing a NullReferenceException for

string taskStatus = task1AfterProperties.ExtendedProperties[TaskStatusFieldId].ToString();

For declaring the TaskStatusFieldId, I have used these two GUIDs.

publicGuidTaskStatusFieldId=newGuid("c15b34c3-ce7d-490a-b133-3f4de8801b76");publicGuidTaskStatusFieldId=newGuid("73A146C9-1DF7-4FC1-8E9E-4E7F412F6E3B");

Even then I am facing the same exception. Can any one please help me out as where I made a mistake and how to resolve it.




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>