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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Debug PurchReqLineReview standard workflow to check the validations

(2) ShareShare
ReportReport
Posted on by 2,114
Hi Techies -
 
We are facing a strange issue while submitting the purchase requisition workflow.
Workflow - 'Purchase requisition line review' - Workflow type - 'PurchReqLineReview'.
 
Below is the condition to check the project group for the purch req line.
There are two Purch requisitions with same project group name 'INTERNAL'. but the below condition is returning true for one Purch Requisition and false for another Purch Requisition.
 
We need to debug and check this, where it is failing, has anyone debugged such workflow validations, your inputs would be helpful. Thanks in advance! Meanwhile we are checking the classes for the same.
 
Categories:
I have the same question (0)
  • Jonas "Jones" Melgaard Profile Picture
    4,988 Most Valuable Professional on at
    This is odd. Are you sure it's running the same version as the one you have attached as a screen shot?
     
    The first thing that comes to mind is to check the document query "PurchReqWFLineDocument" using a runnable class, and check the content of the ProjTable record. The ProjTable data source is attached to the requisition line, so I wonder if this is why it's not executing the condition as expected.
  • André Arnaud de Calavon Profile Picture
    301,141 Super User 2025 Season 2 on at
    Hi Sangram,

    Are these projects in the same legal entity? Note that the purchase requisitions is a global table and the projects not. Probably there is something wrong with the legal entity link to have the query know about the correct legal entity to search for the project details?
  • Sangram Shinde Profile Picture
    2,114 on at
    Thank you Jonas and Andre for responses - 
    Yes, it's the same version, I just ran workflow for two records and for one it has failed and other one it worked! Project group value for both different project Ids is 'INTERNAL'.
    Yes, both the projects are in same LE Andre.
  • Sangram Shinde Profile Picture
    2,114 on at
    Hi Jonas/Andre - 
     
    I have modified this query a bit PurchReqWFLineDocument to check what data it is pulling, and there is the issue traced, found two records with same project Id in two different companies including which I am running a workflow.
    It is considering gb11 record instead of gb01.
     

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans