Ax 2012 report troubles.

I’m having some strange problems with Ax 2012 reports.

I have 2 users, they are users in the domain, have the same roles in dynamics ax. In report server I added the domain users group to the DynamicsAXBrowser role.

1 of them can run the report, the other one gets “Failed to logon to Microsoft Dynamics AX.” in an infobox.

If I check eventlogg I get 3 posts for every try that don’t work.

First 2 of these:

Object Server 01: An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
at System.ServiceModel.ExtensionCollection1.InsertItem(Int32 index, IExtension1 item)
at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)

Followed by 1 of this:

AXRDCE The AXRDCE extension caught an unexpected exception for report SysCompanySize.Report.
The error message was:
A call to the Microsoft Dynamics AX SRSFrameworkService service failed. Failed to logon to Microsoft Dynamics AX…
at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient1 client, Func2 operationInvoker, Func`2 exceptionWrapper)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceProxy.Microsoft.Dynamics.AX.Framework.Reporting.Shared.IXppSRSFrameworkService.getRelationLinkTargetList(SRSFrameworkServiceGetRelationLinkTargetListRequest request)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceClient.Microsoft.Dynamics.AX.Framework.Reporting.Shared.ISRSFrameworkService.GetRelationLinkTargetList(String tableFieldsListEncodedStr)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.GetRelationLinkTargetList(String fieldList)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.Resolve(String encodedString)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AutomaticDrillThroughStep.Transform(XDocument report, ILocalReportContext reportContext, ILocalUserContext userContext)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.CustomizationExtensionImplementation.ProcessReportDefinition(Byte[] reportDefinition, ILocalReportContext reportContext, ILocalUserContext userContext, Byte[]& reportDefinitionProcessed)

A call to the Microsoft Dynamics AX SRSFrameworkService service failed. Failed to logon to Microsoft Dynamics AX…

Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportException
at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient1 client, Func2 operationInvoker, Func`2 exceptionWrapper)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceProxy.Microsoft.Dynamics.AX.Framework.Reporting.Shared.IXppSRSFrameworkService.getRelationLinkTargetList(SRSFrameworkServiceGetRelationLinkTargetListRequest request)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.SRSFrameworkServiceClient.Microsoft.Dynamics.AX.Framework.Reporting.Shared.ISRSFrameworkService.GetRelationLinkTargetList(String tableFieldsListEncodedStr)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.GetRelationLinkTargetList(String fieldList)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.TableFieldMenuItemService.Resolve(String encodedString)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AutomaticDrillThroughStep.Transform(XDocument report, ILocalReportContext reportContext, ILocalUserContext userContext)
at Microsoft.Dynamics.AX.Framework.Reporting.Shared.CustomizationExtensionImplementation.ProcessReportDefinition(Byte[] reportDefinition, ILocalReportContext reportContext, ILocalUserContext userContext, Byte[]& reportDefinitionProcessed)

Anyone hade any similar trouble and how did you get out of it?

We are experiencing the exact same problem, any luck on finding a solution?

Nope…

I’m sorry to say that I’m on a standstill when it comes to this matter.

I actually got it working today. I removed the uac-file for the user and wen’t into the client configuration and updated the “wcf-connection”.

Now I’m just woundering how to handle a developer enviroment with consultants running 5-10 different systems a day in our development enviroment.

Hi Oscar,

When you suggest you removed the uac-file for the user what path is the file located in. I did try turing off UAC on the machine but this didn’t result in the error going away for all users. Some users have the issue and others do not. AD security or machine security doesn’t seem to be the issue. Error we are seeing in the EventLog of the SSRS server for each attempt by the effected users.

An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

Thank you in advance!

Actually it was a type-o. Remote the auc-file on the client machine and regenerate the wcf from client config. Nothing to do with uac.

What if this is a remote desktop server? In this case the files are in C:\users<userID>\appdata\local\ and the user doesn’t have access to refresh the WCF? Any ideas?

Run from a correct xpo-file with correct generated wcf-information, and admin could remove the files?

Hello. I encountered the same log on error. Could you please tell me which are the required steps for regenerating the wcf from the client config?

Open “C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin\AxCliCfg.exe” as the user (Might need to gant the user local admin) > Connection tab > Refresh Configuration Button

Make sure that the .axc file that the SSRS instance is using is working and in the right place. In my case the client did a SQL server upgrade and we missed moving the axc file.