Skip to main content

Notifications

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 ?

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Posting Sales order: Stack trace: Cannot run form on non interactive session.

    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.

  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: Posting Sales order: Stack trace: Cannot run form on non interactive session.

    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?

  • Suggested answer
    Deepak Agarwal Profile Picture
    Deepak Agarwal 8,566 on at
    RE: Posting Sales order: Stack trace: Cannot run form on non interactive session.

    Hi,

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

  • Samee Profile Picture
    Samee 10 on at
    RE: Posting Sales order: Stack trace: Cannot run form on non interactive session.

    Hi,

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

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Posting Sales order: Stack trace: Cannot run form on non interactive session.

    Hi Samee,

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

    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

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans