I'm using jQuery and the WSS 3.0 SOAP service to retrieve and display data from a list. I'm wanting to filter the data by the CreatedBy column. Here's my CAML query:
<Query>
<Where>
<And>
<Leq>
<FieldRef Name="Created" />
<Value Type="DateTime" IncludeTimeValue="FALSE">2011-1-8</Value>
</Leq>
<Geq>
<FieldRef Name="Created" />
<Value Type="DateTime" IncludeTimeValue="FALSE">2011-1-2</Value>
</Geq>
<Contains>
<FieldRef Name="CreatedBy" LookupId="TRUE" />
<Value Type="User">Smith</Value>
</Contains>
</And>
</Where>
When I execute this, SharePoint returns the following error:
0x80004005 - Cannot complete this action. Please try again.
Removing the user lookup resolves the issuer. Where am I going wrong?