<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged schedule</title>
<link>https://overflow.efficy.io/?qa=tag/schedule</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to create a directory on the Efficy Server by workflow ?</title>
<link>https://overflow.efficy.io/?qa=6596/how-to-create-a-directory-on-the-efficy-server-by-workflow</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Actually, I can create a batch file launched by a Windows service each minute.&lt;br&gt;
The content of this batch file is modified by workflow.&lt;br&gt;
I would like to create this directory from the workflow without using the bacth file because I must be sure that the directory has been created before saving pdf files in it.&lt;br&gt;
With the previous solution I must use a timeout before saving the files in the directory.&lt;br&gt;
Any solution ?&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6596/how-to-create-a-directory-on-the-efficy-server-by-workflow</guid>
<pubDate>Tue, 14 Jun 2022 13:27:30 +0000</pubDate>
</item>
<item>
<title>How to schedule a script without the efficy scheduler service ?</title>
<link>https://overflow.efficy.io/?qa=5690/how-to-schedule-script-without-the-efficy-scheduler-service</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;For a customer, we will maybe need to schedule some script, but without using the efficy taskscheduler.&lt;/p&gt;

&lt;p&gt;How can we do that ?&lt;br&gt;
The idea is to call it from windows task scheduler, or from an external scheduling tools.&lt;br&gt;
Is it possible to do it with command line ?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5690/how-to-schedule-script-without-the-efficy-scheduler-service</guid>
<pubDate>Thu, 19 Nov 2020 13:27:08 +0000</pubDate>
</item>
<item>
<title>Access violation at address while using getFileStream</title>
<link>https://overflow.efficy.io/?qa=5431/access-violation-at-address-while-using-getfilestream</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am trying to transform large files (&lt;code&gt;FILES.KIND = 5&lt;/code&gt;) to embedded one.&lt;br&gt;
And I am using the  getFileStream  as I need to assign a &lt;code&gt;FILES.STREAM&lt;/code&gt; field which is null in case of large file.&lt;br&gt;
While running Scheduler or DataSynchro I am getting more and less same error : &lt;code&gt;Access violation at address 000000000083531A in module&lt;/code&gt; on getFileStream step.&lt;br&gt;
I tried different versions (11.2, 11.3, etc.) but still getting the error. &lt;/p&gt;

&lt;p&gt;Here is a small example of the DataSynchro import script: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function EfficyImportRecord(DataStore) {
  var k_File = DataStore.AsString('K_FILE'),
      k_Docu = DataStore.AsString('K_1'),
editDocu = Efficy.openEditContext(ntDocu, k_Docu);
  Efficy.log('KFile: ' + k_File);
  stream = Efficy.getFileStream(editDocu, DataStore);
  Efficy.log('Stream: ' + stream);
  return true;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=1766080721507303177&quot; alt=&quot;datasynchro error&quot;&gt;&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=1564540188812631968&quot; alt=&quot;scheduler script errors&quot;&gt;&lt;br&gt;
Any ideas ?&lt;/p&gt;

&lt;p&gt;Maybe we have already some examples or scripts that are doing large file to embedded , let me know.&lt;/p&gt;

&lt;p&gt;Tnx.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5431/access-violation-at-address-while-using-getfilestream</guid>
<pubDate>Wed, 13 May 2020 10:33:28 +0000</pubDate>
</item>
<item>
<title>In Scheduled serverscripts, is it possible to get more detail on the error?</title>
<link>https://overflow.efficy.io/?qa=1582/scheduled-serverscripts-possible-get-more-detail-the-error</link>
<description>&lt;p&gt;Today when you have a Error in the Schedule Script you will have something like this:&lt;/p&gt;

&lt;p&gt;[2016/05/03 16:04:15.858] Error: WKFL-2142 Error while executing Script &quot;Microsoft JScript runtime error&quot; at line 115 char 5.&lt;br&gt;
Message: &quot;Object doesn't support this property or method&quot;&lt;/p&gt;

&lt;p&gt;If I am doing a &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;try {
} catch (e) {
   Database.Log(e.message);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I am getting only the message &lt;strong&gt;&quot;Object doesn't support this property or method&quot;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Is there only possibility to get also the Error &lt;strong&gt;&quot;WKFL-2142 Error while executing Script &quot;Microsoft JScript runtime error&quot; at line 115 char 5.&quot;&lt;/strong&gt; ?&lt;/p&gt;

&lt;p&gt;I would like to log this information for synchronization purpose.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1582/scheduled-serverscripts-possible-get-more-detail-the-error</guid>
<pubDate>Tue, 03 May 2016 14:08:38 +0000</pubDate>
</item>
</channel>
</rss>