<?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: clone tiles errors in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/314288#M9293</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/48219"&gt;@docgregt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I don't reproduce your issue. After calling the REST API&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt826239.aspx" target="_self"&gt;Clone tile&lt;/A&gt;, I got the targetUrl instead of null. However I'm still finding some issues about the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, "reports/xxxxxx-xx-xx- some reportid" is a related path so when such report doesn't exists in the target workspace, the link doesn't work after cloned. And, unfortunately, as you mentioned, the clone API doesn't support specifying a new target URL. A workaround may be using a external link pointing to the original link, however this workaround won't work if the orginal/target workspaces are for isolated users.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 539px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/72169iCC7810C9FDE2E1CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, the duplicate workspace looks more a workaround than solution in my opinion. There might be more limitations that those &lt;A href="https://powerbi.microsoft.com/en-us/blog/duplicate-workspaces-using-the-power-bi-rest-apis-a-step-by-step-tutorial/" target="_self"&gt;has been listed&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more requests, you can submit&amp;nbsp;them at &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas" target="_self"&gt;Power BI Ideas&lt;/A&gt; and vote it up.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 03:01:20 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-11-30T03:01:20Z</dc:date>
    <item>
      <title>clone tiles errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/313141#M9259</link>
      <description>&lt;P&gt;From the blog "&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Duplicate workspaces using the Power BI REST APIs: a step-by-step tutorial&lt;/FONT&gt;&lt;/STRONG&gt;". This code is quite useful for our usecase. Unfortunately, the piece that clones Tiles only works for pinned tiles from reports. Tiles with links do not get cloned properly and the API seems to have no option for resetting properties. For example:&lt;BR /&gt;{&lt;BR /&gt;"id": "fff7cee8-5ec0-xxxx-ab2f-4ad53c1a99de",&lt;BR /&gt;"title": "",&lt;BR /&gt;"subTitle": "",&lt;BR /&gt;"action": {&lt;BR /&gt;"openUrl": {&lt;BR /&gt;"targetUrl": "/reports/832f0434-6fad-xxxx-9000-f323229246f9"&lt;BR /&gt;},&lt;BR /&gt;"report": null,&lt;BR /&gt;"qAndA": null&lt;BR /&gt;},&lt;BR /&gt;"definition": {&lt;BR /&gt;"imageTile": {&lt;BR /&gt;"imageUrl": "http://xxxxxx/default/PowerVConsumption.png",&lt;BR /&gt;"origin": null&lt;BR /&gt;},&lt;BR /&gt;"ssrsTile": null&lt;BR /&gt;},&lt;BR /&gt;"embedUrl": "&lt;A title="https://app.powerbi.com/embed?dashboardId=bfdc2f13-xxxx-4c48-8952-f2f1d8eaa4f6&amp;amp;tileId=fff7cee8-5ec0-48bf-xxxx-4ad53c1a99de&amp;amp;groupId=d6363564-bfac-4848-xxxx-6493c4de136d" href="https://disq.us/url?url=https%3A%2F%2Fapp.powerbi.com%2Fembed%3FdashboardId%3Dbfdc2f13-xxxx-4c48-8952-f2f1d8eaa4f6%26tileId%3Dfff7cee8-5ec0-48bf-xxxx-4ad53c1a99de%26groupId%3Dd6363564-bfac-4848-xxxx-6493c4de136d%3AgCvsvFGvi5ZqKhuq6YeZlWwOFdE&amp;amp;cuid=3987094" target="_blank" rel="nofollow noopener"&gt;https://app.powerbi.com/emb...&lt;/A&gt;",&lt;BR /&gt;"rowSpan": 0,&lt;BR /&gt;"colSpan": 0&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TargetUrl gets set to null on clone. Clone tile only supports setting following properties:&lt;BR /&gt;{&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;"TargetDashboardId":"df9f0e94-31df-450b-b97f-4461a7e4d308",&lt;BR /&gt;"TargetWorkspaceId":"000588f5-56b1-4a33-a690-fc25343d3fae",&lt;BR /&gt;"TargetReportId":"",&lt;BR /&gt;"TargetModelId":""&lt;BR /&gt;"PositionConflictAction":"Tail|Abort"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Why? Why not add all the properties and let end user to set them or at least clone them.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 22:37:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/313141#M9259</guid>
      <dc:creator>docgregt</dc:creator>
      <dc:date>2017-11-28T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: clone tiles errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/314288#M9293</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/48219"&gt;@docgregt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I don't reproduce your issue. After calling the REST API&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt826239.aspx" target="_self"&gt;Clone tile&lt;/A&gt;, I got the targetUrl instead of null. However I'm still finding some issues about the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case, "reports/xxxxxx-xx-xx- some reportid" is a related path so when such report doesn't exists in the target workspace, the link doesn't work after cloned. And, unfortunately, as you mentioned, the clone API doesn't support specifying a new target URL. A workaround may be using a external link pointing to the original link, however this workaround won't work if the orginal/target workspaces are for isolated users.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 539px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/72169iCC7810C9FDE2E1CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, the duplicate workspace looks more a workaround than solution in my opinion. There might be more limitations that those &lt;A href="https://powerbi.microsoft.com/en-us/blog/duplicate-workspaces-using-the-power-bi-rest-apis-a-step-by-step-tutorial/" target="_self"&gt;has been listed&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more requests, you can submit&amp;nbsp;them at &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas" target="_self"&gt;Power BI Ideas&lt;/A&gt; and vote it up.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 03:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/314288#M9293</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-30T03:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: clone tiles errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/389065#M11565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that clones reports, dashboards and tiles into a different workspace.&lt;/P&gt;&lt;P&gt;Reports and dashboards are cloned correctly.&lt;/P&gt;&lt;P&gt;When cloning tiles, I get the following error:&lt;/P&gt;&lt;P&gt;System.Net.WebException: The remote server returned an error: (401) Unauthorized.&lt;BR /&gt;at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)&lt;BR /&gt;at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function GetAuthToken&lt;BR /&gt;{&lt;BR /&gt;$adal = "${env:ProgramFiles}\WindowsPowerShell\Modules\AzureRM.profile\4.5.0\Microsoft.IdentityModel.Clients.ActiveDirectory.dll"&lt;BR /&gt;&lt;BR /&gt;$adalforms = "${env:ProgramFiles}\WindowsPowerShell\Modules\AzureRM.profile\4.5.0\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll"&lt;BR /&gt;&lt;BR /&gt;[System.Reflection.Assembly]::LoadFrom($adal) | Out-Null&lt;/P&gt;&lt;P&gt;[System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null&lt;/P&gt;&lt;P&gt;$redirectUri = "urn:ietf:wg:oauth:2.0:oob"&lt;/P&gt;&lt;P&gt;$resourceAppIdURI = "&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;$authority = "&lt;A href="https://login.microsoftonline.com/common/oauth2/authorize" target="_blank"&gt;https://login.microsoftonline.com/common/oauth2/authorize&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;$authContext = New-Object "Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext" -ArgumentList $authority&lt;/P&gt;&lt;P&gt;$authResult = $authContext.AcquireToken($resourceAppIdURI, $clientId, $redirectUri, "Auto")&lt;/P&gt;&lt;P&gt;return $authResult&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# PART 1: Authentication&lt;BR /&gt;# ==================================================================&lt;BR /&gt;$token = GetAuthToken&lt;/P&gt;&lt;P&gt;# Building Rest API header with authorization token&lt;BR /&gt;$auth_header = @{&lt;BR /&gt;'Content-Type'='application/json'&lt;BR /&gt;'Authorization'=$token.CreateAuthorizationHeader()&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!!!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 21:38:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/389065#M11565</guid>
      <dc:creator>MarianoCatalano</dc:creator>
      <dc:date>2018-04-03T21:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: clone tiles errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/389073#M11566</link>
      <description>&lt;P&gt;I was able to make it work!!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 22:17:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/389073#M11566</guid>
      <dc:creator>MarianoCatalano</dc:creator>
      <dc:date>2018-04-03T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: clone tiles errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/404688#M12071</link>
      <description>&lt;P&gt;Hi Mariano, can you share how you managed to make it work? I am also facing the same exact issue (unauthorised). Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 03:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/clone-tiles-errors/m-p/404688#M12071</guid>
      <dc:creator>ignatiusw</dc:creator>
      <dc:date>2018-04-26T03:33:26Z</dc:date>
    </item>
  </channel>
</rss>

