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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

* FILTER and FINDSET result

(0) ShareShare
ReportReport
Posted on by

I found something and i dont understand why does it works this way.

I have a global record(Item) variable and i set PK filter from code using * filter:

gRecItem.SETFILTER(gRecItem."No.", 'mr*');

IF gRecItem.FINDSET THEN BEGIN

REPEAT

{code here}

UNTIL gRecItem.NEXT = 0;

END;

The configurable number used to 100. (File | Database | Alter... | Advanced | Caching | Record Set)

It returns only 100 records wich is not equal with gRecItem.COUNT. It should returns more than 100 records!

If is use FIND('-') instead of FINDSET than number of result is correct equals with gRecItem.COUNT.

If i use another filter format instead of * with FINDSET than it returns correct number of result to.

Its only bat with PK + Filter(*) + FINDSET(cycle).

Why is that? Why should i use another find format to get the expected number of records or another filter format?

Cache size limit activated only with * filter otherwise no.

Please help me to understand it.

*This post is locked for comments

I have the same question (0)
  • tothszabolcs Profile Picture
    on at

    UPDATE:

    This anomaly is only in NAV 5.0 SP1!

    In 2009 R2 (6.00.32012) PK filter with Wild Card and FINDSET gives correct results!

    Its might be a BUG in NAV 5.0 SP1!

  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    yes,

    a bug i think, on build before 30623.

    Update 0.53 build 30623

    "The FINDSET function may return an incomplete record set, depending on the size of the caching Record Set configuration setting in the Microsoft Dynamics NAV client that uses the Microsoft SQL Server database"

    Platform updates overview - 3.70.B - NAV2009 SP1 (UPDATED 5)

    dynamicsuser.net/.../platform-updates-overview-3-70-b-nav2009-sp1-updated-5.aspx

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans