<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:49:19 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-4773] Linq3Implementation: MongoDB.Driver.Linq.ExpressionNotSupportedException : Exists</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4773</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;The use of&#160; Linq &quot;Exists&quot; in the query is not supported.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;MongoDB.Driver.Linq.ExpressionNotSupportedException: Expression not supported: p.OrganizationIds.Exists(o =&amp;gt; (o == &quot;045d9fd6-677d-4b9f-a288-4478e75c2da4&quot;)).&lt;/em&gt;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodCallExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.MethodCallExpression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x01419&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.ExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00133&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodTranslators.AnyMethodToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.MethodCallExpression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x000a4&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.MethodCallExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.MethodCallExpression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x011f3&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.ExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00133&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.BinaryExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.BinaryExpression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x000c2&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToAggregationExpressionTranslators.ExpressionToAggregationExpressionTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x0010c&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.TranslateUsingAggregationOperators (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00000&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression, System.Boolean exprOk) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x0000b&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToFilterTranslators.ExpressionToFilterTranslator.TranslateLambda (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.LambdaExpression lambdaExpression, MongoDB.Bson.Serialization.IBsonSerializer parameterSerializer, System.Boolean asRoot) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00093&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToPipelineTranslators.WhereMethodToPipelineTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.MethodCallExpression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x0003e&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToPipelineTranslators.ExpressionToPipelineTranslator.Translate (MongoDB.Driver.Linq.Linq3Implementation.Translators.TranslationContext context, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x003a1&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToExecutableQueryTranslators.ExpressionToExecutableQueryTranslator.Translate&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument,TOutput&amp;#93;&lt;/span&gt; (MongoDB.Driver.Linq.Linq3Implementation.MongoQueryProvider`1&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt; provider, System.Linq.Expressions.Expression expression) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00015&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.Linq.Linq3Implementation.MongoQuery`2&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument,TOutput&amp;#93;&lt;/span&gt;.ToCursorAsync (System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00000&amp;#93;&lt;/span&gt; in &amp;lt;23bc2c72d0e04efa9278964cb99d6993&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at MongoDB.Driver.IAsyncCursorSourceExtensions.ToListAsync&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt; (MongoDB.Driver.IAsyncCursorSource`1&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt; source, System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x0000e&amp;#93;&lt;/span&gt; in &amp;lt;b1986f4c9c644071ac801bfae5975e5e&amp;gt;:0&lt;/em&gt;&#160;&lt;br/&gt;
&#160; &lt;em&gt;at Infrastructure.Database.CosmoMongoDb.GetAccountsByOrganizationIdAsync (System.String organizationId) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x001a7&amp;#93;&lt;/span&gt; in&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Steps to reproduce. If possible, please include a &lt;a href=&quot;http://sscce.org/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Short, Self Contained, Correct (Compilable), Example&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &lt;em&gt;var accounts = await AccountsCollection.AsQueryable().Where(a =&amp;gt;&lt;/em&gt;&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;em&gt;a.Profiles != null &amp;amp;&amp;amp;&lt;/em&gt;&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;em&gt;a.Profiles.Exists(p =&amp;gt; p.OrganizationIds.&lt;/em&gt;&lt;em&gt;Exists&lt;/em&gt;&lt;em&gt;(o =&amp;gt; o == organizationId))).ToListAsync()&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Please provide any additional background information that may be helpful in diagnosing the bug.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2426137">CSHARP-4773</key>
            <summary>Linq3Implementation: MongoDB.Driver.Linq.ExpressionNotSupportedException : Exists</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="sasan.pasha@gmail.com">Sasan Pasha</reporter>
                        <labels>
                            <label>Bug</label>
                    </labels>
                <created>Thu, 24 Aug 2023 21:19:51 +0000</created>
                <updated>Thu, 31 Aug 2023 16:18:55 +0000</updated>
                            <resolved>Thu, 31 Aug 2023 16:18:55 +0000</resolved>
                                    <version>2.21.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5657864" author="dbeng-pm-bot" created="Thu, 24 Aug 2023 21:22:25 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sasan.pasha%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;sasan.pasha@gmail.com&quot;&gt;sasan.pasha@gmail.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="2407444">CSHARP-4743</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2426132">CSHARP-4772</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i25t6g:</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>