web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Purchase Requisition Workflow -- need help urgently

(0) ShareShare
ReportReport
Posted on by 5

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

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans