Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

The server ... was unable to process the request

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear forum members,

Currently I'm experiencing an issue with my Dynamics NAV environment. Every few weeks I get the following error message:

The server "Dyn_NAV" was unable to process the request. The application will close.

It always happens in the following situation. I've imported a PDF with incoming documents. I've created a purchase invoice with the button 'Create Manually'. In the proces of filling in the purchase invoice the error message appears and my NAV session is closed. If I open up NAV again, I can do most things in NAV except opening a purchase invoice. If I try to open a purchase invoice, NAV closes again with the mentioned error message. This keeps happening until we stop and start the NAV services which can only take place before or after regular business hours.

Can anybody tell me why this issue occurs? How I can prevent it from happening? And if it happens, how I can solve it during business hours without hindering other users?

Thanks in advance.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    Furthermore I don't know which codeunit is used. So I have no idea how to check for any customization there.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    I looked in the Developer and the checkbox with modify isn't checked so the page doesn't seem to have any customization's.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    Since you cant open the invoice page until you restart the service, and also since the error says unable to process request, it can be a loop problem i believe. It seems that its trying to import the same doc again and again. I think you might have customization on the page/codeunit.

    You also mention that users beside you can use to same functionality without any errors, so maybe that can be a good idea to check every single thing in their PDF with yours to compare, and also the way that they create this doc.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,614 on at
    RE: The server ... was unable to process the request

    It looks like there is a customization on the page in the OnAfterGetCurrRecord which is causing loop, check for any customizations on the page.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    Thank you all for your feedback.

    Some more information. This problem only occurs with my user. Other users are able to use 'Incoming Document' and upload new purchase invoices. Furthermore they can also open the purchase invoices I made. For me both opening purchase invoices and purchase orders will crash NAV. If I open a blanked purchase order, NAV doesn't crash.

    When the crash occurs we see 5 error messages in the event viewer. The first message is:

    Server instance: DynamicsNAV

    Tenant ID: <ii>default</ii>

    <ii>Session type: RoleTailoredClient

    Session ID: 58374

    User: Gert-Jan

    Type: System.InvalidOperationException

    Message: <ii>An internal error has occurred. Cannot assign a scope id. The maximum number of methods for 5 1854 has been exceeded.</ii>

    StackTrace:    at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)

    Source: Microsoft.Dynamics.Nav.Ncl

    HResult: -2146233079

    ----------------------------------

    Type: System.Reflection.TargetInvocationException

    Message: <ii>Exception has been thrown by the target of an invocation.</ii>

    StackTrace:

        at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

        at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

        at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

        at Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(ITreeObject obj, String methodName, Object[] args)

    Source: mscorlib

    HResult: -2146232828

    ----------------------------------

    Type: System.InvalidOperationException

    Message: <ii>An internal error has occurred. Cannot assign a scope id. The maximum number of methods for 5 1854 has been exceeded.</ii>

    StackTrace:

        at Microsoft.Dynamics.Nav.Runtime.ALCodeEnvironment.GetOrAssignScopeId(ApplicationObjectId objectId, IRawScopeIdProvider scopeIdProvider, Boolean setBreakpointFlag)

        at Microsoft.Dynamics.Nav.Runtime.CallStackElement..ctor(NavMethodScope scope)

        at Microsoft.Dynamics.Nav.Runtime.NavSession.BuildCurrentStack()

        at Microsoft.Dynamics.Nav.Runtime.NavSession.set_LastException(Exception value)

        at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.ProcessException(Exception exception)

        at Filter.InvokeWithFilter(NavMethodScope )

     --- End of stack trace from previous location where exception was thrown ---

        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

        at Microsoft.Dynamics.Nav.EventSubscription.NavEventScope.CallEventSubscriber(NavEventSubscription subscriber, NavApplicationObjectBase subscriberInstance, Object[] parameters)

        at Microsoft.Dynamics.Nav.EventSubscription.NavEventScope.ProcessCallToTypeAndManualSubscriptions(NavApplicationObjectBase callerApplicationObject, NavEventSubscription[] subscriptions, PrepareParametersCallBack prepareParameters)

        at Microsoft.Dynamics.Nav.EventSubscription.NavEventScope.ProcessCallToAllSubscribers(NavApplicationObjectBase callerApplicationObject, PrepareParametersCallBack prepareParameters)

        at Microsoft.Dynamics.Nav.EventSubscription.NavPageTriggerEventHandler.OnAfterGetCurrRecordEvent(NavForm page, INavRecordHandle rec)

        at Microsoft.Dynamics.Nav.Runtime.NavForm.RaiseTriggerEvent(NavTriggerEventType eventType, Action action)

        at Microsoft.Dynamics.Nav.Runtime.NavForm.RaiseOnAfterGetCurrRecord()

        at Microsoft.Dynamics.Nav.Runtime.NavForm.AfterGetCurrRecord()

    Source: Microsoft.Dynamics.Nav.Ncl

    HResult: -2146233079

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,614 on at
    RE: The server ... was unable to process the request

    Check your event viewer and let us know what error message you see when this happens.

  • ManishS Profile Picture
    ManishS 78 on at
    RE: The server ... was unable to process the request

    Gert-Jan,

    As you wrote other user are able to open purchase invoice, but has any user imported a PDF with incoming documents and then clicked Create Manually button.

    Is it for only a specific invoice or for all other invoice without incoming document.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    Dear Manish R Sharma,

    There is a profile assigned to me. If I remove the profile the problem doesn't go away.

    We already tried to delete the user personalization a previous time without any results. I'm not really happy with trying it again, because I have to setup everything again. Furthermore doing this a few times per month isn't a workable solution. I rather wait a day and restart everything during the night.

    It looks like my user is locked for certain tables and this results in an error when trying to open a page based on those tables. When restarting all services the lock is gone or at least my issue is gone.

    Kind regards

  • ManishS Profile Picture
    ManishS 78 on at
    RE: The server ... was unable to process the request

    Have you been assigned any profiles ?

    Try to delete the user personalization from your user id.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The server ... was unable to process the request

    Thanks for your feedback. It's appreciated.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans