Client callbacks are not supported on Microsoft Dynamics NAV

Hi everyone,

I am trying to run a codeunit through a job queue.
The codeunit enables to send notifications to employees via mail using the function NewMessage in codeunit 397.

I am having the following error:

Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object:
Microsoft.Dynamics.Nav.Integration.Office.Outlook.OutlookMessage (CodeUnit 397 Mail).
Client callbacks are not supported on Microsoft Dynamics NAV.

What can I do to fix it?

Please check f outlook is properly installed on the computer that you are running the jobs also configure a admin user with outlook.

Anil.

Which version of NAV is this?

I’ve the same problem in NAV2013. I’ve created a codeunit which uses the DotNet variabele below to send e-mails:

Microsoft.Dynamics.Nav.Integration.Office.Outlook.IOutlookMessage.‘Microsoft.Dynamics.Nav.Integration.Office, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

Propertie ‘RunOnClient’ has the value ‘No’.

When I want to run de codeunit through a job queue I get the error

Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object:
Microsoft.Dynamics.Nav.Integration.Office.Outlook.OutlookMessage (CodeUnit 50000 test html mail).
Client callbacks are not supported on Microsoft Dynamics NAV.

What can I do to fix it?

Did you try by setting

Propertie ‘RunOnClient’ to ‘yes’.

Hello,

Did anyone find a solution for this? I’m experiencing the same problem.

Best Regards

Emil