<?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: cannot create a SelectionID in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761086#M20278</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your code&amp;nbsp;&lt;EM&gt;looks&lt;/EM&gt; okay, based on the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder()&lt;/FONT&gt; function spec.&lt;/P&gt;&lt;P&gt;This suggests to me that the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;DataViewCategoryColumn&lt;/FONT&gt; you are passing in is not a valid object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Two things I would check:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;That &lt;FONT face="courier new,courier"&gt;category&lt;/FONT&gt; contains an object when you attempt to retrieve it&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;That the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder&lt;/FONT&gt; call is actually being hit - if the above isn't working then this will be the case, as attempting to assign an index from a &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt;-valued array will crash in your browser.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;To assist debugging these two points, I'd re-write the code snippet as follows and look in your browser JS console when running:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let dataViews = options.dataViews;&lt;BR /&gt;let dataView = dataViews[0];&lt;BR /&gt;&lt;BR /&gt;console.log("1 - getting categorical dataview");&lt;BR /&gt;let categorical = dataView.categorical;&lt;BR /&gt;&lt;BR /&gt;console.log("2 - getting category");
let category = categorical.categories[0];&lt;BR /&gt;&lt;BR /&gt;console.log("3 - getting first category");
let dataValue = categorical.values[0];&lt;BR /&gt;console.log("    category:", category);        
&lt;BR /&gt;console.log("4 - creating selection ID");&lt;BR /&gt;let selectionId: ISelectionId = host.createSelectionIdBuilder()
    .withCategory(category, 0)
    .createSelectionId();&lt;BR /&gt;&lt;BR /&gt;console.log("5 - done!");&lt;BR /&gt;console.log("    selection ID", selectionId);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I'm typing this in directly, so you might need to check for syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the happy path is hit, you'll see the following in your console:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;1 - getting categorical dataview
2 - getting category
3 - getting first category
    category  [object details]
4 - creating selection ID
5 - done!
    selection ID  [object details]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If you see output for steps 1 and 2, but not 3, you can assume that the problem is between here, i.e. the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;let category = categorical.categories[0];&lt;/FONT&gt; statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is overkill and you wouldn't package it into your finished visual but sometimes it's a really good idea to be sure exactly where you think is failing, is actually failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/how-to-debug/" target="_self"&gt;could also try this approach&lt;/A&gt;, but I personally haven't got on with it particularly well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully this will help isolate. Let me know how you get on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 23:42:08 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2019-08-07T23:42:08Z</dc:date>
    <item>
      <title>cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/760887#M20273</link>
      <description>&lt;P&gt;My custom visual is based on the sample bar chart from Microsoft.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My capabiliteis.json&lt;/P&gt;&lt;PRE&gt;"dataRoles": [
    {
      "displayName": "Categories",
      "description": "Add your measure here to display its value in the card.",
      "name": "Categories",
      "kind": "Grouping"
    },
    {
      "displayName": "Actual Value",
      "description": "",
      "name": "Actual_Value",
      "kind": "Measure"
    },
    {
      "displayName": "Targets",
      "description": "",
      "name": "Targets",
      "kind": "Measure"
    },
.......&lt;/PRE&gt;&lt;P&gt;My viewmodel&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;export function visualTransform(options: VisualUpdateOptions, visualSettings: VisualSettings, host: IVisualHost): IViewModel {&lt;BR /&gt;&lt;BR /&gt;  let dataViews = options.dataViews;&lt;BR /&gt;let dataView = dataViews[0];&lt;BR /&gt;&lt;BR /&gt;let categorical = dataView.categorical;
        let category = categorical.categories[0];
        let dataValue = categorical.values[0];
        
        
        let selectionId: ISelectionId = host.createSelectionIdBuilder()
            .withCategory(category, 0)
            .createSelectionId();

.............................&lt;/PRE&gt;&lt;P&gt;Validated that all the input data are correct, It stops at the creating selectionID....Not sure why because it is basically the same as in the sample barchart.&amp;nbsp; &amp;nbsp;Also how do I debug in this createselectionidbuilder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/760887#M20273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761086#M20278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your code&amp;nbsp;&lt;EM&gt;looks&lt;/EM&gt; okay, based on the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder()&lt;/FONT&gt; function spec.&lt;/P&gt;&lt;P&gt;This suggests to me that the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;DataViewCategoryColumn&lt;/FONT&gt; you are passing in is not a valid object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Two things I would check:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;That &lt;FONT face="courier new,courier"&gt;category&lt;/FONT&gt; contains an object when you attempt to retrieve it&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;That the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder&lt;/FONT&gt; call is actually being hit - if the above isn't working then this will be the case, as attempting to assign an index from a &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt;-valued array will crash in your browser.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;To assist debugging these two points, I'd re-write the code snippet as follows and look in your browser JS console when running:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let dataViews = options.dataViews;&lt;BR /&gt;let dataView = dataViews[0];&lt;BR /&gt;&lt;BR /&gt;console.log("1 - getting categorical dataview");&lt;BR /&gt;let categorical = dataView.categorical;&lt;BR /&gt;&lt;BR /&gt;console.log("2 - getting category");
let category = categorical.categories[0];&lt;BR /&gt;&lt;BR /&gt;console.log("3 - getting first category");
let dataValue = categorical.values[0];&lt;BR /&gt;console.log("    category:", category);        
&lt;BR /&gt;console.log("4 - creating selection ID");&lt;BR /&gt;let selectionId: ISelectionId = host.createSelectionIdBuilder()
    .withCategory(category, 0)
    .createSelectionId();&lt;BR /&gt;&lt;BR /&gt;console.log("5 - done!");&lt;BR /&gt;console.log("    selection ID", selectionId);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I'm typing this in directly, so you might need to check for syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the happy path is hit, you'll see the following in your console:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;1 - getting categorical dataview
2 - getting category
3 - getting first category
    category  [object details]
4 - creating selection ID
5 - done!
    selection ID  [object details]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If you see output for steps 1 and 2, but not 3, you can assume that the problem is between here, i.e. the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;let category = categorical.categories[0];&lt;/FONT&gt; statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is overkill and you wouldn't package it into your finished visual but sometimes it's a really good idea to be sure exactly where you think is failing, is actually failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/how-to-debug/" target="_self"&gt;could also try this approach&lt;/A&gt;, but I personally haven't got on with it particularly well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully this will help isolate. Let me know how you get on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 23:42:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761086#M20278</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-07T23:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761114#M20279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your code&amp;nbsp;&lt;EM&gt;looks&lt;/EM&gt; okay, based on the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder()&lt;/FONT&gt; function spec.&lt;/P&gt;&lt;P&gt;This suggests to me that the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;DataViewCategoryColumn&lt;/FONT&gt; you are passing in is not a valid object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Two things I would check:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;That &lt;FONT face="courier new,courier"&gt;category&lt;/FONT&gt; contains an object when you attempt to retrieve it&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;That the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder&lt;/FONT&gt; call is actually being hit - if the above isn't working then this will be the case, as attempting to assign an index from a &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt;-valued array will crash in your browser.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;To assist debugging these two points, I'd re-write the code snippet as follows and look in your browser JS console when running:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let dataViews = options.dataViews;&lt;BR /&gt;let dataView = dataViews[0];&lt;BR /&gt;&lt;BR /&gt;console.log("1 - getting categorical dataview");&lt;BR /&gt;let categorical = dataView.categorical;&lt;BR /&gt;&lt;BR /&gt;console.log("2 - getting category");
let category = categorical.categories[0];&lt;BR /&gt;&lt;BR /&gt;console.log("3 - getting first category");
let dataValue = categorical.values[0];&lt;BR /&gt;console.log("    category:", category);        
&lt;BR /&gt;console.log("4 - creating selection ID");&lt;BR /&gt;let selectionId: ISelectionId = host.createSelectionIdBuilder()
    .withCategory(category, 0)
    .createSelectionId();&lt;BR /&gt;&lt;BR /&gt;console.log("5 - done!");&lt;BR /&gt;console.log("    selection ID", selectionId);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I'm typing this in directly, so you might need to check for syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the happy path is hit, you'll see the following in your console:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;1 - getting categorical dataview
2 - getting category
3 - getting first category
    category  [object details]
4 - creating selection ID
5 - done!
    selection ID  [object details]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If you see output for steps 1 and 2, but not 3, you can assume that the problem is between here, i.e. the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;let category = categorical.categories[0];&lt;/FONT&gt; statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is overkill and you wouldn't package it into your finished visual but sometimes it's a really good idea to be sure exactly where you think is failing, is actually failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/how-to-debug/" target="_self"&gt;could also try this approach&lt;/A&gt;, but I personally haven't got on with it particularly well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully this will help isolate. Let me know how you get on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 01:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761114#M20279</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-08T01:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761177#M20281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your code&amp;nbsp;&lt;EM&gt;looks&lt;/EM&gt; okay, based on the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder()&lt;/FONT&gt; function spec.&lt;/P&gt;&lt;P&gt;This suggests to me that the&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;DataViewCategoryColumn&lt;/FONT&gt; you are passing in is not a valid object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Two things I would check:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;That &lt;FONT face="courier new,courier"&gt;category&lt;/FONT&gt; contains an object when you attempt to retrieve it&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;That the &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder&lt;/FONT&gt; call is actually being hit - if the above isn't working then this will be the case, as attempting to assign an index from a &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt;-valued array will crash in your browser.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;To assist debugging these two points, I'd re-write the code snippet as follows and look in your browser JS console when running:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;let dataViews = options.dataViews;&lt;BR /&gt;let dataView = dataViews[0];&lt;BR /&gt;&lt;BR /&gt;console.log("1 - getting categorical dataview");&lt;BR /&gt;let categorical = dataView.categorical;&lt;BR /&gt;&lt;BR /&gt;console.log("2 - getting category");
let category = categorical.categories[0];&lt;BR /&gt;&lt;BR /&gt;console.log("3 - getting first category");
let dataValue = categorical.values[0];&lt;BR /&gt;console.log("    category:", category);        
&lt;BR /&gt;console.log("4 - creating selection ID");&lt;BR /&gt;let selectionId: ISelectionId = host.createSelectionIdBuilder()
    .withCategory(category, 0)
    .createSelectionId();&lt;BR /&gt;&lt;BR /&gt;console.log("5 - done!");&lt;BR /&gt;console.log("    selection ID", selectionId);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I'm typing this in directly, so you might need to check for syntax errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the happy path is hit, you'll see the following in your console:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;1 - getting categorical dataview
2 - getting category
3 - getting first category
    category  [object details]
4 - creating selection ID
5 - done!
    selection ID  [object details]&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If you see output for steps 1 and 2, but not 3, you can assume that the problem is between here, i.e. the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;let category = categorical.categories[0];&lt;/FONT&gt; statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is overkill and you wouldn't package it into your finished visual but sometimes it's a really good idea to be sure exactly where you think is failing, is actually failing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/how-to-debug/" target="_self"&gt;could also try this approach&lt;/A&gt;, but I personally haven't got on with it particularly well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully this will help isolate. Let me know how you get on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 03:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761177#M20281</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-08T03:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761926#M20296</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I see...It looks that it died on the creating selectionID. How do I know what went wrong here? thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="se.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/183813i171B6263189BD083/image-size/large?v=v2&amp;amp;px=999" role="button" title="se.png" alt="se.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:44:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/761926#M20296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762221#M20301</link>
      <description>&lt;P&gt;I agree that this is the failure point but would need to look at the code to ascertain further. Do you have a link you can share at all?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 21:33:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762221#M20301</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-08T21:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762228#M20302</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dropbox ok? See link below.&amp;nbsp; it is still in its early stage and it is a bit messy.&amp;nbsp; Let me know if you can see it.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just Updated the link to public&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 22:19:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762228#M20302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-08T22:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create a SelectionID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762247#M20304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the link - it was very helpful as the issue was not specifically in that part of the code. The &lt;FONT face="courier new,courier"&gt;host&lt;/FONT&gt; object in your &lt;FONT face="courier new,courier"&gt;createSelectionIdBuilder&lt;/FONT&gt; call is &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; at run time. Because of this, there is no method against it and the routine crashes out.&lt;/P&gt;&lt;P&gt;Add the following to your &lt;FONT face="courier new,courier"&gt;constructor&lt;/FONT&gt; function in &lt;FONT face="courier new,courier"&gt;visual.ts&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;this.host = options.host;&lt;/PRE&gt;&lt;P&gt;This will ensure that when it is passed to your &lt;FONT face="courier new,courier"&gt;visualTransform&lt;/FONT&gt; call in the update method, that the &lt;FONT face="courier new,courier"&gt;host&lt;/FONT&gt; is actually instantiated with the correct object.&lt;/P&gt;&lt;P&gt;Here's my output for reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/183896i128560DBFD0B6605/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't need to make any changes to the code in your function detailed above, so your undersanding of the selection ID stuff is all good &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hopefully you're on your way now!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 22:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/cannot-create-a-SelectionID/m-p/762247#M20304</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2019-08-08T22:13:45Z</dc:date>
    </item>
  </channel>
</rss>

