<?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: Copying a Json to another folder as Json.  the specified path does not exist in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Copying-a-Json-to-another-folder-as-Json-the-specified-path-does/m-p/4240453#M4580</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a simple test like below. I created "&lt;SPAN&gt;completed" folder in advance. Then when I ran the pipeline for the first time, it created the sub directory "apc/20231007" and saved the file in this destination folder successfully.&amp;nbsp;So it supports creating a directory when the directory doesn't exist.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_0-1728873968704.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182384i3BB20CE60C5AE724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_0-1728873968704.png" alt="vjingzhanmsft_0-1728873968704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the&amp;nbsp;&lt;SPAN&gt;'PathNotFound' error, you may open the input of the failed activity, check whether the source and sink folder path and file names have correct values which are passed from the parameters.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_1-1728874802033.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182405i34B0CED1F9CE56C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_1-1728874802033.png" alt="vjingzhanmsft_1-1728874802033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, for the current copy data activity, does it intend to copy a single file or a list of files?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 03:08:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-14T03:08:39Z</dc:date>
    <item>
      <title>Copying a Json to another folder as Json.  the specified path does not exist</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Copying-a-Json-to-another-folder-as-Json-the-specified-path-does/m-p/4238764#M4559</link>
      <description>&lt;P&gt;I have a JSON file in a container project. then newdata. then projecta. then a dated folder 20240102 and then the file 2024010210100000.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I want to move it to the folder completed. I want it to create the projecta and the dated folder if they arent already created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried preserve hierarchy but Im still getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FileSystem: 'project'. Path: 'completed/projecta/20231007/2024010210100000.json'. ErrorCode: 'PathNotFound'. Message: 'The specified path does not exist.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have the copy set up like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;json data set with paramters rootFolder, filePath and fileName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I coded in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rootFolder project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filePath newdata/apc/20231007/ (I use a parameter to set this so I can dynamically add the correct dated folder)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fileName 2024010210100000.json (again added dynamically so it can get the correct file)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sink&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;json data set with paramters rootFolder, filePath and fileName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I coded in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rootFolder project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filePath completed/apc/20231007/ (I use a parameter to set this so I can add the correct dated folder)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fileName 2024010210100000.json (again added dynamically so it can get the correct file)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this isnt working because I only have&amp;nbsp;completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought it would just create the folder structure as it goes along. So a new day and when we copy across it would just create the folders.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can any one help me figure this out? I thought this would be a fairly simple one to do&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 11:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Copying-a-Json-to-another-folder-as-Json-the-specified-path-does/m-p/4238764#M4559</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-10-11T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a Json to another folder as Json.  the specified path does not exist</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Copying-a-Json-to-another-folder-as-Json-the-specified-path-does/m-p/4240453#M4580</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made a simple test like below. I created "&lt;SPAN&gt;completed" folder in advance. Then when I ran the pipeline for the first time, it created the sub directory "apc/20231007" and saved the file in this destination folder successfully.&amp;nbsp;So it supports creating a directory when the directory doesn't exist.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_0-1728873968704.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182384i3BB20CE60C5AE724/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_0-1728873968704.png" alt="vjingzhanmsft_0-1728873968704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the&amp;nbsp;&lt;SPAN&gt;'PathNotFound' error, you may open the input of the failed activity, check whether the source and sink folder path and file names have correct values which are passed from the parameters.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vjingzhanmsft_1-1728874802033.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1182405i34B0CED1F9CE56C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vjingzhanmsft_1-1728874802033.png" alt="vjingzhanmsft_1-1728874802033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, for the current copy data activity, does it intend to copy a single file or a list of files?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 03:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Copying-a-Json-to-another-folder-as-Json-the-specified-path-does/m-p/4240453#M4580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-14T03:08:39Z</dc:date>
    </item>
  </channel>
</rss>

