<?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 Copy Files task won't run in process flow in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398022#M25587</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My organisation is in the process of migrating onto SAS 9.4 and hence Enterprise Guide. A lot of the scripts that I used regularly involve importing data from excel spreadsheets, which previously wasn't an issue as SAS sat locally on the machine. Whereas now using Enterprise Guide, everything executes on a server outside of our existing network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware of the Copy Files task which allows files to be copied to the SAS server before running a proc import for example, and this works fine, unless the task is run as part of a process flow...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run just the Copy Files task on its own everything works fine, but when run as part of the process flow it just gets skipped over, meaning the program which follows errors straight away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the log which shows for the Copy Files task when run as part of a process flow:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Uploading files from machine "&amp;lt;removed&amp;gt;" to SAS session on "&amp;lt;removed"&amp;gt;.

Using these settings:
	Source file specification: &amp;amp;local_path\Reference\*
	Destination path: &amp;amp;server_path/
	Overwrite existing files: Yes
	Resolve macro references in file paths: Yes
	Convert line endings for text files: No

NOTE: Resolving macro expressions in file paths.  SAS log:&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 08:55:01 GMT</pubDate>
    <dc:creator>dedwards96</dc:creator>
    <dc:date>2017-09-22T08:55:01Z</dc:date>
    <item>
      <title>Copy Files task won't run in process flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398022#M25587</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My organisation is in the process of migrating onto SAS 9.4 and hence Enterprise Guide. A lot of the scripts that I used regularly involve importing data from excel spreadsheets, which previously wasn't an issue as SAS sat locally on the machine. Whereas now using Enterprise Guide, everything executes on a server outside of our existing network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aware of the Copy Files task which allows files to be copied to the SAS server before running a proc import for example, and this works fine, unless the task is run as part of a process flow...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run just the Copy Files task on its own everything works fine, but when run as part of the process flow it just gets skipped over, meaning the program which follows errors straight away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the log which shows for the Copy Files task when run as part of a process flow:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Uploading files from machine "&amp;lt;removed&amp;gt;" to SAS session on "&amp;lt;removed"&amp;gt;.

Using these settings:
	Source file specification: &amp;amp;local_path\Reference\*
	Destination path: &amp;amp;server_path/
	Overwrite existing files: Yes
	Resolve macro references in file paths: Yes
	Convert line endings for text files: No

NOTE: Resolving macro expressions in file paths.  SAS log:&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398022#M25587</guid>
      <dc:creator>dedwards96</dc:creator>
      <dc:date>2017-09-22T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Files task won't run in process flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398025#M25589</link>
      <description>&lt;P&gt;I don't think that task ever writes much to the log because unlike other tasks it doesn't generate SAS statements - it uses "behind-the-scenes" APIs to effect the transfer. Could you tell us what errors you are getting on the next steps as we might be able to infer something from that.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398025#M25589</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-22T09:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Files task won't run in process flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398026#M25590</link>
      <description>&lt;P&gt;Normally when this task runs it says copied xxx bytes from x files to &amp;lt;location on server&amp;gt;. The following statement which errors is a proc import, which shoudl import the excel file that has just uploaded. But since the task didn't run the file doesnt exist. WHen I explicity run the task itself as opposed to the whole process flow it works fine.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398026#M25590</guid>
      <dc:creator>dedwards96</dc:creator>
      <dc:date>2017-09-22T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Files task won't run in process flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398030#M25591</link>
      <description>&lt;P&gt;I think you might have to raise this one with SAS Tech Support - there's just not enough information to go on from the log.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/398030#M25591</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-22T09:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Files task won't run in process flow</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/453584#M29241</link>
      <description>&lt;P&gt;I ran into the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, if the Copy Files task is set to import just one file it runs fine when&amp;nbsp;I run the process flow it is in.&lt;/P&gt;&lt;P&gt;But when using wildcards to import several files, it skips... except when the Copy Files task is the only object in the process flow. Then, it runs just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I found a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, place your Copy Files in a new dedicated process flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, be aware that when you choose to run the project, it follows the order by which process flows appear in the Project Tree. And you can drag the process flows up and down in the project tree.&lt;/P&gt;&lt;P&gt;So, adjust the order of the process flows in the Project Tree so that the process flow with the Copy Files task runs in the right moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to run stuff before AND after the Copy Files task, you may have to split a process flow into two flows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reckon this isn't a perfect workaround, but it may be enough for the challenges you're facing.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Copy-Files-task-won-t-run-in-process-flow/m-p/453584#M29241</guid>
      <dc:creator>José_Costa_biw</dc:creator>
      <dc:date>2018-04-12T14:48:46Z</dc:date>
    </item>
  </channel>
</rss>

