InvalidRepresentationException on transition out via deletion
I have a workflow activity tied the transitioning out of a set.. (it’s a Function evaluator activity that changes a Boolean value for the workflow target) Which works fine except in cases when the user transitions out by means of the object being deleted. When the user is deleted, all activities fail with.. EXCEPTION DATA MESSAGE: Microsoft.ResourceManagement.WebServices.Exceptions.InvalidRepresentationException: Exception of type 'Microsoft.ResourceManagement.WebServices.Exceptions.InvalidRepresentationException' was thrown. at Microsoft.ResourceManagement.Utilities.ExceptionManager.ThrowException(Exception exception) at Microsoft.ResourceManagement.Data.Exception.DataAccessExceptionManager.ThrowException(SqlException innerException) at Microsoft.ResourceManagement.Data.DataAccess.ProcessRequest(RequestType request) at Microsoft.ResourceManagement.ActionProcessor.ActionDispatcher.ProcessInputRequest(RequestType request) at Microsoft.ResourceManagement.WebServices.RequestDispatcher.ExecuteAction(RequestType request) at Microsoft.ResourceManagement.WebServices.RequestDispatcher.ExecuteAction[ResponseBodyType](RequestType request) at Microsoft.ResourceManagement.WebServices.RequestDispatcher.DispatchRequest[ResponseBodyType](RequestType request, Guid requestIdentifier, Object redispatchSingleInstanceKey, Boolean isRedispatch) at Microsoft.ResourceManagement.WebServices.RequestDispatcher.DispatchRequest[ResponseBodyType](RequestType request) at Microsoft.ResourceManagement.Workflow.Hosting.RequestWorkItemProcessor.DispatchRequest[TResponseType](RequestType request) at Microsoft.ResourceManagement.Workflow.Hosting.RequestWorkItemProcessor.ProcessPutWorkItem(UpdateRequestWorkItem updateWorkItem) at Microsoft.ResourceManagement.Workflow.Hosting.RequestWorkItemProcessor.ProcessWorkItem(WorkItem workItem)\r\n\r\n **METHOD:Void FunctionActivityStoreResultComplete(System.Object, System.Workflow.ComponentModel.QueueEventArgs)\r\n\r\n **METHOD:Boolean Run(System.Workflow.ComponentModel.IWorkflowCoreRuntime)\r\n\r\n **METHOD:Void Run()INNER EXCEPTION DATA It doesn't really cause a problem, since updating a user's attribute as they are being deleted is a non-issue Any cleaner way to work this? Having failed requests and event log entries just doesn't look good :)
May 24th, 2011 7:53pm

change your MPR from Transition Out to normal one watching an attribute change and having 2 sets: "before" - the one you use for Transition Out, "after" - something different. you might need to create this second set like 'Resource ID is not in FirstSet' on object deletion event this MPR will not fire as the second set will not contain deleted object anymore.
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2011 3:01am

Yes, I see your point. Good idea. I'll see how I can incorporate that idea into sets that users may not transition out of while the object still exists.
May 25th, 2011 3:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics