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)

Reports not showing: Target principal name is incorrect

(0) ShareShare
ReportReport
Posted on by 190

We have the current situation:

Domain: Domain.intra

Servers: srv1 and srv2

srv1 is SQL 2008R2 + reporting/analysis/reporting services

srv2 is Dynamics 2012 AOS (Latest hotfix)

There is a service account for SQL: domain\sqlsrvc

There is a service account for the AOS: domain\aossrvc

a report in this case is anything generated by the report server (confirmations, packing slips, invoices, whatever).

When trying to run a report, AX throws the error: "Target principal name is incorrect". I found that to solve this error, I have to set an SPN on the AOS service account. 

When I set an SPN to the AOS service account by giving the following command, all reports show. 

setspn -U -A HOST/srv2.domain.intra domain\aossrvc

HOWEVER!!!: I can then NOT LOG ON WITH ANY DOMAIN ACCOUNT on srv2!!! The error I get is 

"The Security database on the server does not have a computer account for this workstation trust relationship."

when logging on (CTRL+ALT+DEL => username/pass ENTER, boom).

When I was already logged on when I add the SPN, I stay logged on. However, I can not restart the AOS, I get a 1069 error, "The service did not start due to a logon failure"

 

When I then delete the SPN, I can log on again, and I can restart the AOS. Also, all reports show, but only for about 10-15 minutes. After that time, I get the "Target principal name is incorrect" error again. Logging on to the server and restarting the AOS remains possible. 

 

I know I'm close to fixing the problem, but I can't seem to make the last mile. Is there anyone that can push me in the right direction?

*This post is locked for comments

I have the same question (0)
  • Stuart Harvey Profile Picture
    120 on at

    Hi Bart,

    Did you find a solution to your problem?  I'm experiencing the same issue and would be interested to know of any progress you've made.

  • Lance [MSFT] Profile Picture
    on at
  • Suggested answer
    Stefan Quinn Profile Picture
    80 on at

    We had this issue for all of our 3 AX instances.  The fix is to repeat this configuration proceedure to get the new WCF settings.  Before doing this it would be wise to do a full CIL compile, do this process, then restart SSRS.

    Also, ensure that your SSRS execution and service account is running under the BC proxy account.

    technet.microsoft.com/.../hh389774.aspx

  • Suggested answer
    Alex Kwitny Profile Picture
    395 on at

    This happens when you change the AOS service account.  The XML in the AX config file for WCF contains a whole bunch of lines that say 

    <userPrincipalName value="AosUser@YourDomain.com" />

    Just open AX Client Configuration utility and refresh your configuration (and Business Connector) that you are using.

    Also, check your Business Connector configuration, because I believe that is what SSRS uses by default if you don't have a custom AXC for it.  If you do have a custom one, make sure to refresh that one too.

    Then stop/start your SSRS instance.

    Custom Reports AXC: https://technet.microsoft.com/en-us/library/hh389774.aspx

    Changing AOS account and receiving your errro: https://technet.microsoft.com/en-us/library/jj585430.aspx

  • Suggested answer
    Uzair Saleem Profile Picture
    131 on at

    issue is related the AX Configuration you need to check RS server configuration settings for AX. By default SSRS instance take the default AX Configuration, you have to create a new one named "Microsoft.Dynamics.AX.ReportConfiguration.axc" and copy on the Reporting Services\ReportServer\bin folder

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