Discussion:
Problem in Searching UserObject Profile records in CS2007
(too old to reply)
Mani
2006-11-07 08:20:02 UTC
Permalink
Hi,

I am trying to search the records of UserObject profile by using the
ProfileManagementContext class. I'm getting the error when i'm calling the
following code,
// Build dataset of searchable entities for a profile.
DataSet searchableEntities = profile.GetSearchableEntities();

// Build search clause for the UserObject.
SearchClauseFactory factory =
profile.GetSearchClauseFactory(searchableEntities, "UserObject");

I'm getting the error message as follows,
System.ArgumentException: DataSet is missing the 'UserObject' table.
Parameter name: searchableEntities

Anybody can help me to solve this problem.

Regards,
Mani
David Hargis [MSFT]
2006-11-13 18:29:02 UTC
Permalink
You most likely do not have your AzMan permissions set up correctly. You
need to make sure this code is running under the security context of a user
that is member of (a) the ProfileAdministrator, or (b) one of the roles
under the UserObject scope. AzMan is used to users from having any
knowledge of profiles that they are not authorized to view.

- David

--------------------
Thread-Topic: Problem in Searching UserObject Profile records in CS2007
thread-index: AccCRYWyKT79JqmnT7Wb8WN6LP/CnA==
X-WBNR-Posting-Host: 203.200.33.34
From: =?Utf-8?B?TWFuaQ==?= <***@discussions.microsoft.com>
Subject: Problem in Searching UserObject Profile records in CS2007
Date: Tue, 7 Nov 2006 00:20:02 -0800
Lines: 23
Message-ID: <754C4400-EAED-4264-AE2A-***@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.commerceserver.userprofilemgt
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3689
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

Hi,

I am trying to search the records of UserObject profile by using the
ProfileManagementContext class. I'm getting the error when i'm calling the
following code,
// Build dataset of searchable entities for a profile.
DataSet searchableEntities = profile.GetSearchableEntities();

// Build search clause for the UserObject.
SearchClauseFactory factory =
profile.GetSearchClauseFactory(searchableEntities, "UserObject");

I'm getting the error message as follows,
System.ArgumentException: DataSet is missing the 'UserObject' table.
Parameter name: searchableEntities

Anybody can help me to solve this problem.

Regards,
Mani
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
Loading...