<?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 Data mapping and visual update not working in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/941354#M22397</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have another problem with the data mapping.&lt;BR /&gt;When I drag and drop data fields (three fields), the visual does not update and I do not understand why.&lt;/P&gt;&lt;P&gt;I have drawings which do not depend on the data that have to be displayed and I commented the use of data code in my update method in visual.ts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my data fields :&lt;BR /&gt;I wish to drag and drop one grouping column C1 which will be displayed in a legend and two others columns (C2 and C3) in values datarole) which will be the X,Y values for each row of C1 to be displayed as scatter plot in the visual.&lt;/P&gt;&lt;P&gt;I have this structure in my capabilities.json :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataRoles": [
        {
            "displayName": "Column",
            "name": "column",
            "kind": "Grouping"
        },
        {
            "displayName": "Value",
            "name": "value",
            "kind": "Measure"
        }
    ]
//...
 "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {
                            "for": {
                                "in": "column"
                            }
                        },
                        {
                            "for": {
                                "in": "value"
                            }
                        }
                    ]
                }
            }
        }
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the same as in example from Microsoft documentation and as far as I understand, it seemed be what I need.&lt;/P&gt;&lt;P&gt;Thank in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 18:21:26 GMT</pubDate>
    <dc:creator>augustindelaf</dc:creator>
    <dc:date>2020-02-20T18:21:26Z</dc:date>
    <item>
      <title>Data mapping and visual update not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/941354#M22397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have another problem with the data mapping.&lt;BR /&gt;When I drag and drop data fields (three fields), the visual does not update and I do not understand why.&lt;/P&gt;&lt;P&gt;I have drawings which do not depend on the data that have to be displayed and I commented the use of data code in my update method in visual.ts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my data fields :&lt;BR /&gt;I wish to drag and drop one grouping column C1 which will be displayed in a legend and two others columns (C2 and C3) in values datarole) which will be the X,Y values for each row of C1 to be displayed as scatter plot in the visual.&lt;/P&gt;&lt;P&gt;I have this structure in my capabilities.json :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"dataRoles": [
        {
            "displayName": "Column",
            "name": "column",
            "kind": "Grouping"
        },
        {
            "displayName": "Value",
            "name": "value",
            "kind": "Measure"
        }
    ]
//...
 "dataViewMappings": [
        {
            "table": {
                "rows": {
                    "select": [
                        {
                            "for": {
                                "in": "column"
                            }
                        },
                        {
                            "for": {
                                "in": "value"
                            }
                        }
                    ]
                }
            }
        }
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the same as in example from Microsoft documentation and as far as I understand, it seemed be what I need.&lt;/P&gt;&lt;P&gt;Thank in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 18:21:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/941354#M22397</guid>
      <dc:creator>augustindelaf</dc:creator>
      <dc:date>2020-02-20T18:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data mapping and visual update not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/941388#M22398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="21853" data-lia-user-login="augustindelaf" class="lia-mention lia-mention-user"&gt;augustindelaf&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can confirm the &lt;FONT face="courier new,courier"&gt;dataViewMapping&lt;/FONT&gt; looks as expected by checking the raw data for the developer visual, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the table shown under the visual looks as you might expect, then it is likely to be something in your visual's &lt;FONT face="courier new,courier"&gt;update&lt;/FONT&gt; method rather than the &lt;FONT face="courier new,courier"&gt;dataViewMapping&lt;/FONT&gt;. If there's no error handling set up (e.g. using &lt;FONT face="courier new,courier"&gt;try&lt;/FONT&gt; ... &lt;FONT face="courier new,courier"&gt;catch&lt;/FONT&gt;) in your update method then visuals often just seem to be doing nothing when they're actually failing at a point you might not expect.&lt;/P&gt;
&lt;P&gt;Are you able to share your code (including all of &lt;FONT face="courier new,courier"&gt;capabilities.json&lt;/FONT&gt;, and &lt;FONT face="courier new,courier"&gt;package.json&lt;/FONT&gt; if you're using a particular node package) so that I can try and replicate and see where it might be getting stuck?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 18:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/941388#M22398</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-02-20T18:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data mapping and visual update not working</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/943272#M22420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not know that the visual silently does not display when an exception is thrown. Thank you very much.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With your advices, I manage to find the issue : it was in my constructor : some test code threw an exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Data-mapping-and-visual-update-not-working/m-p/943272#M22420</guid>
      <dc:creator>augustindelaf</dc:creator>
      <dc:date>2020-02-21T18:31:21Z</dc:date>
    </item>
  </channel>
</rss>

