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

Community site session details

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

Print custom report after product receipt post successful not working

(0) ShareShare
ReportReport
Posted on by 625

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/257167/cannot-run-form-on-non-interactive-session


Similar to the post above, I have a custom report to print after product receipt is posted OK, there is a parameter to enable printing, if I printed together with the product receipt, it is printed OK. But if I want to print my custom report alone, then there is error : "Stack trace: Cannot run form on non interactive session"
my code extension is PurchPackingSlipJournalPrint after printLabels() method.

I wonder if I can have other place to call my custom report ? Or what should I do to change the non interactive session ? 

this is PurchPackingSlipJournalPrint

Args args = new Args();
MenuFunction menuFunction;
args.caller(this);
args.record(_record);
menuFunction = new MenuFunction(menuitemOutputStr(CustomReport), MenuItemType::Output);
if (menuFunction && menuFunction.checkAccessRights())
{
       menuFunction.run(args);
}
I have the same question (0)
  • tyhj Profile Picture
    625 on at
    RE: Print custom report after product receipt post successful not working

    Additional info: my custom report is extending SrsReportRunController, while PurchPackingSlip is using print management. Could this be the cause ?

  • tyhj Profile Picture
    625 on at
    RE: Print custom report after product receipt post successful not working

    Anybody had the same issue before ?

  • Suggested answer
    tyhj Profile Picture
    625 on at
    RE: Print custom report after product receipt post successful not working

    Solved it by extending also PurchFormLetterContract - isPrinting method

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,882

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 525 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans