Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Fetch buffer size error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm attempting to port a BSL screen customization to VBA due to a recent Windows Security Update has broken the BSL screen in the Form_load event for some reason.

After moving the code into a new customization and running the screen, I'm getting an error 10202 'The application fetch buffer size is less thatn the cursor select statement requires'.

I've validated that the type declaration passed to the cursor creation function (SQLCursorEx) has all the fields from the table (execpt timestamp), and that the sizes and types are correct. There is only one record in the table being pulled by the cursor.

If I add a 'String * 209' member to the end of the type declaration the problem goes away, and in the debugger I can see that the record loads correctly into the typed variable and that the last 209 characters are non-printable, probably NULLS. Not coincidentally, a query of information_schema.columns for this table shows that the size of an empty record in the table is 209 characters. It seems likes the cursor is pulling an additional NULL record that doesn't actually exist in the DB.

Even with this hack in place, I get a SQLReadOnly flag is set on a subsequent SUpate1 call using that cursor, even though the cursor declaration correctly lists the table to be udpated in the UpdateName parameter. I'm sure this is due to the fact that the fetch isn't really working properly.

Does anyone have any ideas as to why this issue is occuring? Thanks.

Dan

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Fetch buffer size error

    thanks for the information. I gave up on the project, so won't be able to see if this would solve the problem, but will keep it in mind for next time.

     

    Dan

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Fetch buffer size error

    I was having a similar issue it ended up being that in my fetch1 statement I was using "len(bxcustomer)" and it needed "lenB(bxcustomer)"

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans