We've created a PR workflow that integrates with GP Requisition Management features in SharePoint. We are having this problem. Everytime we submit a PR for approval it goes to the Requisition Administrator instead of the PR approvers. So the PR approvers never receive the PR to approve. What can be the problem?
Also we are getting an error:SubmitForApproval
Action:
SubmitForApproval
Current User LogOnName:
GTDOMAIN\mike.hamon
Input parameters:
<RequestObjects>
<ArrayOfBusinessObjectSubmissionInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<BusinessObjectSubmissionInformation>
<WorkflowName>PR Approval Workflow</WorkflowName>
<OriginalDueDays>4</OriginalDueDays>
<DueDays>4</DueDays>
<Comment />
<BusinessObjectKey>
<KeyParts>
<KeyPart xsi:type="KeyPartOfString">
<Name>DocumentID</Name>
<PartValue>REQ00000444 </PartValue>
</KeyPart>
</KeyParts>
</BusinessObjectKey>
</BusinessObjectSubmissionInformation>
</ArrayOfBusinessObjectSubmissionInformation>
<CompanyKey xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/dynamics/2006/01">
<Id>2</Id>
</CompanyKey></RequestObjects>
Exception type:
System.ArgumentException
Exception message:
Value does not fall within the expected range.
Stack Trace:
at Microsoft.SharePoint.SPListItemCollection.GetItemById(Int32 id)
at Microsoft.Dynamics.Workflow.WorkflowManager.CreateSPListItem(SPWeb web, BusinessObjectKey key, String originator, WorkflowAssociationKey wfAssocKey, SPList list, Boolean& noOp)
at Microsoft.Dynamics.Workflow.WorkflowManager.<>c__DisplayClassb.<SubmitForApproval>b__0()
at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Dynamics.Workflow.WorkflowManager.SubmitForApproval(Collection`1 submissions, OrganizationKey organizationKey)
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156