<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:09 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1617] Legacy Driver Issue with Update, Remove.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1617</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;We are currently on v 1.11 and planning to upgrade to 2.2.3. As we have lot of custom code written in our application, we wanted to stick with legacy c# driver. We are noticing the following error with update or remove calls.&lt;/p&gt;

&lt;p&gt;Any help or direction in regards to this issue is greatly appreciated.&lt;/p&gt;

&lt;p&gt;{ &quot;$err&quot; : &quot;Unable to execute query: error processing query: ns=test-ads-fast.field limit=0 skip=0\nTree: orgId == 2000\nSort: {}\nProj: {}\n No query solutions&quot;, &quot;code&quot; : 17007 }).&lt;/p&gt;</description>
                <environment></environment>
        <key id="276834">CSHARP-1617</key>
            <summary>Legacy Driver Issue with Update, Remove.</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="sm19125">Sreehari Mogallapalli</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Fri, 1 Apr 2016 20:17:31 +0000</created>
                <updated>Fri, 5 Apr 2019 13:57:58 +0000</updated>
                            <resolved>Thu, 22 Dec 2016 19:46:10 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1360856" author="craiggwilson" created="Thu, 18 Aug 2016 14:15:05 +0000"  >&lt;p&gt;Hari,&lt;/p&gt;

&lt;p&gt;Do you have any further information? Did you get it working?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="1225538" author="craiggwilson" created="Tue, 5 Apr 2016 00:22:09 +0000"  >&lt;p&gt;Thanks for the reply. As requested before, could you provide:&lt;/p&gt;

&lt;p&gt;1) The list of indexes on the collection having issues.&lt;br/&gt;
2) The generated query. You can get this from the profiler.&lt;br/&gt;
3) Since you are having issues with a simple _id query, could you provide the logs from the mongod when the query is run?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="1224091" author="sm19125" created="Mon, 4 Apr 2016 14:04:46 +0000"  >&lt;p&gt;This has been working well with 1.11 and no issues. We do have index on the fields orgId and fieldId.  &lt;/p&gt;

&lt;p&gt;I am getting the similar exception with the following code &lt;/p&gt;

&lt;p&gt;_mongoCollection.Remove(Query.EQ(&quot;_id&quot;, id));&lt;/p&gt;

&lt;p&gt;Hari.M&lt;/p&gt;</comment>
                            <comment id="1223136" author="craiggwilson" created="Fri, 1 Apr 2016 22:11:38 +0000"  >&lt;p&gt;Ok, so that is pretty standard code. This error message comes back when --notablescan is turned on at the server and a predicate is missing the index. Could you provide a list of the indexes that you have on the collection? Also, it&apos;d be great to know what query is actually getting generated from the driver so we can compare it to the indexes you have. Could you turn on the profiler while you run the query so we can see what the generated query is?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="1223132" author="sm19125" created="Fri, 1 Apr 2016 22:04:20 +0000"  >&lt;p&gt;               var client = new MongoClient(settings);&lt;/p&gt;

&lt;p&gt;            _mongoDatabase = client.GetServer().GetDatabase(connectionInfo.DBName);&lt;/p&gt;

&lt;p&gt;This is where it throws an exception:&lt;/p&gt;

&lt;p&gt;              _mongoDatabase.GetCollection&amp;lt;T&amp;gt;(collectionName)&lt;/p&gt;

&lt;p&gt;              Collection.AsQueryable().Where(f =&amp;gt; f.FieldId == fieldId &amp;amp;&amp;amp; f.OrgId == orgId);&lt;/p&gt;



</comment>
                            <comment id="1223095" author="craiggwilson" created="Fri, 1 Apr 2016 21:18:38 +0000"  >&lt;p&gt;Hi Sreehari,&lt;/p&gt;

&lt;p&gt;Sorry you are having some issues. Would you please provide a code snippet that is causing the error you are seeing?&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsk0en:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>