Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Nested Query limit
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
John Bonin
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5270
People Online:
Visitors:
456
Members:
0
Total:
456
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Nested Query limit
Please
login
to post a reply.
7 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
ThomasT
Advanced Member
Posts: 27
12/6/2010 7:47 PM
Trying to see if anyone else can confirm.
I am writing a new pflow with a total of 4 queries, with each nested within the other.
It appears that the 4th one, deepest imbedded is not being executed at all. I've looked over the flow carefully.
Is this correct? Is there a limit on the number of nested queries in processflow?
Thanks
David Williams
Veteran Member
Posts: 1127
12/6/2010 8:17 PM
Split
I can't think of a need to do 4 nested queries. Have you tried using the Related tables within the API (query) Builder to get to the related tables and fields?
Jason Beard
Veteran Member
Posts: 124
12/7/2010 11:43 AM
Split
Thomas,
just so it's clear, you basically have 4 dme queries, each building off of data from the prior one and the innermost query is not executing, correct? What does the log file show? Does it list that activity ID at all?
I have several flows that have 2/3 loops with multiple queries being run in the innermost loop but nothing with 4.
To David's point, is there a more efficient way to retrieve the data? If a relationship isn't delivered by Lawson, is it something that could be added? Obviously understanding that Lawson may not enforce that relational integrity but if it is "always true" for your site, or you are dealing with custom tables this could be an option. You could also build your select into a view in the DB and then define that view to Lawson so it is accessible via dme. Or if you have PFI, you could build the select via an SQL statement.
--Jason
ThomasT
Advanced Member
Posts: 27
12/7/2010 5:40 PM
Split
No, it's a complex query... from the app productline to tables in LOGAN,... specifically in WF.
With 4 queries, the log file only shows 3 queries being executed. Not good.
I got it down to 3 queries and it seems to be working ok.
Sam Simpson
Veteran Member
Posts: 239
12/7/2010 6:55 PM
Split
I have a flow that has more than 5 nested DMEs deep and has no problem. This flow is about changes to cost centers which is very involved from LDAP to GL tables.
Shane Jones
Veteran Member
Posts: 460
2/27/2011 11:15 AM
Split
Sounds like this does not need a resolution anymore but I thought I would add this for someone who might want a creative solution in the future....
Use a message builder to create a string listing the "select" statement part of a DME or SQL query. Each time it hits the msgbuilder add EMPLOYEE=#####. I am using this in a very complex flow that creates a CSV file to track associate licensing.
I am using with an SQL query and had to hit the msgbuilder variable twice within the node to add a comma if another record was being added.
John Henley
Posts: 3351
2/27/2011 3:01 PM
Split
Do you ever hit (or are you aware of) a max length with the msg builder? When doing loops, have you ever benchmarked it vs. an assign to a javascript variable?=
Shane Jones
Veteran Member
Posts: 460
3/1/2011 3:06 AM
Split
I have a couple flows that notify at 250 characters but it is just a notification.... I have a couple flows that create some extremely large msg builders without any issues....
Please
login
to post a reply.