Skip to Content
0
Former Member
Aug 05, 2009 at 09:36 AM

Error on RetrieveWorkflowTasksCommand with .NET API

21 Views

Hi Guys,

I am trying to get a list of Recieved workflow items using the .NET API and c#, the following lines of code work.

RetrieveWorkflowTasksCommand rwfWaitingWorkFlows = new RetrieveWorkflowTasksCommand(uscMDMUser);

rwfWaitingWorkFlows.TaskType = com.sap.mdm.workflow.Type_Fields.AVAILABLE;

rwfWaitingWorkFlows.execute();

WorkflowTask[] myMDMWorflows = rwfWaitingWorkFlows.WorkflowTasks;

When I try to get workflows of TYPE RECIEVED using the following code with only one change

RetrieveWorkflowTasksCommand rwfWaitingWorkFlows = new RetrieveWorkflowTasksCommand(uscMDMUser);

rwfWaitingWorkFlows.TaskType = com.sap.mdm.workflow.Type_Fields.RECEIVED;

rwfWaitingWorkFlows.execute();

myMDMWorflows = rwfWaitingWorkFlows.WorkflowTasks;

I get the following strange error

Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks

This seems to be something to do with an internal C# parameter... and there is no place that I can find to specify some sort of daytime with the commands used above..

Is this a bug in the API?

Thanks,

Robert