<?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: New connection Creation in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4254681#M4502</link>
    <description>&lt;P&gt;Can you use RelativePath?&lt;/P&gt;&lt;P&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/amp/" target="_blank"&gt;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/amp/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 15:30:40 GMT</pubDate>
    <dc:creator>frithjof_v</dc:creator>
    <dc:date>2024-10-23T15:30:40Z</dc:date>
    <item>
      <title>New connection Creation</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4253613#M4499</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;&lt;BR /&gt;I'm retrieving&amp;nbsp;and API that give me an export ID and I want to check that whether the API is done processing or not and once processing is done I'll store the file to my warehouse using dataflow gen2. I have written an recursive function for that. For each new export ID it'll be included to the API url. Now my problem for each new export ID it creates new connection which hindrances my flow. Can I avoid saving the connection?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;This is the error that pops up each time a new ID is created. I want to automate this using pipeline. If this pops up for each run I can't do that. I'm including the function where this error pops up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export_id = GetExportid[id],

    geturl = (group_id, report_id, access_token, export_id) =&amp;gt;
    let
        check = CheckStatus(group_id, report_id, access_token, export_id),
        status = check[status],

        file_url = if status = "Succeeded" then
            check[resourceLocation]
        else
            Function.InvokeAfter(() =&amp;gt; @geturl(group_id, report_id, access_token, export_id), #duration(0, 0, 0, 30))
    in
        file_url,
    
    file_loc = geturl(group_id, report_id, access_token, export_id)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help me on this, Thanks in advance&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Fazil M&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4253613#M4499</guid>
      <dc:creator>M0hamedFazil</dc:creator>
      <dc:date>2024-10-23T06:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: New connection Creation</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4254681#M4502</link>
      <description>&lt;P&gt;Can you use RelativePath?&lt;/P&gt;&lt;P&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/amp/" target="_blank"&gt;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/amp/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 15:30:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4254681#M4502</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-10-23T15:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: New connection Creation</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255370#M4504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783404" data-lia-user-login="M0hamedFazil" class="lia-mention lia-mention-user"&gt;M0hamedFazil&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether you can add a retry mechanism&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;export_id = GetExportid[id],

geturl = (group_id, report_id, access_token, export_id, connection) =&amp;gt;
let
    check = CheckStatus(group_id, report_id, access_token, export_id, connection),
    status = check[status],

    file_url = if status = "Succeeded" then
        check[resourceLocation]
    else
        Function.InvokeAfter(() =&amp;gt; @geturl(group_id, report_id, access_token, export_id, connection), #duration(0, 0, 0, 30))
in
    file_url,

// Initialize connection once and pass it to the function
connection = InitializeConnection(),
file_loc = geturl(group_id, report_id, access_token, export_id, connection)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 02:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255370#M4504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-24T02:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: New connection Creation</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255433#M4505</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437984" data-lia-user-login="frithjof_v" class="lia-mention lia-mention-user"&gt;frithjof_v&lt;/a&gt;, Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I read the blog and used the relative path and yes it worked. Thanks&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Fazil M&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255433#M4505</guid>
      <dc:creator>M0hamedFazil</dc:creator>
      <dc:date>2024-10-24T04:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: New connection Creation</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255436#M4506</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;, Thanks for the reply&lt;BR /&gt;&lt;BR /&gt;I have solved this and I was facing a problem where the flow started running and I think it sturk at some point. Can you please tell how to initiate the connection, How the function looks like?. I'll try initiate the connection and update with that here. Thanks&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Fazil M&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:33:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/New-connection-Creation/m-p/4255436#M4506</guid>
      <dc:creator>M0hamedFazil</dc:creator>
      <dc:date>2024-10-24T04:33:01Z</dc:date>
    </item>
  </channel>
</rss>

