locked
Partner portal Sales Pipeline error RRS feed

  • Question

  • Hi All,

    When I am tryint to access Sale Pipeline on Partner portal, I Get that kind of error. Any ideas why ?

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The entity with a name = 'adx_opportunityaccess' was not found in the MetadataCache.

    Source Error:

    Line 32: 			if (parentCustomerAccount == null)
    Line 33: 			{
    Line 34: 				findOpportunityAccess =
    Line 35: 					from aa in context.CreateQuery("adx_opportunityaccess").ToList()
    Line 36: 					let c = aa.GetRelatedEntity(context, "adx_opportunityaccess_contact")

    Source File: C:\MS Partner Portal\PartnerPortal\Web\Library\OpportunityAccess.cs    Line: 34

    Stack Trace:

    [FaultException`1: The entity with a name = 'adx_opportunityaccess' was not found in the MetadataCache.]
       System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4727747
       System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1725
       Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request) +0
       Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request) +504
       Microsoft.Xrm.Client.Services.InnerOrganizationService.UsingService(Func`2 action) +170
       Microsoft.Xrm.Client.Services.CachedOrganizationService.InnerExecute(OrganizationRequest request) +67
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest query, Func`2 execute, Func`2 selector) +16
       Microsoft.Xrm.Client.Services.<>c__DisplayClass6`3.<LookupAndInsert>b__4(ObjectCache cache) +194
       Microsoft.Xrm.Client.Caching.<>c__DisplayClass9`1.<Get>b__8(String key) +24
       Microsoft.Xrm.Client.Threading.<>c__DisplayClass5`1.<Get>b__3(Mutex _) +43
       Microsoft.Xrm.Client.Threading.MutexExtensions.Lock(String key, Int32 millisecondsTimeout, Action`1 action) +483
       Microsoft.Xrm.Client.Threading.MutexExtensions.Get(String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService) +236
       Microsoft.Xrm.Client.Threading.MutexExtensions.Get(String key, Func`2 loadFromCache, Func`2 loadFromService) +81
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.LookupAndInsert(TRequest query, Func`2 execute, Func`2 selector, String selectorCacheKey) +414
       Microsoft.Xrm.Client.Services.OrganizationServiceCache.InnerExecute(TRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey) +173
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request, Func`2 selector, String selectorCacheKey) +225
       Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute(OrganizationRequest request) +177
       Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) +254
       Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) +213
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) +343
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) +131
       Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(Expression expression) +216
       Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator(Expression expression) +66
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +382
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +80
       Site.Library.OpportunityAccess.GetOpportunityAccessByContact(OrganizationServiceContext context, Entity contact) in C:\MS Partner Portal\PartnerPortal\Web\Library\OpportunityAccess.cs:34
       Site.Pages.MyOpportunities.Page_Load(Object sender, EventArgs e) in C:\MS Partner Portal\PartnerPortal\Web\Pages\MyOpportunities.aspx.cs:21
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
    

    Server Error in '/' Application.

    The entity with a name = 'adx_opportunityaccess' was not found in the MetadataCache.

     

     

    Thursday, October 27, 2011 8:12 AM

Answers

  • Did you import the partner portal solution into CRM?  It looks like that entity is missing, so I am thinking you may be using the customer portal solution file instead of the partner portal solution file.
    Shan McArthur www.shanmcarthur.net Check out the commercial edition of xRM portals @ www.adxstudio.com
    • Proposed as answer by Palak Kadakia Thursday, November 10, 2011 11:02 PM
    • Marked as answer by Palak Kadakia Monday, January 23, 2012 2:45 AM
    Friday, October 28, 2011 5:32 PM
    Moderator