Sunday, April 26, 2015

How to Publish AX Reports for a specific AOS Instance

If you are running multiple instances of AX on a single environment, you have more than likely gone through the instructions as per this URL http://technet.microsoft.com/en-us/library/hh389760.aspx.
One of the steps identified in this URL talks about publishing reports using the following AX Powershell command: publish-axreports.
What isn’t perhaps obvious from the examples shown on the Deploy reports to the new Reporting Services Instance [AX 2012] page is – How do I publish reports for a specific AOS instance? (The examples shown is for the default instance)

When you look at the full syntax of the Publish-AxReports powershell command:


You will notice two optional parameters that are of interest, namely:
  • ServicesAOSName
  • ServicesAOSWSDLPort

These two parameters are used to “tell” the Publish-AXReports powershell command, which AOS to connect to when publishing reports.
The syntax used for these two parameters are as follow:
  • ServicesAOSName
This parameter contains the name of the server that runs the AOS instance that you want to connect to e.g. AXServer

  • ServicesAOSWSDLPort
This parameter contains the WSDL Port number that has been setup for your AOS instance e.g. 8102

Now that we understand the syntax, the Publish-AXReports command would look like this:

Publish-AXReport –ReportName * -id AXSSRS –servicesAOSname AXServer –servicesAOSWSDLPort 8102
Note – If you are running the Publish-AxReport command using the –servicesAOSName parameter you’ll also need to specify the –servicesAOSWSDLPort. They are both required to ensure that command executes correctly.

1 comment:

Mohammad Shahnawaz said...

I am trying to deploy some of the standard ax 2012 r3 report, i am getting http 503 service unavailable error,
There are thousand of report, i am able to deploy but some selected report, i am trying to deploy, i am getting error of service unavailable - 503
It is very amazing, I have number of customer, i never got this kind of error in the past.
Please help me to come out of this issue.
Your prompt reply very much welcome

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...