<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.imanami.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Discussion</title><link>http://community.imanami.com/forums/38/ShowForum.aspx</link><description>General discussion topics</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Synchronize - Set LDAP Filter for Source - Fails</title><link>http://community.imanami.com/forums/thread/1164.aspx</link><pubDate>Thu, 25 Feb 2010 17:25:45 GMT</pubDate><guid isPermaLink="false">48d2d245-5587-4588-9a82-78109962d4d2:1164</guid><dc:creator>webmister</dc:creator><slash:comments>0</slash:comments><comments>http://community.imanami.com/forums/thread/1164.aspx</comments><wfw:commentRss>http://community.imanami.com/forums/commentrss.aspx?SectionID=38&amp;PostID=1164</wfw:commentRss><description>I will advise you to report this case to support as your job needs to be tested before providing any suggestion</description></item><item><title>Synchronize - Set LDAP Filter for Source - Fails</title><link>http://community.imanami.com/forums/thread/1162.aspx</link><pubDate>Wed, 24 Feb 2010 21:38:55 GMT</pubDate><guid isPermaLink="false">48d2d245-5587-4588-9a82-78109962d4d2:1162</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://community.imanami.com/forums/thread/1162.aspx</comments><wfw:commentRss>http://community.imanami.com/forums/commentrss.aspx?SectionID=38&amp;PostID=1162</wfw:commentRss><description>&lt;P&gt;I'm trying to set up an AD-&amp;gt;AD sync job to create mail-enabled contacts in an separate AD Forest (trusted both ways).&amp;nbsp; I need to restrict the query to AD users with whose 'company' value matches&amp;nbsp;2 of&amp;nbsp;3 options.&amp;nbsp; I've created and verifiied the LDAP query in ADUC.&amp;nbsp; I created the job without any filters first, to verify perms, etc., and it ran fine.&amp;nbsp; I then added the LDAP filter for the source to only select users from the 2 business units I need, and I get an immediate failure when I preview the job.&lt;/P&gt;
&lt;P&gt;In the 'Reports' tab, I get:&amp;nbsp; &lt;EM&gt;Could not load data from source provider: One or more errors occurred during processing of command.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This is the 'Directory Synchronization Query' text that I have in the 'advanced options' screen for the job.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SELECT * FROM 'LDAP://DOMAINCONTROLLERNAMEA' WHERE '(&amp;amp;(&amp;amp;(mailNickname=*)(&amp;amp;(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))))(|(&amp;amp;(company=COMPANY ABC)(objectClass=user))(&amp;amp;(company=COMPANY XYZ)(objectClass=user))))'&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Here is an error event I found in the app log on my GroupID server.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR:#ffff33;" size=1 face=tahoma,arial,helvetica,sans-serif&gt;&lt;EM&gt;Error creating recordset: One or more errors occurred during processing of command.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR:#ffff33;" size=1 face=tahoma,arial,helvetica,sans-serif&gt;&lt;EM&gt;Source: Provider&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR:#ffff33;" size=1 face=tahoma,arial,helvetica,sans-serif&gt;&lt;EM&gt;Stacktrace: at ADODB.CommandClass.Execute(Object&amp;amp; RecordsAffected, Object&amp;amp; Parameters, Int32 Options)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR:#ffff33;" size=1 face=tahoma,arial,helvetica,sans-serif&gt;&lt;EM&gt;at Imanami.Dtm.Synchronization.ADsDSOReader.getDirectory(String connectionString, String commandString, String user, String password, Int32 pageSize, Int32 timeout, Int32 searchScope, Boolean isCacheResults)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Below is a log entry (repeated&amp;nbsp;each time I tried this) from the 'Imamami GroupID' Event log.&amp;nbsp;&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;&lt;STRONG&gt;2010-02-24 15:00:23,789 [6160] ERROR Imanami.Dtm.Synchronization.JobEngine [(null)] - An exception was raised while running job.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Imanami.Dtm.DTMFatalException: Could not load data from source provider: One or more errors occurred during processing of command. ---&amp;gt; System.Runtime.InteropServices.COMException (0x80040E14): One or more errors occurred during processing of command.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at ADODB.CommandClass.Execute(Object&amp;amp; RecordsAffected, Object&amp;amp; Parameters, Int32 Options)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.ADsDSOReader.getDirectory(String connectionString, String commandString, String user, String password, Int32 pageSize, Int32 timeout, Int32 searchScope, Boolean isCacheResults)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.ADsDSOReader.GetDataSet(String connectionString, String commandString)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;--- End of inner exception stack trace ---&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.ADsDSOReader.GetDataSet(String connectionString, String commandString)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.SourceReaderBase.GetSourceDataSet(String[] sourceFieldNames)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.JobEngine.LoadSourceDataSet()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.JobEngine.ConnectAndLoadData(ScriptRunner scriptRunner)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.JobEngine.CommenceJob(ScriptRunner&amp;amp; scriptRunner)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;at Imanami.Dtm.Synchronization.JobEngine.Run()&lt;/STRONG&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logging is in debug mode, from another issue that I was working on, so I've got log files I can send.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;What am I doing wrong here?&amp;nbsp; This requirement has never come up before, so I need some help filtering records from the source.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description></item></channel></rss>