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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error while deploying report

(0) ShareShare
ReportReport
Posted on by

I am trying to deploy reports in Dynamics 365. But getting error  "A positional parameter cannot be found that accepts argument '.\DeployAllReportsToSsrs.ps1'."Report-deploy-error.JPG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Richa,

    You have incorrect syntax of a command. PS command is an alias for get-process command. So instead of typing "PS C:\...."

    you need to first change current directory using "cd" and then execute "DeployAllReportsToSsrs.ps1". Not AX related question tho.

  • Community Member Profile Picture
    on at

    Thanks for reply ! After changing current directory I execute "DeployAllReportsToSsrs.ps1" but getting below error.

    Get-ItemProperty : Property BinDir does not exist at path 

    Report-deploy-error1.JPG

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    You need to add next -PackageInstallLocation "J:\AosService\PackagesLocalDirectory". Please check drive for PackagesLocalDirectory folder it could be not J in your installation.

    So command will look like .\DeployAllReportsToSSRS.ps1 -PackageInstallLocation "J:\AosService\PackagesLocalDirectory"

  • Community Member Profile Picture
    on at

    I have tried the above syntax. But now getting write exception error.

    Report-deploy-error3.JPG

  • Mea_ Profile Picture
    60,284 on at

    Now you need to go to ssrs logs and see what is wrong. But have you checked that it is up and running ? Are you able to print a report from AX ?

  • Community Member Profile Picture
    on at

    I have checked the log.

    Below are the details:-

    Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: , Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

  • Mea_ Profile Picture
    60,284 on at

    Have not seen this before. You did not answer on my other question and probably you need to tell us more about your environment is it Azure hosted or VM, what is the version ? Also does it work if you deploy report from VS ?

  • Community Member Profile Picture
    on at

    It's VM. It doesn't deploy reports from VS.  We are using Platform Update 3.

  • Mea_ Profile Picture
    60,284 on at

    Ok, what about SSRS service, is it running ?

  • Verified answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    your problem now as per below 'The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

    so try to check with another user

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans