Excellent, Michelle! Thanks for letting us know.
*Precisely Software Inc.
Original Message:
Sent: 05-02-2025 09:49
From: Michelle Briggs
Subject: Query Returns Number of Records But Won't Pull Data
Hi, Sigrid-
Removing the SPRAS joins fixed it.
Thanks so much for the help, and have a great weekend!
------------------------------
Michelle Briggs
KIK Holdco Company Inc
Original Message:
Sent: 05-01-2025 20:34
From: Sigrid Kok
Subject: Query Returns Number of Records But Won't Pull Data
Hi Michelle
That's quite a spider web of joins :) which I understand happens automatically. Nearly all joins are on key fields, which is great, except for the one non-key column condition record number, which you can't help. And I know condition tables can grow to be quite large, adding in the Material table which can also get large.
I'd suggest:
(1) not joining all of the SPRAS fields to each other in each table - you have conditions on each one already.
(2) since you go from MARA to A843, which I'm assuming is a custom condition table, that you join KAPPL in that table to the other tables - not also to each other.
Try that - have attached a slightly cleaned up example, but I cannot test it because I don't have your condition table.
(3) If that still hangs, try to drop the text tables T685T and TVKGGT and try again. if that works, add one of them and try again.
When I create queries, I start with one table with fields and conditions. Then I add another table with conditions and test, ensuring I'm getting data and no-duplicates. # Records is good but I do a preview of the first 100 matches. When that's good, I add the next one, and repeat. That usually helps me uncover missing conditions or incomplete/incorrect joins or system hangs. Sometimes the order in which you add the tables makes a difference, but not usually.
I hope that helps a little.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
*Precisely Software Inc.
Original Message:
Sent: 05-01-2025 13:31
From: Michelle Briggs
Subject: Query Returns Number of Records But Won't Pull Data
Hi, Sigrid-
I cannot do the preview run. It times out.
The record count shows 552 (which is correct), so I'm not sure where the disconnect lies.
------------------------------
Michelle Briggs
KIK Holdco Company Inc
Original Message:
Sent: 05-01-2025 13:25
From: Sigrid Kok
Subject: Query Returns Number of Records But Won't Pull Data
Hi Michelle
Can you do the preview run in Studio?
Also if the dataset is large, you can try to set Throttling and Chunking - settings are here in the documentation; https://help.precisely.com/r/t/1016755938/2023-12-31/Automate-Studio/Connect/Latest/en-US/Automate-Studio-with-Studio-Administrator-User-Guide/Run-settings-for-Query
Happy to look at the Query if you want to share it, as well.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
*Precisely Software Inc.
Original Message:
Sent: 04-30-2025 16:34
From: Michelle Briggs
Subject: Query Returns Number of Records But Won't Pull Data
Hi!
I have written a query that, when I check the number of entries, pulls the correct number. However, when I run the query, it times out and will not return the records.
Any suggestions as to what could be causing this?
------------------------------
Michelle Briggs
KIK Holdco Company Inc
------------------------------