Skip to main content

Notifications

Announcements

No record found.

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans