<?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 How to use a globalMap variable in a tMatchGroup's &amp;quot;Match Threshold&amp;quot; in Talend Data Catalog</title>
    <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331922#M1040</link>
    <description>Hi,&lt;BR /&gt;I want to use a variable stored in the globalMap to set the "Match Threshold" area of a&amp;nbsp;tMatchGroup&lt;BR /&gt;The variable is of type String(comma is used for decimal separation), so I am creating a brand new Double variable in a tJava, right before the tMatchGroup like this:&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;String x = globalMap.get("MatchTreshold").toString();&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;x = x.replace(",", "."); &amp;nbsp; &amp;nbsp;// Replace the French comma by a dot&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;globalMap.put("MatchTresholdDouble", Double.parseDouble(x));&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;System.out.println("MatchTresholdDouble: " + globalMap.get("MatchTresholdDouble")); &amp;nbsp;// displays the correct value&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;I tried both&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;globalMap.get("MatchTresholdDouble")&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;Double.parseDouble(globalMap.get("MatchTresholdDouble"))&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;In the "Match Threshold" area of the&amp;nbsp;tMatchGroup but, when running the job, &amp;nbsp;the error message is always:&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#ff3399"&gt;mdm_produit.job_chrg_tbl_ref_udc_stef_v4_0_1.Job_Chrg_Tbl_REF_UDC_Stef_V4 - tMatchGroup_1_GroupIn &lt;B&gt;All attribute matcher weights are 0&lt;/B&gt;. This is an invalid setting!&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;Am I right to think that Talend expects a Double there and could you please provide the correct syntax?&lt;BR /&gt;Thanks,&lt;BR /&gt;Stéphan</description>
    <pubDate>Thu, 24 Mar 2016 21:18:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-24T21:18:11Z</dc:date>
    <item>
      <title>How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331922#M1040</link>
      <description>Hi,&lt;BR /&gt;I want to use a variable stored in the globalMap to set the "Match Threshold" area of a&amp;nbsp;tMatchGroup&lt;BR /&gt;The variable is of type String(comma is used for decimal separation), so I am creating a brand new Double variable in a tJava, right before the tMatchGroup like this:&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;String x = globalMap.get("MatchTreshold").toString();&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;x = x.replace(",", "."); &amp;nbsp; &amp;nbsp;// Replace the French comma by a dot&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;globalMap.put("MatchTresholdDouble", Double.parseDouble(x));&lt;BR /&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;&amp;nbsp; &amp;nbsp;System.out.println("MatchTresholdDouble: " + globalMap.get("MatchTresholdDouble")); &amp;nbsp;// displays the correct value&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;I tried both&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;globalMap.get("MatchTresholdDouble")&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#333399"&gt;Double.parseDouble(globalMap.get("MatchTresholdDouble"))&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;In the "Match Threshold" area of the&amp;nbsp;tMatchGroup but, when running the job, &amp;nbsp;the error message is always:&lt;BR /&gt;&lt;I&gt;&lt;FONT color="#ff3399"&gt;mdm_produit.job_chrg_tbl_ref_udc_stef_v4_0_1.Job_Chrg_Tbl_REF_UDC_Stef_V4 - tMatchGroup_1_GroupIn &lt;B&gt;All attribute matcher weights are 0&lt;/B&gt;. This is an invalid setting!&lt;/FONT&gt;&lt;/I&gt;&lt;BR /&gt;Am I right to think that Talend expects a Double there and could you please provide the correct syntax?&lt;BR /&gt;Thanks,&lt;BR /&gt;Stéphan</description>
      <pubDate>Thu, 24 Mar 2016 21:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331922#M1040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T21:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331923#M1041</link>
      <description>Hard to say, perhaps it is a timing problem. Could you provide here the screenshot of the job?</description>
      <pubDate>Sat, 26 Mar 2016 20:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331923#M1041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-26T20:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331924#M1042</link>
      <description>Thanks for your help 
&lt;B&gt;jlolling&lt;/B&gt;
&lt;BR /&gt;I am having a hard time uploading the screenshot ("Error : The server was unable to save the uploaded file. Please contact the forum administrator at" message). &amp;nbsp;I will ask a colleague to try!
&lt;BR /&gt;My colleague is also unable to upload the screenshot.&amp;nbsp; Would you mind if I sent it to you by your gmail account?&amp;nbsp; Thanks</description>
      <pubDate>Tue, 29 Mar 2016 13:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331924#M1042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T13:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331925#M1043</link>
      <description>Hi, here is the screenshot.</description>
      <pubDate>Tue, 29 Mar 2016 18:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331925#M1043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T18:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331926#M1044</link>
      <description>The server will still not allow us to upload screenshots. &amp;nbsp;Since the message stops at: "Error : The server was unable to save the uploaded file. Please contact the forum administrator at", I simply do not know who to contact.... 
&lt;BR /&gt;Anyways, a tMatchGroup's "Match Threshold" area accepts only values. &amp;nbsp; 
&lt;B&gt;They can be with or without quotes like "0.85" or 0.85.&lt;/B&gt; 
&lt;BR /&gt;But if you try to type in 
&lt;U&gt;any java command&lt;/U&gt; like Double.valueOf("0.85"); or 
&lt;U&gt;any variable name&lt;/U&gt;, the error message is: 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;Exception in component tMatchGroup_1_GroupIn&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;java.lang.NumberFormatException: For input string: "Double.valueOf(0.85);"&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at sun.misc.FloatingDecimal.parseDouble(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at java.lang.Double.parseDouble(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at java.lang.Double.valueOf(Unknown Source)&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#ff3333"&gt;at org.talend.dataquality.record.linkage.grouping.AbstractRecordGrouping.createRecordMatcher(AbstractRecordGrouping.java:545)&lt;/FONT&gt; 
&lt;BR /&gt;It seems like whatever you type in there is treated as a String, even if it is a variable name or a call to a Java method! 
&lt;BR /&gt;I believe someone else had a similar issue here: 
&lt;A href="https://jira.talendforge.org/browse/TDQ-9429" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDQ-9429&lt;/A&gt; 
&lt;BR /&gt;but I cannot tell what the solution was 
&lt;BR /&gt;P.S.: I made a mistake in a previous reply: Error message All attribute matcher weights are 0 &amp;nbsp;was my own fault... Sorry</description>
      <pubDate>Wed, 30 Mar 2016 20:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331926#M1044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T20:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331927#M1045</link>
      <description>Found this workaround:
&lt;BR /&gt;Since an exception occurs when trying to set the "Match Threshold" area of a tMatchGroup with 
&lt;FONT color="#3366ff"&gt;globalMap.get("matchThreshold")&lt;/FONT&gt;:
&lt;BR /&gt;
&lt;FONT color="#ff3333"&gt;&amp;nbsp; &amp;nbsp;Exception in component tMatchGroup_1_GroupIn java.lang.NumberFormatException: For input string: "globalMap.get(matchThreshold)"&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;I tried adding a String variable to the Context and use 
&lt;FONT color="#3366ff"&gt;context.matchThreshold&lt;/FONT&gt; to set the "Match Threshold" area and it worked!!!
&lt;BR /&gt;I did not even have to cast the String into a Double
&lt;BR /&gt;I can't tell you why (even if I do not trust the double quotes of&amp;nbsp;globalMap.get()...)&amp;nbsp;but don't waste too much time with globalMap.get and use a context instead (version 6.0)</description>
      <pubDate>Mon, 04 Apr 2016 16:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331927#M1045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-04T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a globalMap variable in a tMatchGroup's "Match Threshold"</title>
      <link>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331928#M1046</link>
      <description>HI,&lt;BR /&gt;i had the same problem because i want to put context.myVariable&amp;nbsp;instead of a value&lt;BR /&gt;Talend sent me a patch to accept context variable BUT after i try tu put&amp;nbsp;&lt;FONT color="#3366ff"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;globalMap.get("variable") &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;and i met the same mistake&lt;BR /&gt;the patch just accept a value or read the value by recognizing context.VARIABLE . . . thanks beautiful patch&lt;BR /&gt;i was in Talend MDM 5.6.1</description>
      <pubDate>Wed, 20 Apr 2016 13:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Data-Catalog/How-to-use-a-globalMap-variable-in-a-tMatchGroup-s-quot-Match/m-p/2331928#M1046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-20T13:59:14Z</dc:date>
    </item>
  </channel>
</rss>

