rappen / FetchXMLBuilder

FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
https://fetchxmlbuilder.com/
GNU General Public License v3.0
133 stars 55 forks source link

Question to v. 1.2024.4.1 record count/page number #1041

Open jpvj opened 2 months ago

jpvj commented 2 months ago

Hi!

After the latest update, I get an "incorrect record count and pagenumber" (lower right corner).

The FetchXML is quite a simple: It reads all the records from the "account" table in CRM. I have pagesize=5000 and page=1. There are 7.181 records in the table.

When executing the query, the UI shows "Record: 5001-12181" and "Page 2". All 7.181 records are shown. The back arrow "<" is active, but does not change anything. Forward arrow ">" is inactive.

If I change pagesize to 1000 and run the query, the number of records changes to "Records: 7001-14181" If I change pagesize to 3000 and run the query, the number of records changes to "Records: 6001-13181"

I would have expected "Records: 1-[pagesize]" and "Page 1" being shown.

I did read the relaese notes, and cannot spot anything related to this, so I humbly reports this as a potential bug ;-)

Best regards from Denmark!

Jens-Peter

rappen commented 2 months ago

Oh my oh my... Well it seems that I didn't test enough. I'm a developer, I don't like to test... šŸ™„

I guess this is related to this error under "Internal": Using Rappen.XTB.Helpers for all RetrieveMultiple https://fetchxmlbuilder.com/releases/1-2024-4/#int

Thanks for the report! šŸ™

jpvj commented 2 months ago

He-heā€¦

ā€It compiles and works as implemented ā€“ ship it!ā€ šŸ˜‰

I have no idea what the internal note means ā€“ but I trust you if you say itā€™s the culprit!

You are welcome ā€“ I always try to report errors and provide ā€œsteps to reproduceā€. Thatā€™s the only way to help developers fix bugs.

Best regards,

JP

PS: Enjoy your coffeeā€¦