Updating Mappings for User Object Profile

Hi all,

I have created a new account status property (let's call it new_account_status) in the Profile Definition and mapped it to the appropriate Data Member in the Data Object.

I have made this new property searchable by tickting the 'Searchable' attribute under the 'Advanced Attributes' header and made the old Account Status attribute not searchable by un-ticking this attribute.

So far, so good - when I go to the Customers and Orders manager and look in the User Object (under 'Profiles'), the new_account_status field appears in the 'Look for' drop-down menu. Again, so far so good. However, when I try and execute this search the following error message is returned (in the code):

Property 'account_status' is not searchable.
Parameter name: propertyName

It seems that I need to update the mappings for the User Object profile - but where?

Any help would be greatly appreciated guys.

Thanks,

Sean

[938 byte] By [MeAndMyMonkey] at [2008-1-10]
# 1

Hi Sean,

Try looking in the Commerce Manager. There is a section Profiles Manager which will allow you to map this setting.

You can specify all the settings for your application like length and in your case 'searchable'.

Cheers.

SteveDDAY at 2007-10-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 2

Did you perform an IIS reset on the server hosting the profiles web service? It sounds like something may just be out of sync somewhere down the line. Any schema changes to the profiles system require an IIS reset and a restart of the client UI.

Hope this helps,

David

DavidHargis-MSFT at 2007-10-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 3
Yip - this looks like this might have been it.

Re-started the machine on which Commerce Service was hosted and this did the trick.

Alternatively, I imagine re-starting the World Wide Web Publishing service on the machine hosting Commerce Server (Control Panel > Administrative Tools > Services > World Wide Web Publishing service > Restart) would have the same effect.

Thanks for your responses on this David and Steve.

MeAndMyMonkey at 2007-10-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...