<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:52:32 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>[SERVER-39599] i am getting Error : MongoError: No array filter found for identifier &apos;i&apos; in path &apos;mainCourse.$[i].subCourse.$[j].ppt&apos;</title>
                <link>https://jira.mongodb.org/browse/SERVER-39599</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;var pId=random(&apos;Aa0&apos;, 6);&lt;br/&gt;
db.collection(&apos;test&apos;).updateOne({ F_id : req.params.F_id },{ $push : { &quot;mainCourse.$&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;.subCourse.$&lt;span class=&quot;error&quot;&gt;&amp;#91;j&amp;#93;&lt;/span&gt;.ppt&quot; : &lt;/p&gt;
{ pageid : pId , pagelink : link+&apos;/ppt/&apos;+fileName }
&lt;p&gt; } } ,{ arrayFilters : [ &lt;/p&gt;
{ &apos;i.id&apos; : req.params.MC_id }
&lt;p&gt;, { &quot;j.id&quot; : req.params.SC_id } ]}, (e,r)=&amp;gt;{&lt;br/&gt;
if(e)&lt;/p&gt;
{
return res.send(\{Error :&apos;Y&apos; , msg :&apos;Here Database Error &apos;+e}
&lt;p&gt;);&lt;br/&gt;
}&lt;br/&gt;
return res.send({Error :&apos;N&apos; , msg :&apos;PPT Added Successfully&apos;});&lt;br/&gt;
});&lt;br/&gt;
&#160;&lt;br/&gt;
i need to push data in ppt&#160; see in ScreenShot&lt;br/&gt;
&#160;&lt;br/&gt;
i am getting Error like this :&lt;br/&gt;
&#160;&lt;br/&gt;
MongoError: No array filter found for identifier &apos;i&apos; in path &apos;mainCourse.$&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;.subCourse.$&lt;span class=&quot;error&quot;&gt;&amp;#91;j&amp;#93;&lt;/span&gt;.ppt&apos;&lt;br/&gt;
&#160;&lt;br/&gt;
or Any other way to push data in ppt please give suggestion&lt;br/&gt;
&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="698531">SERVER-39599</key>
            <summary>i am getting Error : MongoError: No array filter found for identifier &apos;i&apos; in path &apos;mainCourse.$[i].subCourse.$[j].ppt&apos;</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="m_digant">Malaviya Digant</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Feb 2019 12:52:16 +0000</created>
                <updated>Tue, 19 Feb 2019 18:26:08 +0000</updated>
                            <resolved>Tue, 19 Feb 2019 18:26:08 +0000</resolved>
                                    <version>4.0.4</version>
                                                    <component>JavaScript</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2155939" author="thomas.schubert" created="Tue, 19 Feb 2019 18:26:08 +0000"  >&lt;p&gt;Thanks for the update, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=m_digant&quot; class=&quot;user-hover&quot; rel=&quot;m_digant&quot;&gt;m_digant&lt;/a&gt;. I&apos;m glad you were able to identify and correct the issue.&lt;/p&gt;</comment>
                            <comment id="2154130" author="m_digant" created="Sat, 16 Feb 2019 07:26:31 +0000"  >&lt;p&gt;Issue is solve there is problem in Nodejs Version&lt;/p&gt;

&lt;p&gt;if using mongodb version &quot;2.2.34&quot; in nodejs side then use below syntex&lt;/p&gt;

&lt;p&gt;mc and sc = which array position u need to store&lt;br/&gt;
var qry2= { F_id :req.params.F_id , mainCourse : { $elemMatch : { id :req.params.MC_id , subCourse :{ $elemMatch : &lt;/p&gt;
{ id :req.params.SC_id }
&lt;p&gt; } } } }; // for my docment u can see in img&lt;br/&gt;
db.collection(&apos;test&apos;).update(qry2,{ $push : { &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;mainCourse.&amp;quot;+mc+&amp;quot;.subCourse.&amp;quot;+sc+&amp;quot;.ppt&amp;quot;&amp;#93;&lt;/span&gt; : &lt;/p&gt;
{ pageid : pId , pagelink : link+&apos;/ppt/&apos;+fileName }
&lt;p&gt; } } , (e,r)=&amp;gt;{&lt;br/&gt;
if(e)&lt;/p&gt;
{
returnres.send(\{Error :&apos;Y&apos; , msg :&apos;Here Database Error &apos;+e}
&lt;p&gt;);&lt;br/&gt;
}&lt;br/&gt;
returnres.send({Error :&apos;N&apos; , msg :&apos;PPT Added Sucessfully&apos;});&lt;br/&gt;
});&lt;/p&gt;</comment>
                            <comment id="2154117" author="m_digant" created="Sat, 16 Feb 2019 04:23:33 +0000"  >&lt;p&gt;Any one here to help me??? i am already waste my 1 day if any one know please give me suggestions..&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="209268" name="Screen Shot 2019-02-15 at 6.15.17 PM.png" size="25745" author="m_digant" created="Fri, 15 Feb 2019 12:49:21 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 19 Feb 2019 18:26:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 51 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 51 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>m_digant</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hunos7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hudgan:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hunb1j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>