Notifications
Announcements
No record found.
I am trying to deploy reports in Dynamics 365. But getting error "A positional parameter cannot be found that accepts argument '.\DeployAllReportsToSsrs.ps1'."
*This post is locked for comments
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.
Thanks for reply ! After changing current directory I execute "DeployAllReportsToSsrs.ps1" but getting below error.
Get-ItemProperty : Property BinDir does not exist at path
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"
I have tried the above syntax. But now getting write exception error.
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 ?
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'.
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 ?
It's VM. It doesn't deploy reports from VS. We are using Platform Update 3.
Ok, what about SSRS service, is it running ?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2