Enterprise Portal Web Controls Development in AX 2012 R3 CU8

by | Updated August 15, 2016 | Development, Dynamics AX

This week, I have been working on modifying Enterprise Portal Web Controls in AX 2012 R3 CU8 for a customer modification. Part of this process was changing the structure of an underlying table prior to working on the the control.  After making the table change, I would go into Enterprise Portal, and attempt to view a page, and would get the following error message:

An unexpected error has occurred.

Exception of type ‘Microsoft.Dynamics.AX.Framework.Services.Metadata.Exceptions.MetadataItemException1[Microsoft.Dynamics.AX.Framework.Services.Metadata.Contracts.QueryDataSourceMetadata]' was thrown.

Microsoft.Dynamics.AX.Framework.Services.Client.InteractionServiceException

at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient1 client, Func2 operationInvoker, Func2 exceptionWrapper)

at Microsoft.Dynamics.AX.Framework.Services.Client.InteractionService.InteractionServiceClient.Initialize(IInteractionArguments interactionArguments, IInteractionObjectIdentifier interactionObjectIdentifier)

at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxListPageContentArea.InitializeListPageContentArea()

at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxListPageContentArea.OnLoad(EventArgs e)

Exception of type ‘Microsoft.Dynamics.AX.Framework.Services.Metadata.Exceptions.MetadataItemException1[Microsoft.Dynamics.AX.Framework.Services.Metadata.Contracts.QueryDataSourceMetadata]' was thrown.

System.ServiceModel.FaultException1[System.ServiceModel.ExceptionDetail]
Server stack trace:

at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)

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.InteractionService.IInteractionService.Initialize(InteractionArguments interactionArguments, InteractionObjectIdentifier interactionObjectIdentifier)

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

 

After doing some digging, I found the control that was causing the error, and loaded it up in Visual Studio. Visual Studio stated that there was an undefined field in the Dataset used on the control. Looking in the AOT, the field is listed in the dataset, so I was a bit confused.

Doing some research, it appears that caching was the culprit.  I cleared out the Dictionary cache from inside the Development environment (Tools > Cashes > Refresh Dictionary) and redeployed my Enterprise Portal again, and the error was gone.

NOTE: Restarting the AOS would have accomplished the same, but for this case, it would have been overkill to restart the AOS when the cache clear would resolve the issue.

I just wanted to pass this one on to everyone so they are aware of what can be the cause of this issue when doing Enterprise Portal Development.

 

Related Posts

0 Comments

Trackbacks/Pingbacks

  1. Enterprise Portal Web Controls Development in AX 2012 R3 CU8 – 2/26, Stoneridge Software | - […] Continue reading on Source Blog […]

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

august

05aug10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Shipping / Receiving Department

05aug12:00 pm1:00 pmHow Ag Coops Can Simplify Processing Equity Payments using Levridge

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep11:00 am12:00 pmModernizing Batch Manufacturing - Ensuring Compliance and Quality Control

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X