Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

System.OutOfMemory Exception - Web Services NAV 2009 R2

Posted on by 20

We are using NAV Web Services to export a large dataset. This service exposes an XMLPort which contains 7 elements.

The dataset comprises of 350,000 records and when exporting this out via the client creates a file of about 140MB.

Recently when calling this it has caused the NAV server service to crash with a System.OutOfMemory exception. The server that this runs on has plenty of resources, but I am lead to believe that the OutOfMemory exception is not always related to physical resources anyway.

Has anyone else had this issue?

Could it be related to the large dataset that is trying to be sent via the SOAP message?

Any suggestions gratefully received.

Thanks.

Pf79

*This post is locked for comments

  • Verified answer
    pf79 Profile Picture
    pf79 20 on at
    RE: System.OutOfMemory Exception - Web Services NAV 2009 R2

    I have now fixed this issue.

    Turns out that the server infrastructure was only a 32bit instance of server 2008. When the export was called the service wanted to consume more than 1.3GB of RAM, which the OS would not allow.

    Made a change to the server to allow services to consume more than this limit on RAM.

    All working now,

    Pf79

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Liquid error: parsing "/forums/thread/details/?threadid=b234b59e-14e7-48f5-ab55-1abe873e6724%27nvOpzp;%20AND%201=1%20OR%20(%3C%27%22%3EiKO))," - Too many )'s.