Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I have just deployed AX2012 for one of our customers and am having some issues with SSRS. I have more than a handful of users with no issue accessing SSRS report via the AX 2012 client and others getting an error in an infolog windows suggesting 'Failed to logon to Microsoft Dynamics AX.'. All users 'Domain Users' group has been added to the SSRS server under the AXBrowser role created by the install. The users that work have the same AD security as the users that don't so I'm doubting that's the issue. I have tested running the reports as the BC proxy account whihc is also the service account running the SSRS server. I have turned of UAC on both the server and client to insure that's not it. On the server we are seeing a few errors in the event log which I have pasted below. The SSRS server is running SQL Server 2008 R2 SP1 CU2 but we have also tested SQL Server 2008 R2 SP1 without a CU. All servers are running Windows Server 2008 R2 SP1 + All windows updates after that. The version of AX is 2012 CU1 and has been applied to the AOS/DB/etc.. Has anyone else had this issue and can offer any help I would greatly appreciate it.

Object Server 02: 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.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)

at System.Collections.Generic.SynchronizedCollection`1.Add(T item)

at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)

 

Unable to get version information using existing WCF configuration from local storage.

 

Exception details:

Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceException: Exception occurred on the metadata service on client or server. See exception details below:

>Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.

 

Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

 

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at Microsoft.Dynamics.AX.Framework.Services.Metadata.Service.IAxMetadataService.GetServicesVersionInformation(Guid versionId)

at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceClient.<>c__DisplayClassca.<GetServicesVersionInformation>b__c7(IAxMetadataService channel)

at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

--- End of inner exception stack trace ---

at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationBootstrap.GetServicesVersionInformation(IClientConfiguration serviceClientConfiguration, Guid versionId)

at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GetClientConfiguration()

 

*This post is locked for comments

  • Suggested answer
    Camilo Virguez Profile Picture
    Camilo Virguez 1 on at
    RE: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Hi Lisa,  

    In my system  with sql 2012....    the bin folder for the instance of Reporting services.

    C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\bin

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Can anyone tell me the exact path of the bin folder?  I have a bin folder at C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin but not sure this is the appropriate place.  Thanks in advance.

  • Camilo Virguez Profile Picture
    Camilo Virguez 1 on at
    RE: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Yes  this is the correct answer.   you need to do the complete restart and it begins to work.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Please verify the client configuration file that is copied into ..\ReportServer\Bin folder. Make sure its pointing to the correct AOS instance and the port.

  • Arturo Medina Profile Picture
    Arturo Medina 696 on at
    Re: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Hi,

    Has anyone found/ solved this issue on Win 2008 R2 SP1 Enterprise and SQL 2012?

    Starting from Dan's recommendation

    "Ok I think we have a resolution but the why is still vague to me as the customer is on windows server 2008 r2 SP1 for all servers. After MS lead me to the error code with a special tool I googled the error and landed on this KB:

    support.microsoft.com/.../842423 "

    I followed Method 3, that is, adding "Windows Authorization Access Group" for the SSRS Service logon account. No luck. The mssg keeps appearing in the Event Viewer:

    "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.   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.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
       at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
       at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext) .
    "

    Thanks in advance

    Addtt'l Info:

    ENV

    AX 2012 FP + CU3
      Kernel version: 6.0.1108.670
      Application version: 6.0.1108.670
      Solution version: 6.1.1108.670

    SQL Server 2012 - 11.0.2100.60 (X64)   Business  Intelligence Edition

    To replicate error: Click General ledger > Reports > Transactions > Trial balance with Detail level = Details

  • Mark Simmerman Profile Picture
    Mark Simmerman 1,325 on at
    Re: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Hi Dan,

    We had a virtually identical issue.  The only difference is where we copied from one environment to another.  After making all account changes and configuration changes, most clients show the error below with the same error log entry.  In addition, WCF configuration cannot be refreshed due to the "log on" error.  I made the change that you made below using Method 1 (added BCP and AOS accounts to the Windows Auth Access group and Pre-Windows 2000 Compatibility Access group) and rebooted all AOSs and the SQL server (SSRS was on SQL with the non-IIS deployment of reports on the same server).  No luck.  

    I can validate the RS settings in SysAdmin/Setup/BI/RS/Report Servers on three default configurations for our three AOSs.  

    We would appreciate any additional insight that you might have.  Thanks.  

    Kind Regards,

    Mark Simmerman

  • AXT Profile Picture
    AXT 1,699 on at
    Re: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Dear Dan,

    We are phasing a similar error but maybe with a different root cause. We have a Domain-Trust setup Where users from Domain-A login to Domain-B with single sign on. Domain-B is where AX 2012 is located (rds, sql, aos). So when a local user from Domain-B is executing the report it works fine, while with users from Domain-A i get an error message. The strange thing is that the report is deployed with Visual Studio with the user from Domain-A it works for about 10min, but afterwards we get again the error. To you have any ideas on this? Actually we performed the steps you proposed and it didn't help.

    -------------------------------------------------------------------------------------------------------------
    local domain user -- successful
    -------------------------------------------------------------------------------------------------------------

    library!ReportServer_0-1!f64!11/19/2011-01:08:10:: Call to GetPermissionsAction(/).

    library!ReportServer_0-1!884!11/19/2011-01:08:10:: Call to GetPropertiesAction(/, PathBased).

    library!ReportServer_0-1!f64!11/19/2011-01:08:10:: Call to GetPropertiesAction(/, PathBased).

    library!ReportServer_0-1!f64!11/19/2011-01:08:10:: Call to GetSystemPermissionsAction().

    library!ReportServer_0-1!884!11/19/2011-01:08:10:: Call to ListChildrenAction(/, False).

    library!ReportServer_0-1!f64!11/19/2011-01:08:10:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f68!11/19/2011-01:08:10:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f68!11/19/2011-01:08:10:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f64!11/19/2011-01:08:14:: Call to GetPermissionsAction(/DynamicsAX).

    library!ReportServer_0-1!708!11/19/2011-01:08:14:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f64!11/19/2011-01:08:14:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!708!11/19/2011-01:08:14:: Call to GetSystemPermissionsAction().

    library!ReportServer_0-1!f64!11/19/2011-01:08:14:: Call to ListChildrenAction(/DynamicsAX, False).

    library!ReportServer_0-1!f64!11/19/2011-01:08:14:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f64!11/19/2011-01:08:14:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f60!11/19/2011-01:08:14:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f60!11/19/2011-01:08:14:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f60!11/19/2011-01:08:17:: Call to GetPermissionsAction(/DynamicsAX).

    library!ReportServer_0-1!f68!11/19/2011-01:08:17:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f60!11/19/2011-01:08:17:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f68!11/19/2011-01:08:17:: Call to GetSystemPermissionsAction().

    library!ReportServer_0-1!f68!11/19/2011-01:08:17:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f68!11/19/2011-01:08:17:: Call to ListChildrenAction(/, False).

    library!ReportServer_0-1!f60!11/19/2011-01:08:17:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!f64!11/19/2011-01:08:19:: Call to GetPermissionsAction(/DynamicsAX).

    library!ReportServer_0-1!f60!11/19/2011-01:08:19:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f64!11/19/2011-01:08:19:: Call to GetPropertiesAction(/DynamicsAX, PathBased).

    library!ReportServer_0-1!f60!11/19/2011-01:08:19:: Call to GetSystemPermissionsAction().

    library!ReportServer_0-1!f64!11/19/2011-01:08:19:: Call to GetPoliciesAction(/DynamicsAX).

    library!ReportServer_0-1!f68!11/19/2011-01:08:19:: Call to GetSystemPropertiesAction().

    library!ReportServer_0-1!884!11/19/2011-01:11:41:: i INFO: RenderForNewSession('/DynamicsAX/BERNCustInvoiceReport.ReportAD')

    library!ReportServer_0-1!884!11/19/2011-01:12:12:: Using folder C:\Program Files\Microsoft SQL Server\MSRS10_50.BERNENTW\Reporting Services\RSTempFiles for temporary files.

    webserver!ReportServer_0-1!884!11/19/2011-01:12:13:: i INFO: Processed report. Report='/DynamicsAX/BERNCustInvoiceReport.ReportAD', Stream=''

    library!ReportServer_0-1!884!11/19/2011-01:12:29:: i INFO: RenderForNewSession('/DynamicsAX/BERNCustInvoiceReport.ReportAD')

    webserver!ReportServer_0-1!884!11/19/2011-01:12:38:: i INFO: Processed report. Report='/DynamicsAX/BERNCustInvoiceReport.ReportAD', Stream=''

     

    -------------------------------------------------------------------------------------------------------------

    domain trust user -- not successful

    -------------------------------------------------------------------------------------------------------------

    library!ReportServer_0-1!884!11/19/2011-01:23:30:: i INFO: RenderForNewSession('/DynamicsAX/BERNCustInvoiceReport.ReportAD')

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---;

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: e ERROR: An exception has occurred in data set 'BERNCustInvoiceDS'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunDataSetQueryAndProcessAsIRowConsumer(Boolean processAsIRowConsumer)

       at Microsoft.ReportingServices.OnDemandProcessing.TablixProcessing.RuntimeOnDemandDataSet.Process()

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.ProcessConcurrent(Object threadSet)

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: Fehler bei der Berichtsverarbeitung. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunDataSetQueryAndProcessAsIRowConsumer(Boolean processAsIRowConsumer)

       at Microsoft.ReportingServices.OnDemandProcessing.TablixProcessing.RuntimeOnDemandDataSet.Process()

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.ProcessConcurrent(Object threadSet)

       --- End of inner exception stack trace ---;

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: w WARN: Data source 'AutoGen__Query': Report processing has been aborted.

    processing!ReportServer_0-1!884!11/19/2011-01:23:30:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: Fehler bei der Berichtsverarbeitung. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunDataSetQueryAndProcessAsIRowConsumer(Boolean processAsIRowConsumer)

       at Microsoft.ReportingServices.OnDemandProcessing.TablixProcessing.RuntimeOnDemandDataSet.Process()

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.ProcessConcurrent(Object threadSet)

       --- End of inner exception stack trace ---;

    library!ReportServer_0-1!884!11/19/2011-01:23:30:: w WARN: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: Fehler bei der Berichtsverarbeitung. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunDataSetQueryAndProcessAsIRowConsumer(Boolean processAsIRowConsumer)

       at Microsoft.ReportingServices.OnDemandProcessing.TablixProcessing.RuntimeOnDemandDataSet.Process()

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.ProcessConcurrent(Object threadSet)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.OnDemandProcessingContext.CheckAndThrowIfAborted()

       at Microsoft.ReportingServices.OnDemandProcessing.RetrievalManager.FetchData(Boolean mergeTran)

       at Microsoft.ReportingServices.OnDemandProcessing.RetrievalManager.PrefetchData(ReportInstance reportInstance, ParameterInfoCollection parameters, Boolean mergeTran)

       at Microsoft.ReportingServices.OnDemandProcessing.Merge.FetchData(ReportInstance reportInstance, Boolean mergeTransaction)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessOdpReport(Report report, OnDemandMetadata odpMetadataFromSnapshot, ProcessingContext pc, Boolean snapshotProcessing, Boolean reprocessSnapshot, Boolean processUserSortFilterEvent, Boolean processWithCachedData, ErrorContext errorContext, DateTime executionTime, StoreServerParameters storeServerParameters, GlobalIDOwnerCollection globalIDOwnerCollection, SortFilterEventInfoMap oldUserSortInformation, EventInformation newUserSortInformation, String oldUserSortEventSourceUniqueName, ExecutionLogContext executionLogContext, OnDemandProcessingContext& odpContext)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension newRenderer, DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory metaDataChunkFactory, IChunkFactory yukonCompiledDefinition)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory yukonCompiledDefinition)

       at Microsoft.ReportingServices.Library.RenderLive.CallProcessingAndRendering(ProcessingContext pc, RenderingContext rc, OnDemandProcessingResult& result)

       at Microsoft.ReportingServices.Library.RenderStrategyBase.ExecuteStrategy(OnDemandProcessingResult& processingResult)

    webserver!ReportServer_0-1!884!11/19/2011-01:23:30:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: Fehler bei der Berichtsverarbeitung. ---> Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: Fehler bei der Berichtsverarbeitung. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Fehler beim Ausführen der Abfrage für das BERNCustInvoiceDS-Dataset. ---> Microsoft.Dynamics.AX.Framework.Services.Client.QueryServiceException: Unable to log on to Microsoft Dynamics AX. ---> System.ServiceModel.FaultException: Unable to log on to Microsoft Dynamics AX.


    Server stack trace: 

       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)


    Exception rethrown at [0]: 

       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

       at Microsoft.Dynamics.AX.Framework.Services.QueryService.IQueryService.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.<>c__DisplayClass16.<GetDynamicQueryMetadata>b__15(IQueryService queryClient)

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       --- End of inner exception stack trace ---

       at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClientInternal.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Services.Client.QueryClient.GetDynamicQueryMetadata(String queryBuilderName, QueryBuilderArgs queryBuilderArgs)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.OnGetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.AX.Framework.Reporting.Shared.ClientServicesProxy.GetQueryMetadataById(Int64 recordId)

       at Microsoft.Dynamics.Framework.Reports.AxQueryReader2.Initialize()

       at Microsoft.Dynamics.Framework.Reports.AxQueryCommand2.OnExecuteReader(CommandBehavior behavior)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues)

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunDataSetQueryAndProcessAsIRowConsumer(Boolean processAsIRowConsumer)

       at Microsoft.ReportingServices.OnDemandProcessing.TablixProcessing.RuntimeOnDemandDataSet.Process()

       at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.ProcessConcurrent(Object threadSet)

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.OnDemandProcessing.OnDemandProcessingContext.CheckAndThrowIfAborted()

       at Microsoft.ReportingServices.OnDemandProcessing.RetrievalManager.FetchData(Boolean mergeTran)

       at Microsoft.ReportingServices.OnDemandProcessing.RetrievalManager.PrefetchData(ReportInstance reportInstance, ParameterInfoCollection parameters, Boolean mergeTran)

       at Microsoft.ReportingServices.OnDemandProcessing.Merge.FetchData(ReportInstance reportInstance, Boolean mergeTransaction)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessOdpReport(Report report, OnDemandMetadata odpMetadataFromSnapshot, ProcessingContext pc, Boolean snapshotProcessing, Boolean reprocessSnapshot, Boolean processUserSortFilterEvent, Boolean processWithCachedData, ErrorContext errorContext, DateTime executionTime, StoreServerParameters storeServerParameters, GlobalIDOwnerCollection globalIDOwnerCollection, SortFilterEventInfoMap oldUserSortInformation, EventInformation newUserSortInformation, String oldUserSortEventSourceUniqueName, ExecutionLogContext executionLogContext, OnDemandProcessingContext& odpContext)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension newRenderer, DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory metaDataChunkFactory, IChunkFactory yukonCompiledDefinition)

       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(DateTime executionTimeStamp, ProcessingContext pc, RenderingContext rc, IChunkFactory yukonCompiledDefinition)

       at Microsoft.ReportingServices.Library.RenderLive.CallProcessingAndRendering(ProcessingContext pc, RenderingContext rc, OnDemandProcessingResult& result)

       at Microsoft.ReportingServices.Library.RenderStrategyBase.ExecuteStrategy(OnDemandProcessingResult& processingResult)

       at Microsoft.ReportingServices.Library.ReportExecutionBase.InternalExecuteReport()

       at Microsoft.ReportingServices.Library.ReportExecutionBase.Execute()

       at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()

       --- End of inner exception stack trace ---

       at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()

       at Microsoft.ReportingServices.Library.ExecutionDisposerProxy.ExecuteReport()

       at Microsoft.ReportingServices.Library.RenderReportAction.PerformExecution()

       at Microsoft.ReportingServices.Library.RenderReportAction.Render()

       at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport()

       at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.DoStreamedOperation(StreamedOperation operation)

       at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPageContent()

       at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: SSRS - AX2012 - An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

    Hi all,

    Ok I think we have a resolution but the why is still vague to me as the customer is on windows server 2008 r2 SP1 for all servers. After MS lead me to the error code with a special tool I googled the error and landed on this KB:

    support.microsoft.com/.../842423

    I applied method 1 to the AOS server accounts and the bc proxy account. Presto, no more errors on reports or EP portal.

    Update: This is the more correct KB artical supplied by Microsoft :

    support.microsoft.com/.../2009157

    --------------------------------------------------------------------------------

    Dan Rector

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans