<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compare 2 collection and check if values match in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101304#M48291</link>
    <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;​Thank you once again, but Forgive me, can you show me how you updated the 'Collection Contains Value' action&amp;nbsp; please? sorry&lt;BR /&gt;I am having a bad day today.</description>
    <pubDate>Tue, 30 Nov 2021 12:22:34 GMT</pubDate>
    <dc:creator>LorenzoCapocci1</dc:creator>
    <dc:date>2021-11-30T12:22:34Z</dc:date>
    <item>
      <title>Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101300#M48287</link>
      <description>Hi, &lt;BR /&gt;I hope all is well...&lt;BR /&gt;I am processing a simple comparison of 2 collections, and merging the result into 1, but I have a problem with empty rows...&lt;BR /&gt;basically I would like to keep the empty row if a value is not found in the 2nd column, but I am not able to find a solution... seems simple but for some reason i am unable to apply it&lt;BR /&gt;Below I provide the example of 2 screen shot as the current report result and the wanted result.... &lt;BR /&gt;&lt;BR /&gt;Are you able to provide an example and provide directions?&lt;BR /&gt;thank you very much&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36685.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36696i40E216EB144B694D/image-size/large?v=v2&amp;amp;px=999" role="button" title="36685.png" alt="36685.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Current result&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36686.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36698iD746917CCC2782B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="36686.png" alt="36686.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Wanted result&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36687.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36699i559FF55C202B0EAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="36687.png" alt="36687.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 29 Nov 2021 22:46:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101300#M48287</guid>
      <dc:creator>LorenzoCapocci1</dc:creator>
      <dc:date>2021-11-29T22:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101301#M48288</link>
      <description>Hi Lorenzo,&lt;BR /&gt;&lt;BR /&gt;If I correctly understand, you are validate that the values for material ID present in SDPI collection also exist in COGNOS collection. If they are available then you need to write both the material ID's and also put the match column value as "Yes" and if they are not available you need to only write the SDPI material value, leaving COGNOS value with Match column value as "No". Your wanted collection in that case should be something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36678.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36684iCFD3B470E77AD95E/image-size/large?v=v2&amp;amp;px=999" role="button" title="36678.png" alt="36678.png" /&gt;&lt;/span&gt;&lt;BR /&gt;From the screenshot that you have provided only for first two rows the match value is "Yes" and for the rest of the rows it is "No" even though the material ID's: GI3445304, GI3445404 and GI3445604 exists in both Material_ID_SDPI and Material_ID_Cognos.&lt;BR /&gt;&lt;BR /&gt;Can you once confirm if my understanding is correct or is there some logic that I am missing to identify these match values?</description>
      <pubDate>Tue, 30 Nov 2021 02:30:57 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101301#M48288</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-11-30T02:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101302#M48289</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt; , &lt;BR /&gt;ye you are correct, ​I thought I had this working but I was wrong... basically if the value is not found in the 2nd column, it should just leave a blank cell&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 30 Nov 2021 06:54:38 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101302#M48289</guid>
      <dc:creator>LorenzoCapocci1</dc:creator>
      <dc:date>2021-11-30T06:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101303#M48290</link>
      <description>&lt;P&gt;Thanks for clarifying the doubt. I have attached the sample solution flow below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36679.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36691i456FC3C35C213CE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="36679.png" alt="36679.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see in the flow, first I looped within the SDPI collection which had the values as below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36680.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36685i4B9266E2F2BB4209/image-size/large?v=v2&amp;amp;px=999" role="button" title="36680.png" alt="36680.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The Cognos collection has the below values:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36681.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36692i659C64C71EDD65EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="36681.png" alt="36681.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Within the loop the following actions will take place:&lt;BR /&gt;&lt;BR /&gt;- First, I added a row to a defined collection called as "Final Collection" with the fields: SDPI_MATERIAL_ID (text), COGNOS_MATERIAL_ID (text) and Match? (text)&lt;BR /&gt;- Next, I used the 'Collection Contains Value' action to check if the current material id column value for SDPI collection exists in the Cognos collection to return me a flag value called 'Matched'.&lt;BR /&gt;- If the value of 'Matched' is True, I will set SDPI_MATERIAL_ID and COGNOS_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection and Match? value as "Yes" otherwise if the value value of 'Matched' is False, I will set SDPI_MATERIAL_ID as the current value of MATERIAL_ID column of SDPI Collection, COGNOS_MATERIAL_ID as blank and Match? value as "No"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Post running the solution, the final collection has the following values:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36682.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36693i80A113BEFCEB41CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="36682.png" alt="36682.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Hope the above solution explanation helps you out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 07:25:52 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101303#M48290</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-11-30T07:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101304#M48291</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;​Thank you once again, but Forgive me, can you show me how you updated the 'Collection Contains Value' action&amp;nbsp; please? sorry&lt;BR /&gt;I am having a bad day today.</description>
      <pubDate>Tue, 30 Nov 2021 12:22:34 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101304#M48291</guid>
      <dc:creator>LorenzoCapocci1</dc:creator>
      <dc:date>2021-11-30T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 collection and check if values match</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101305#M48292</link>
      <description>No issues at all &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/40246"&gt;@LorenzoCapocci1&lt;/a&gt;, my bad I forgot to attach this one screenshot. Please find the below parameters for the action stage:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36683.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36700i5AE23D27909A7E5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="36683.png" alt="36683.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36684.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36697i883CBEE0AA4A90E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="36684.png" alt="36684.png" /&gt;&lt;/span&gt;&lt;BR /&gt;​​​</description>
      <pubDate>Tue, 30 Nov 2021 13:54:27 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Compare-2-collection-and-check-if-values-match/m-p/101305#M48292</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-11-30T13:54:27Z</dc:date>
    </item>
  </channel>
</rss>

