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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

The server-side impersonated (RunAs) session tried to invoke a method that is available for client-side processing only.

(0) ShareShare
ReportReport
Posted on by

Hi,

Please help me with this issue while trying to retreive batch job history "Workflow message processing" batch job.

The error i'm getting is:

The server-side impersonated (RunAs) session tried to invoke a method that is available for client-side processing only.

(S)\Classes\PurchLineType\SARUpdatedApprovedOrder - line 9 (S)\Classes\PurchLineType\update - line 159 (S)\Data Dictionary\Tables\PurchLine\Methods\update - line 22 (S)\Classes\ASA_PurchOrder_Approval_EH\completed - line 18 (S)\Classes\SysWorkflowEventDispatcher\raiseElementEvent - line 96 (S)\Classes\SysWorkflowEventDispatcher\onElementCompleted - line 108 (S)\Classes\DictClass\callStatic (S)\Classes\SysWorkflowHelper\workflowRunAs - line 22 (S)\Classes\SysWorkflowEventDispatcher\dispatch - line 140 (S)\Classes\SysWorkflowMessageQueueTask\run - line 9 (S)\Classes\BatchRun\runJobStatic - line 63.

 

Regards,

Lakshmi.ch

*This post is locked for comments

I have the same question (0)
  • PA-22040759-0 Profile Picture
    6,194 on at

    The code in \Classes\PurchLineType\SARUpdatedApprovedOrder must be trying to run code marked for Client execution.

    This could be something like trying to show af dialog.

    Could you disclose the content of that method? It doesn't seem to be a standard method.

  • Community Member Profile Picture
    on at

    Hi,

    Thank u for your reply.

    But if i comment the code in the suggested method won't that effect the other workflows?

  • PA-22040759-0 Profile Picture
    6,194 on at

    Hi,

    If you just comment out code it is likely to have impact on something else. I cannot be more precise without seeing the code.

    But in any case you need to change the code using Client features. Maybe you can change your code to check if it runs in batch and then do something else for that part of the code.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans