Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

Troubleshoot: Failed to retrieve profile – Problem with Site Cache Refresh

ravikanth | January 1, 2009

This is old post but thought of sharing with all of you. Sometimes, after updating user profile properties and try to retrieve through commerce server API, you will get following error.

 

Microsoft.CommerceServer.Runtime.Profiles.CommerceProfileSystemException was unhandled by user code
Message="Failed to retrieve profile."
Source="Microsoft.CommerceServer.Runtime"
StackTrace:
at Microsoft.CommerceServer.Runtime.Profiles.Profile..ctor(ProfileContext profileService, String keyName, String keyValue, String profileType)
at Microsoft.CommerceServer.Runtime.Profiles.ProfileContext.GetProfile(String keyName, String keyValue, String profileType)
at Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider.GetUser(String username, Boolean userIsOnline)
at System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline)
at System.Web.Security.Membership.GetUser(String username)
at CommerceSite.StandardLayout.OnInit(EventArgs e) in c:\Inetpub\wwwroot\StarterSite\StandardLayout.master.cs:line 52
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The inner exception says – “A duplicate value for unique key member GeneralInfo.email_address found while building indices for profile UserObject. Check the underlying store for uniqueness of the property”

This problem occurs when the user profile cache has not expired on Web server. Sometimes, a user cannot log on to a Commerce Server 2007 site until the profile cache entries expire on all Web server.

Microsoft has release patch for this fix and you can download it from the below location.
Commerce SErver 2007 SP1 Hotefix – KB949967 – http://support.microsoft.com/kb/949967

Note: After applying this fix, you need to restart your machine.

Categories
Troubleshoot, commerce server 2007
Comments rss
Comments rss
Trackback
Trackback

« Unrecognized element ‘Validator’ Field is rounding off when catalog manager is used »

Leave a Reply

Click here to cancel reply.

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • Staging Deployment – Security Considerations
  • Pipeline Editor displays registered custom pipeline components as unknown in 64 Bit version.
  • How commerce server staging works
  • Steps to extend payments in Commerce Server 2009
  • Introduction to Commerce Server Staging
  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
  • Commerce server staging throws Remote authorization failed to server. Ensure the service has access to this server.
  • Updated Commerce Server 2009 template pack for SharePoint 2007 released
  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool

Archives

  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category commerce server commerce server 2007 commerce server manager Commerce Server SP2 commerce server staging discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .