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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Posting Sales order: Stack trace: Cannot run form on non interactive session.

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I am trying to print a custom document (SSRS report) at the end of the Packing slip posting, but facing this error

Posting Sales order: XXXXXX Stack trace: Cannot run form on non interactive session.

 

I don't know what makes D365 think its a non-interactive session, ideally user should get a dialogue where they can make printer selection like a normal SSRS report. 

Even if I set the parmShowDialog(false) in the code it still throw same error

How I can tell D365 its not a non-interactive session ?

I have the same question (0)
  • GirishS Profile Picture
    27,829 Moderator on at

    Hi Samee,

    Have you created custom DP - Contract class - Controller class or using standard?

    Thanks,

    Girish S.

  • Samee Profile Picture
    10 on at

    Hi,

    The SSRS report I am trying to print has a DP, contract and controller class.

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,602 on at

    Hi,

    on report dialog, are you trying to run this report in batch. Check the setting there. Try to print this on screen first.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    As you are saying custom document, can you help us with the information regarding all the customisation done for the same? Have you debugged the code from where the error is coming?

  • GirishS Profile Picture
    27,829 Moderator on at

    This error may be due to many reasons. Check whether the contract class have implemented the SysOperationValidatable class.

    Sometimes implementing the above class will throw error.

    Also check the printer settings. Is the report will show in the screen or it will download as file?

    Thanks,

    Girish S.

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 452 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 349 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans