Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

AX 2012 - SSRS - Permission denied setting the framework parameter AX_UserContext. This parameter must be null.

Posted on by 960

Hi all,

We are getting error when running a report in batch however when we are running in interactive mode , it is working fine.

This error is across all reports .

we are using AX 2012 R3 CU8 and SQL server 2015.

below is the error :

Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'VendBaseDataDS'. ---> System.Security.SecurityException: Permission denied setting the framework parameter AX_UserContext. This parameter must be null.
at Microsoft.Dynamics.Framework.Reports.ServerSessionManager.ValidatePermissionToRunAs(String axUserId)

  • Suggested answer
    RE: AX 2012 - SSRS - Permission denied setting the framework parameter AX_UserContext. This parameter must be null.

    i agree that you can test on later build.  See if you get more detailed errors in the Report server logs. Manually check that the report parameters haven't been changed. From the error it sounds like you are calling it with AX_UserContext??

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: AX 2012 - SSRS - Permission denied setting the framework parameter AX_UserContext. This parameter must be null.

    Hi Gaurav,

    AX 2012 R3 with CU8 is an older version. Try to update the kernel of the AOS servers and the client to the latest available and see if the error is still there or gone. You can do this on a separate test environment first.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans