web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Re: AX2012 reports not showing: Target principal name is incorrect.

    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
    Re: AX2012 reports not showing: Target principal name is incorrect.

    Saw a few articles and newsgroup threads about the error message 'The Security database on the server does not have a computer account for this workstation trust relationship':

    virtualcurtis.wordpress.com/.../fix-the-security-database-on-the-server-does-not-have-a-computer-account-for-this-workstation-trust-relationship

    technet.microsoft.com/.../ee849847(WS.10).aspx

    social.technet.microsoft.com/.../31905c1a-5c25-4426-ac8d-677004c21f5d

    blog.skybyte.com/.../the-security-database-on-the-server-does-not-have-a-computer-account-for-this-workstation-trust-relationship-microsoft-server-support

    Hope some of these help.

  • Suggested answer
    Stefan Quinn Profile Picture
    80 on at
    Re: AX2012 reports not showing: Target principal name is incorrect.

    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
    RE: AX2012 reports not showing: Target principal name is incorrect.

    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
    RE: AX2012 reports not showing: Target principal name is incorrect.

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans