Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

application 4011000 has exceed the limit of 50 cursors

Posted on by 200

Please advise how to resolve the error message saying "System Message 10065, Application 4011000 has exceed the limit of 50 cursor, please decrease the numbers of cursors in use by this application" in the shipping screen. and the program will quit from shipper screen.

*This post is locked for comments

  • Suggested answer
    Ram Peru Profile Picture
    Ram Peru 2,830 on at
    RE: application 4011000 has exceed the limit of 50 cursors

    Hello Aiman,

    You can use the SqlFree API function to close and de-allocate your cursor. Also you can go through the below link for the sample code.

    community.dynamics.com/.../145856.aspx

    Sample Code: Call Sqlfree(xxxxx)

    Strqry = "Select * From Inventory(NoLock) Where InvtID= " & SParm(Trim(InventoryId))

    serr1 = SqlFetch1(Csr_Temp, Strqry, bInventory)

    Call SqlFree(Csr_Temp)

    Hope this explains

  • Aiman Profile Picture
    Aiman 5 on at
    RE: application 4011000 has exceed the limit of 50 cursors

    Hi,

    Question, how do I close and deallocate my cursor? A simple piece of code will be perfect.

  • Philippe Boulos Profile Picture
    Philippe Boulos 330 on at
    Re: application 4011000 has exceed the limit of 50 cursors

    If you have any customizations where your are opening your own cursors, you will need to make sure you close and deallocate the cursor.

  • Nyan WinFanance Profile Picture
    Nyan WinFanance 200 on at
    Re: application 4011000 has exceed the limit of 50 cursors

    We did some customization but I am not sure we include VBA or BSL code. I do not have this probelems in SL version 6.5. It just happened in SL 2011. It is not always pop up in shipper screen. After several processing it just pop up the close the shiiper screen automatically. I get to go back and open the shipper screen again and keep on doint the same process. It is going on well until sometime later it pop up again and keep shut me out.

    Just saw in another communities forum, look like it is a bug and said it need to run hot fix. we already run it and haven't test yet. Hope it will go away. If it is only a few process it nothing happens, only when there are a lot of batches to process it happens.

    Nyan

  • Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: application 4011000 has exceed the limit of 50 cursors

    Have you added a customization which includes any VBA or BSL code ?

    If so, it is possible that your VBA/BSL code is causing this problem.

    Is this a new problem, or has the screen "always had the problem"?

    Barry

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans