<?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 Error in connecting  Power BI to Fleet API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2398643#M35001</link>
    <description>&lt;P&gt;I have a situation where I am trying to extract distance data of fleets through Fleet company's web API service. I am done with API authentication from where I got a ClientID, UserID &amp;amp; Token. Now using this information, I am trying to make&amp;nbsp; API calls from power bi. Below are the snapshots of steps which I followed;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_0-1647445513412.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685318iA530B12706EF3162/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_0-1647445513412.png" alt="tariqpervez_0-1647445513412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the API call completes it shows null in data and an error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_1-1647445513362.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685319i26FA9F32E3E98764/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_1-1647445513362.png" alt="tariqpervez_1-1647445513362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have further expanded the error below. It says that "TotalDistance" property in "Distance" report cannot be set to a System.Decimal value it should be set to a non-null value of type System.Double&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_2-1647445513696.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685320i76FF5E20527473DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_2-1647445513696.png" alt="tariqpervez_2-1647445513696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apart from this, I have tried making calls from their web API service portal and it runs fines and gives responses in JSON. Below is the snapshot of that&amp;nbsp;&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="tariqpervez_3-1647445513436.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685322i35974195C5EB7C11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_3-1647445513436.png" alt="tariqpervez_3-1647445513436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="tariqpervez_4-1647445513537.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685321i51609A9483BA912E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_4-1647445513537.png" alt="tariqpervez_4-1647445513537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide your valuable feedback on this problem.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 15:46:04 GMT</pubDate>
    <dc:creator>tariqpervez</dc:creator>
    <dc:date>2022-03-16T15:46:04Z</dc:date>
    <item>
      <title>Error in connecting  Power BI to Fleet API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2398643#M35001</link>
      <description>&lt;P&gt;I have a situation where I am trying to extract distance data of fleets through Fleet company's web API service. I am done with API authentication from where I got a ClientID, UserID &amp;amp; Token. Now using this information, I am trying to make&amp;nbsp; API calls from power bi. Below are the snapshots of steps which I followed;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_0-1647445513412.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685318iA530B12706EF3162/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_0-1647445513412.png" alt="tariqpervez_0-1647445513412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the API call completes it shows null in data and an error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_1-1647445513362.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685319i26FA9F32E3E98764/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_1-1647445513362.png" alt="tariqpervez_1-1647445513362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have further expanded the error below. It says that "TotalDistance" property in "Distance" report cannot be set to a System.Decimal value it should be set to a non-null value of type System.Double&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_2-1647445513696.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685320i76FF5E20527473DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_2-1647445513696.png" alt="tariqpervez_2-1647445513696.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apart from this, I have tried making calls from their web API service portal and it runs fines and gives responses in JSON. Below is the snapshot of that&amp;nbsp;&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="tariqpervez_3-1647445513436.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685322i35974195C5EB7C11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_3-1647445513436.png" alt="tariqpervez_3-1647445513436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="tariqpervez_4-1647445513537.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/685321i51609A9483BA912E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tariqpervez_4-1647445513537.png" alt="tariqpervez_4-1647445513537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide your valuable feedback on this problem.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 15:46:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2398643#M35001</guid>
      <dc:creator>tariqpervez</dc:creator>
      <dc:date>2022-03-16T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in connecting  Power BI to Fleet API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2401911#M35042</link>
      <description>&lt;P&gt;the screenshots are too small to read. Show sample code where you supply the "TotalDistance"&amp;nbsp; parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 00:01:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2401911#M35042</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-03-18T00:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error in connecting  Power BI to Fleet API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2402216#M35051</link>
      <description>&lt;P&gt;Please find below zoomed snapshots&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tariqpervez_0-1647573687734.png" style="width: 588px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/686241i8BE0747357EEABCE/image-dimensions/588x428?v=v2" width="588" height="428" role="button" title="tariqpervez_0-1647573687734.png" alt="tariqpervez_0-1647573687734.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="tariqpervez_1-1647573838297.png" style="width: 554px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/686242iCB960FB4675866AF/image-dimensions/554x79?v=v2" width="554" height="79" role="button" title="tariqpervez_1-1647573838297.png" alt="tariqpervez_1-1647573838297.png" /&gt;&lt;/span&gt;&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="tariqpervez_2-1647573911985.png" style="width: 592px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/686243iBB015C51BE767C04/image-dimensions/592x372?v=v2" width="592" height="372" role="button" title="tariqpervez_2-1647573911985.png" alt="tariqpervez_2-1647573911985.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 03:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2402216#M35051</guid>
      <dc:creator>tariqpervez</dc:creator>
      <dc:date>2022-03-18T03:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in connecting  Power BI to Fleet API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2420425#M35191</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/367639"&gt;@tariqpervez&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Perhaps you can take a look at the following blog to change the function usage with 'relativepath' and 'query' options if helps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-in-power-query-and-power-bi-m-code/" target="_blank"&gt;Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code Chris Webb's BI Blog (crossjoin.co.uk)&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, the error message seems to mention a property can't be set to null. I'd like to suggest you also add that with non-null double type default value to the query.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 05:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-in-connecting-Power-BI-to-Fleet-API/m-p/2420425#M35191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-28T05:50:23Z</dc:date>
    </item>
  </channel>
</rss>

