<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions and answers in Utilities</title>
<link>https://overflow.efficy.io/?qa=qa/developers/utilities</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: Datasynchro cuts string after 510 characters</title>
<link>https://overflow.efficy.io/?qa=4128/datasynchro-cuts-string-after-510-characters&amp;show=7089#a7089</link>
<description>&lt;p&gt;For those who are interested and still encountering the issue here is why and how to solve it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens ?&lt;/strong&gt; &lt;br&gt;
If you going through the setup of ODBC Excel drive you can see the &quot;Options&amp;gt;&amp;gt;&quot; button. If you click on it a &quot;Driver&quot; options shows up with &quot;Rows to Scan&quot; to 8. What happens is that Excel reads only the first 8 rows and based on them decides how log is the cell. If your first 8 rows has a longest cell with 100 characters for the column then it will consider the max length as 100 characters. &lt;br&gt;
Unfortunate if you try to change the &quot;Rows To Scan&quot; the ODBC doesn't save it and throws a warning/error &quot;Invalid rows to scan&quot;.&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=4118514166174025667&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to solve it ?&lt;/strong&gt; &lt;br&gt;
Several suggestions were found on internet. &lt;/p&gt;

&lt;p&gt;1.The one that worked for me was to change the registry key. Open registry editor and search for &lt;code&gt;TypeGuessRows&lt;/code&gt;. &lt;br&gt;
On my machine it was in : &lt;code&gt;\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines\Excel&lt;/code&gt;.&lt;br&gt;
On one of the clients on-premise machine it was in : &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines\Excel\&lt;/code&gt; .&lt;br&gt;
You shold just change the following elements: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;TypeGuessRows to 0&lt;/li&gt;
&lt;li&gt;ImportMixedTypes to Text (this one already was on text)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2.There is an another solution, to place the row with the longest cell string on top of the list (in the first 8 rows of Excel). I didn't tried it yet, but sound logical if the ODBC reads only the first 8 rows by default =&amp;gt; to confirm&lt;/p&gt;

&lt;p&gt;The most details and solutions have been found in this &lt;a rel=&quot;nofollow&quot; href=&quot;https://stackoverflow.com/a/3806372&quot;&gt;stackoverflow thread&lt;/a&gt;. &lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4128/datasynchro-cuts-string-after-510-characters&amp;show=7089#a7089</guid>
<pubDate>Mon, 12 Aug 2024 05:24:30 +0000</pubDate>
</item>
<item>
<title>How to import Jpg or png images located on a Wordpress html place</title>
<link>https://overflow.efficy.io/?qa=6991/how-to-import-jpg-or-png-images-located-wordpress-html-place</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have to import into Efficy 5000 image files located like this :&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://serveurtravail.planeteformations.com/wp-content/uploads/2023/08/WORK-Sublime-NZ-Natural-Hickory.png&quot;&gt;https://serveurtravail.planeteformations.com/wp-content/uploads/2023/08/WORK-Sublime-NZ-Natural-Hickory.png&lt;/a&gt;&lt;br&gt;
Is there any solution via the datasynchro tool ?&lt;br&gt;
Thank you&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6991/how-to-import-jpg-or-png-images-located-wordpress-html-place</guid>
<pubDate>Sat, 21 Oct 2023 18:37:03 +0000</pubDate>
</item>
<item>
<title>Answered: SQL request to retrieve the complete field list from Efficy Metadata by Table</title>
<link>https://overflow.efficy.io/?qa=6834/request-retrieve-complete-field-list-efficy-metadata-table&amp;show=6835#a6835</link>
<description>&lt;p&gt;I preferred this version&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;select * from (
select 
CONCAT(
case when SF.ISCUSTOM = '1' and SF.K_FIELD &amp;gt; 100 
THEN 'Custom' 
else 'Std'
end,
case 
when ST.KIND = 'E' or ST.KIND = 'A' or ST.KIND = 'B' or ST.KIND = 'N' then ' Entity'
when ST.KIND = 'L' then ' Lookup'
when ST.KIND = 'C' then ' Category'
when ST.KIND = 'S' then ' System Table'
when ST.KIND = 'R' then ' Relation Table'
else ST.KIND 
end,
' field'
) &quot;Description/Rule&quot;
,case when CHARINDEX ('$',  ST.NAME) &amp;gt; 0 
THEN concat( SUBSTRING ( ST.NAME , 0 , CHARINDEX ('$',  ST.NAME) ) ,'.',ST.NAME) 
ELSE ST.NAME
END as &quot;TableName&quot;
,case when SECTFIELDS.CONTEXT='C' then 'Efficy Consult' 
      when SECTFIELDS.CONTEXT='E' then 'Efficy Edit'
      when SECTFIELDS.CONTEXT='M' then 'Mobile Consult' 
      when SECTFIELDS.CONTEXT='N' then 'Mobile Edit'
      else '' end &quot;Form Context&quot;
,SF.NAME &quot;FieldName&quot;
,case when SF.USAGE = 'K' then 'Yes' else 'No' end as &quot;Key Field&quot;
,COALESCE(SECTFIELDS.[Form Name],'') &quot;Form Name&quot;
,COALESCE(SECTFIELDS.SECTNAME,'') &quot;Section Name&quot;
,COALESCE(SECTFIELDS.SECTSORT, 0) &quot;Section Sort&quot;
,COALESCE(SECTFIELDS.SECTFIELDSORT, 0) &quot;Section Field Sort&quot;
,case when SECTFIELDS.VISIBLE = '0' then 'Never displayed'
      when SECTFIELDS.VISIBLE = '1' then 'Displayed if not empty'
  when SECTFIELDS.VISIBLE = '2' then 'Always displayed'
  when SECTFIELDS.VISIBLE = 'D' then 'Removed from section' -- A Corrriger !!?
  else '' end &quot;Visibile in Section&quot;
,case when SF.ISCUSTOM = '0' then 'No' else 'Yes' end &quot;Customized&quot;
,case  when SF.USAGE = 'P' then 'Virtual Field not queryable'
       when SF.DATATYPE = 'N' then 'Float' 
       when SF.DATATYPE = 'C' then 'Float (Currency)' 
       when SF.DATATYPE = 'B' then 'Blob'
       when SF.DATATYPE = 'D' then 'Date'
       when SF.DATATYPE = 'T' then 'DateTime'
       when SF.DATATYPE = 'A' then 
case when SF.K_LOOKUPTABLE &amp;gt; 0 then 
case when SF.DATALENGTH = 255 then CONCAT('Multi-Value Lookup by Name : varchar(',SF.DATALENGTH,')')
else CONCAT('Lookup by Name : varchar(',SF.DATALENGTH,')') end
else CONCAT('varchar(',SF.DATALENGTH,')') end
       when SF.DATATYPE = 'L' then 'Boolean (char(1))'
       when SF.DATATYPE = 'H' then 'Character'
       when SF.DATATYPE = 'S' then 'Small Int'
       when SF.DATATYPE = 'I' then 
case when SF.K_LOOKUPTABLE &amp;gt; 0 then 'Lookup by key'
else 'Integer' end
       when SF.DATATYPE = 'M' then 'Blob'
   when SF.DATATYPE = '?' then 'Not a Field= Categorie Label'
       else CONCAT('unknown Type(',SF.DATATYPE,')')
  end &quot;Data Type&quot;
,case when SF.ALLOWNULL = '1' then '' else 'Yes' end &quot;Mandatory&quot;
,COALESCE(SF.DEFAULTVALUE, '') &quot;Default Values&quot;
,COALESCE(SP.NAME, '') &quot;Panel&quot;
, case when SF.K_TABLE = SF.K_LOOKUPTABLE then
CONCAT('Link to SQL function ', SF.LOOKUPASSOCIATE)
  else 
COALESCE((select top 1 CONCAT('Link to table ',STL.NAME,'(',STL.K_TABLE,') field ', SFL.NAME, '(', SFL.K_FIELD ,')') from SYS_FIELDS SFL 
inner join SYS_TABLES STL on STL.K_TABLE = SFL.K_TABLE
where SFL.K_TABLE = SF.K_LOOKUPTABLE and SFL.K_FIELD = SF.K_LOOKUPFIELD), '')
  end &quot;Lookup Info&quot;
, convert(varchar, SF.D_CHANGE, 103) &quot;Modification Date&quot;
,COALESCE(REPLACE(REPLACE(SFLAB_EN.LABEL, CHAR(10), ''), CHAR(13), ' '), '') &quot;Default Label&quot;
,COALESCE(REPLACE(REPLACE(SFLAB_DE.LABEL, CHAR(10), ''), CHAR(13), ' '), '') &quot;Deutsch (DE):&quot;
,COALESCE(REPLACE(REPLACE(SFLAB_NL.LABEL, CHAR(10), ''), CHAR(13), ' '), '') &quot;Nederlands (NL):&quot;
,COALESCE(REPLACE(REPLACE(SFLAB_FR.LABEL, CHAR(10), ''), CHAR(13), ' '), '') &quot;French (FR):&quot;
,COALESCE(REPLACE(REPLACE(SFLAB_ES.LABEL, CHAR(10), ''), CHAR(13), ' '), '') &quot;Spanish (ES):&quot;

from SYS_FIELDS SF
left join (
select FORMS.K_FORM, FORMS.NAME &quot;Form Name&quot;, FORMS.CONTEXT,
SECF.K_SECTION, SEC.NAME &quot;SECTNAME&quot;, SEC.K_SORT &quot;SECTSORT&quot; , SECF.K_SORT &quot;SECTFIELDSORT&quot;,
SECF.K_SECTFIELD, SECF.VISIBLE, SECF.[DEFINITION], SF.K_TABLE, ST.NAME as &quot;Table Name&quot;, SF.K_FIELD, SF.NAME &quot;Field Name&quot;
from SYS_SECTFIELDS SECF
left join SYS_SECTIONS SEC on SEC.K_SECTION = SECF.K_SECTION
left join SYS_FORMS FORMS on FORMS.K_FORM = SEC.K_FORM
left join SYS_FIELDS SF on SF.K_TABLE = SECF.K_TABLE and SF.K_FIELD = SECF.K_FIELD
left join SYS_TABLES ST on ST.K_TABLE = SF.K_TABLE
) SECTFIELDS on SF.K_TABLE = SECTFIELDS.K_TABLE and SF.K_FIELD = SECTFIELDS.K_FIELD
inner join SYS_TABLES ST on ST.K_TABLE = SF.K_TABLE
left join SYS_LABELS SFLAB_EN on SFLAB_EN.K_LABEL = SF.K_LABEL and SFLAB_EN.k_language=0
left join SYS_LABELS SFLAB_AR on SFLAB_AR.K_LABEL = SF.K_LABEL and SFLAB_AR.k_language=1
left join SYS_LABELS SFLAB_DE on SFLAB_DE.K_LABEL = SF.K_LABEL and SFLAB_DE.k_language=7
left join SYS_LABELS SFLAB_ES on SFLAB_ES.K_LABEL = SF.K_LABEL and SFLAB_ES.k_language=10
left join SYS_LABELS SFLAB_FR on SFLAB_FR.K_LABEL = SF.K_LABEL and SFLAB_FR.k_language=12
left join SYS_LABELS SFLAB_JA on SFLAB_JA.K_LABEL = SF.K_LABEL and SFLAB_JA.k_language=17
left join SYS_LABELS SFLAB_NL on SFLAB_NL.K_LABEL = SF.K_LABEL and SFLAB_NL.k_language=19
left join SYS_LABELS SFLAB_PL on SFLAB_PL.K_LABEL = SF.K_LABEL and SFLAB_PL.k_language=21
left join SYS_LABELS SFLAB_TR on SFLAB_TR.K_LABEL = SF.K_LABEL and SFLAB_TR.k_language=31
left join SYS_PANELS SP on SF.PANEL = SP.K_PANEL and SF.K_TABLE = SP.K_TABLE

union

select 
case when ST.ISCUSTOM = '1' THEN 
case 
when ST.KIND = 'E' or ST.KIND = 'A' or ST.KIND = 'B' or ST.KIND = 'N' then 'Custom Entity'
when ST.KIND = 'L' then 'Custom Lookup'
when ST.KIND = 'C' then 'Custom Category'
when ST.KIND = 'S' then 'Custom System Table'
when ST.KIND = 'R' then 'Custom Relation Table'
else ST.KIND 
end 
  Else
case 
when ST.KIND = 'E' or ST.KIND = 'A' or ST.KIND = 'B' or ST.KIND = 'N' then 'Std Entity'
when ST.KIND = 'L' then 'Std Lookup'
when ST.KIND = 'C' then 'Std Category'
when ST.KIND = 'S' then 'Std System Table'
when ST.KIND = 'R' then 'Std Relation Table'
else ST.KIND
end 
  end &quot;Description/Rule&quot;
,case when CHARINDEX ('$',  ST.NAME) &amp;gt; 0 
THEN concat( SUBSTRING ( ST.NAME , 0 , CHARINDEX ('$',  ST.NAME) ) ,'.',ST.NAME) 
ELSE ST.NAME
END as &quot;TableName&quot;

,'' &quot;Form Context&quot;
,'' &quot;FieldName&quot;
,'' &quot;Key Field&quot;
,'' &quot;Form Name&quot;
,'' &quot;Section Name&quot;
,0 &quot;Section Sort&quot;
,0 &quot;Section Field Sort&quot;
, '' &quot;Visibile in Section&quot;
,case when ST.ISCUSTOM = '0' then 'No' else 'Yes' end &quot;Customized&quot;
,'' &quot;Data Type&quot;
,'' &quot;Mandatory&quot;
,'' &quot;Default Values&quot;
,'' &quot;Panel&quot;
,''  &quot;Lookup Info&quot;
, convert(varchar, ST.D_CHANGE, 103) &quot;Modification Date&quot;
,COALESCE(SFLAB_EN.LABEL, '') &quot;Default Label&quot;
,COALESCE(SFLAB_DE.LABEL, '') &quot;Deutsch (DE):&quot;
,COALESCE(SFLAB_NL.LABEL, '') &quot;Nederlands (NL):&quot;
,COALESCE(SFLAB_FR.LABEL, '') &quot;French (FR):&quot;
,COALESCE(SFLAB_ES.LABEL, '') &quot;Spanish (ES):&quot;

from SYS_TABLES ST 
left join SYS_CATEGORIES SC on SC.K_CATEGORY = ST.K_TABLE
left join SYS_TABLES STC on STC.K_TABLE = SC.K_TABLE
left join SYS_LABELS SFLAB_EN on SFLAB_EN.K_LABEL = ST.K_LABEL and SFLAB_EN.k_language=0
left join SYS_LABELS SFLAB_AR on SFLAB_AR.K_LABEL = ST.K_LABEL and SFLAB_AR.k_language=1
left join SYS_LABELS SFLAB_DE on SFLAB_DE.K_LABEL = ST.K_LABEL and SFLAB_DE.k_language=7
left join SYS_LABELS SFLAB_ES on SFLAB_ES.K_LABEL = ST.K_LABEL and SFLAB_ES.k_language=10
left join SYS_LABELS SFLAB_FR on SFLAB_FR.K_LABEL = ST.K_LABEL and SFLAB_FR.k_language=12
left join SYS_LABELS SFLAB_JA on SFLAB_JA.K_LABEL = ST.K_LABEL and SFLAB_JA.k_language=17
left join SYS_LABELS SFLAB_NL on SFLAB_NL.K_LABEL = ST.K_LABEL and SFLAB_NL.k_language=19
left join SYS_LABELS SFLAB_PL on SFLAB_PL.K_LABEL = ST.K_LABEL and SFLAB_PL.k_language=21
left join SYS_LABELS SFLAB_TR on SFLAB_TR.K_LABEL = ST.K_LABEL and SFLAB_TR.k_language=31

union

select case when SP.ISCUSTOM = '1' THEN 'Custom Panel' ELSE 'Std Panel' END &quot;Description/Rule&quot;
,case when CHARINDEX ('$',  ST.NAME) &amp;gt; 0 
THEN concat( SUBSTRING ( ST.NAME , 0 , CHARINDEX ('$',  ST.NAME) ) ,'.',ST.NAME) 
ELSE ST.NAME
END &quot;TableName&quot;
,'' &quot;Form Context&quot;
,'' &quot;FieldName&quot;
,'' &quot;Key Field&quot;
,'' &quot;Form Name&quot;
,'' &quot;Section Name&quot;
,0 &quot;Section Sort&quot;
,0 &quot;Section Field Sort&quot;
, '' &quot;Visibile in Section&quot;
,case when SP.ISCUSTOM = '0' then 'No' else 'Yes' end &quot;Customized&quot;
,'' &quot;Data Type&quot;
,'' &quot;Mandatory&quot;
,'' &quot;Default Values&quot;
,SP.NAME as &quot;Panel&quot;
,''  &quot;Lookup Info&quot;
, convert(varchar, SP.D_CHANGE, 103) &quot;Modification Date&quot;
,COALESCE(SFLAB_EN.LABEL, '') &quot;Default Label&quot;
,COALESCE(SFLAB_DE.LABEL, '') &quot;Deutsch (DE):&quot;
,COALESCE(SFLAB_NL.LABEL, '') &quot;Nederlands (NL):&quot;
,COALESCE(SFLAB_FR.LABEL, '') &quot;French (FR):&quot;
,COALESCE(SFLAB_ES.LABEL, '') &quot;Spanish (ES):&quot;

from SYS_PANELS SP
inner join SYS_TABLES ST on ST.K_TABLE = SP.K_TABLE 
left join SYS_LABELS SFLAB_EN on SFLAB_EN.K_LABEL = SP.K_LABEL and SFLAB_EN.k_language=0
left join SYS_LABELS SFLAB_AR on SFLAB_AR.K_LABEL = SP.K_LABEL and SFLAB_AR.k_language=1
left join SYS_LABELS SFLAB_DE on SFLAB_DE.K_LABEL = SP.K_LABEL and SFLAB_DE.k_language=7
left join SYS_LABELS SFLAB_ES on SFLAB_ES.K_LABEL = SP.K_LABEL and SFLAB_ES.k_language=10
left join SYS_LABELS SFLAB_FR on SFLAB_FR.K_LABEL = SP.K_LABEL and SFLAB_FR.k_language=12
left join SYS_LABELS SFLAB_JA on SFLAB_JA.K_LABEL = SP.K_LABEL and SFLAB_JA.k_language=17
left join SYS_LABELS SFLAB_NL on SFLAB_NL.K_LABEL = SP.K_LABEL and SFLAB_NL.k_language=19
left join SYS_LABELS SFLAB_PL on SFLAB_PL.K_LABEL = SP.K_LABEL and SFLAB_PL.k_language=21
left join SYS_LABELS SFLAB_TR on SFLAB_TR.K_LABEL = SP.K_LABEL and SFLAB_TR.k_language=31

) TMP

--order by TMP.[Form Name], TMP.[Section Sort], TMP.[Section Field Sort], TMP.TableName, TMP.Panel, TMP.[Description/Rule] desc, TMP.FieldName
order by TMP.TableName, TMP.Panel, TMP.[Description/Rule] desc, TMP.FieldName
;
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6834/request-retrieve-complete-field-list-efficy-metadata-table&amp;show=6835#a6835</guid>
<pubDate>Fri, 10 Mar 2023 13:01:18 +0000</pubDate>
</item>
<item>
<title>Error 12044 in openUrl2/secure/secureUtf8 when Postman call is processed correctly</title>
<link>https://overflow.efficy.io/?qa=6638/error-openurl2-secure-secureutf8-postman-processed-correctly</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;For a customer we are developing a link with Canopy Deploy. In Postman / PowerShell (Invoke-Webrequest) the request is processed correctly. &lt;/p&gt;

&lt;p&gt;When trying it in the application with the same headers / data at the same machine the Efficy.openUrlSecure / Utf8 is receiving a 12044 A certificate is required to complete client authentication error. In openUrl2 the same: Message: &quot;Cannot find web server &quot;webhook.myclang.com&quot;&lt;br&gt;
Error Code: 12044&lt;/p&gt;

&lt;p&gt;What could be wrong?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6638/error-openurl2-secure-secureutf8-postman-processed-correctly</guid>
<pubDate>Tue, 19 Jul 2022 12:25:45 +0000</pubDate>
</item>
<item>
<title>Answered: DatasyncRemote: ERROR &quot;RetrieveUsersList: Please Logon to Database&quot; ?</title>
<link>https://overflow.efficy.io/?qa=6497/datasyncremote-error-retrieveuserslist-please-database&amp;show=6498#a6498</link>
<description>&lt;p&gt;Hi Stephane, &lt;/p&gt;

&lt;p&gt;it remember me an issue i had with a on premise customer previously, this issue was there because datasync remote use ie cookie and as not the correct privilege to write the cookie session. &lt;/p&gt;

&lt;p&gt;If the policy of the server is restricted, you could add efficy website url to the trusted site &lt;a rel=&quot;nofollow&quot; href=&quot;https://securitygladiators.com/whitelist-website/&quot;&gt;https://securitygladiators.com/whitelist-website/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, when i had previously installed sidebar on the customer server, the sidebar added correctly the domain there. So maybe if you have a difference it's because in test you have the sidebar installed and not in production.&lt;/p&gt;

&lt;p&gt;Hope it could be an help,&lt;br&gt;
Gaëtan.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6497/datasyncremote-error-retrieveuserslist-please-database&amp;show=6498#a6498</guid>
<pubDate>Fri, 01 Apr 2022 09:10:03 +0000</pubDate>
</item>
<item>
<title>Java : PdfBox : get the coordinates of a string pattern in a PDF, and then remove that string pattern</title>
<link>https://overflow.efficy.io/?qa=6372/pdfbox-coordinates-string-pattern-remove-that-string-pattern</link>
<description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;are there any aficionados of the PdfBox java library in this community ?&lt;/p&gt;

&lt;p&gt;I'm desperately looking to browse a PDF document, looking for a specific pattern. In order to obtain its coordinates (page number, X, Y). And then remove this pattern from the PDF.&lt;/p&gt;

&lt;p&gt;I get a PDDocument. &lt;br&gt;
I get a list of PDPage. &lt;br&gt;
But then impossible to find the process to find the coordinates of a specific pattern ...&lt;/p&gt;

&lt;p&gt;If anyone has worked with this library before, I am interested in some information. Thanks in advance for help.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6372/pdfbox-coordinates-string-pattern-remove-that-string-pattern</guid>
<pubDate>Fri, 26 Nov 2021 13:52:51 +0000</pubDate>
</item>
<item>
<title>Answered: DbStaging :  Error: ENTT-2574 Field &quot;SENT&quot;, datatype &quot;bit&quot; not supported</title>
<link>https://overflow.efficy.io/?qa=5973/dbstaging-error-entt-2574-field-sent-datatype-bit-supported&amp;show=5981#a5981</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Check if you have custom tables (CUSTOM_) in your DB and if one of them contains field SEND. You can also use the query (MSSQL) to find the reference of the field in all DB : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SELECT Table_Name, Column_Name 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_CATALOG = '[THE DBNAME]'
AND COLUMN_NAME LIKE '%[THE FIELDNAME TO FIND]%'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then change the field datatype to another one (integer maybe) if it's possible.&lt;br&gt;
Or backup table structure and data of the table and then drop it if it's not in use. &lt;/p&gt;

&lt;p&gt;FYI: As it's a custom table you will not find any reference in SYS_ tables. For instance, you weren't able to find the SEND field in SYS_FIELD table.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5973/dbstaging-error-entt-2574-field-sent-datatype-bit-supported&amp;show=5981#a5981</guid>
<pubDate>Wed, 17 Mar 2021 08:45:49 +0000</pubDate>
</item>
<item>
<title>DBStaging is it possible to add a filter ?</title>
<link>https://overflow.efficy.io/?qa=5649/dbstaging-is-it-possible-to-add-a-filter</link>
<description>&lt;p&gt;I am trying to export all groups and securities from one database to another one.&lt;br&gt;
I have create a new .DAT file for the DBStaging tool (cf below), but in the ACC_ACCOUNTS I also get the resources and users which I don't want.&lt;/p&gt;

&lt;p&gt;Is it possible to add a filter on this table ? &lt;br&gt;
Something like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Filter=&quot;KIND='1' and ISACTIVE='1'&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My DBStaging.DAT file:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[ACC_ACCOUNTS]
OutputFile=ACCOUNTS.sql
Inserts=1
Updates=1
Deletions=1
KeyFields=K_USER
[ACC_GROUPS]
OutputFile=ACCOUNTS.sql
Inserts=1
Updates=1
Deletions=1
KeyFields=K_USER,K_USER2
[ACC_RIGHTS]
OutputFile=ACCOUNTS.sql
Inserts=1
Updates=1
Deletions=1
KeyFields=K_USER,K_TABLE
[ACC_SECURITY]
OutputFile=ACCOUNTS.sql
Inserts=1
Updates=1
Deletions=1
KeyFields=K_USER,K_TABLE,K_USER2
[ACC_SHARES]
OutputFile=ACCOUNTS.sql
Inserts=1
Updates=1
Deletions=1
KeyFields=K_USER,K_USER2
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5649/dbstaging-is-it-possible-to-add-a-filter</guid>
<pubDate>Tue, 13 Oct 2020 18:42:37 +0000</pubDate>
</item>
<item>
<title>SVN Commit : Commit blocked by pre-commit hook</title>
<link>https://overflow.efficy.io/?qa=5644/svn-commit-commit-blocked-by-pre-commit-hook</link>
<description>&lt;p&gt;During a commit, I had an exotic error message.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=16355604645526181996&quot; alt=&quot;Full error message&quot;&gt;&lt;/p&gt;

&lt;p&gt;It was due to a special character &lt;code&gt;&amp;gt;&lt;/code&gt; in my commit comment.&lt;br&gt;
=&amp;gt; avoid this kind of character!&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5644/svn-commit-commit-blocked-by-pre-commit-hook</guid>
<pubDate>Fri, 09 Oct 2020 14:03:33 +0000</pubDate>
</item>
<item>
<title>Answered: Function executeOdbcQuery not fetching full excel file string content</title>
<link>https://overflow.efficy.io/?qa=4915/function-executeodbcquery-fetching-excel-string-content&amp;show=5593#a5593</link>
<description>&lt;p&gt;Dear Sebastien,&lt;/p&gt;

&lt;p&gt;I think this result depend of the ODBC driver you use.&lt;br&gt;
I tested it on my local computer but I could not reproduce.&lt;/p&gt;

&lt;p&gt;Here is the code I used with the Efficy 11.3 Datasync tool:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; var queryHandle,
      connection = 'Provider=MSDASQL.1;Persist Security Info=False;Data Source=Excel Files;Initial Catalog=C:\\Users\\stephane.roncin\\Desktop\\testMemo2.xlsx',     
      contextHandle=Efficy.openTemporaryContext(),
      sql='select [Mémo] as MEMO  from [Sheet1$]';               
  var ds = Efficy.executeOdbcQuery(queryHandle, contextHandle, connection, sql, false, true, 0);
  if (ds &amp;amp;&amp;amp; !ds.isEmpty()) {
       Efficy.log('Mémo executeOdbcQuery:\n'+ds.fieldByName('MEMO').asString);
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The ODBC Driver I used is this one:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=13682441157077763561&quot; alt=&quot;Excel ODBC Driver version&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=12041473149547588834&quot; alt=&quot;Excel ODBC Driver configuration&quot;&gt;&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4915/function-executeodbcquery-fetching-excel-string-content&amp;show=5593#a5593</guid>
<pubDate>Tue, 15 Sep 2020 13:53:15 +0000</pubDate>
</item>
<item>
<title>Answered: Access violation at address while using getFileStream</title>
<link>https://overflow.efficy.io/?qa=5431/access-violation-at-address-while-using-getfilestream&amp;show=5432#a5432</link>
<description>&lt;p&gt;There is at least one mistake in your usage of getFileStream&lt;br&gt;
it should not be dataStore, but the data set on the FILES table positioned on the record&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5431/access-violation-at-address-while-using-getfilestream&amp;show=5432#a5432</guid>
<pubDate>Wed, 13 May 2020 11:31:02 +0000</pubDate>
</item>
<item>
<title>Answered: datasynchro et activation workflow</title>
<link>https://overflow.efficy.io/?qa=5346/datasynchro-et-activation-workflow&amp;show=5356#a5356</link>
<description>&lt;p&gt;Hi Denis&lt;/p&gt;

&lt;p&gt;A classical DataSynchro needs to be configured in order to have access to the ServerJS includes. For Efficy 113, the typical location for the scripts root is:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;C:\inetpub\wwwroot\11.3\
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When DataSynchroRemote (the preferred for cloud hosted instances), DB workflow runs on the Web-server so you don't have to do anything.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5346/datasynchro-et-activation-workflow&amp;show=5356#a5356</guid>
<pubDate>Tue, 10 Mar 2020 11:49:31 +0000</pubDate>
</item>
<item>
<title>data sync tool issue</title>
<link>https://overflow.efficy.io/?qa=5286/data-sync-tool-issue</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
I try to import some data in Efficy with the data sync tool 64.&lt;br&gt;
My script was running fine until I change the data source and now I have an error:&lt;/p&gt;

&lt;p&gt;[10:13:12.070] Starting Synchro&lt;br&gt;
[10:13:12.148]   Retrieving List of Records...&lt;br&gt;
[10:13:12.382]     3696 Records Found&lt;br&gt;
[10:13:12.382] Start job - Total records: 3696&lt;br&gt;
[10:13:12.539] [1] &lt;br&gt;
[10:13:12.539] [1] *** ERROR ***&lt;br&gt;
[10:13:12.539] [1] Error while retrieving source record 0&lt;br&gt;
[10:13:12.539] [1] Error: Multiple-step operation generated errors. Check each status value&lt;br&gt;
[10:13:12.539] [1] *************&lt;br&gt;
[10:13:12.539] [1] &lt;br&gt;
[10:13:12.554] [1] Synchro Aborted because of Error&lt;br&gt;
[10:13:12.586] Job finished&lt;br&gt;
[10:13:12.648] Synchro Finished&lt;/p&gt;

&lt;p&gt;I have no idea what does this mean.&lt;br&gt;
Thanks for your help&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5286/data-sync-tool-issue</guid>
<pubDate>Mon, 03 Feb 2020 09:18:10 +0000</pubDate>
</item>
<item>
<title>Answered: Error: ENTT-2574 Field &quot;RATE&quot;, datatype &quot;numeric&quot; not supported  when trying to make a dump with DbStaging</title>
<link>https://overflow.efficy.io/?qa=5072/error-2574-field-datatype-numeric-supported-trying-dbstaging&amp;show=5073#a5073</link>
<description>&lt;p&gt;And when I try to make a dump with &lt;code&gt;DbStaging 11.3.18520.0&lt;/code&gt;, I get the error below.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Error: ENTT-2574 Field &quot;birthday&quot;, datatype &quot;date&quot; not supported&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;An error on two normal fields! Looks like a bad build of the utility or a bug.&lt;/p&gt;

&lt;p&gt;When I use the latest internal version, &lt;code&gt;DbStaging 11.3.19545.0&lt;/code&gt; I'll get this exception:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Error: ENTT-2574 Field &quot;latitude&quot;, datatype &quot;real&quot; not supported&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Case CFT-2019-106004 has been created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 1:&lt;/strong&gt;&lt;br&gt;
I had this error on a custom field &quot;latitude&quot; placed in a custom table &lt;code&gt;CUSTOM_ERP_CONTACTS&lt;/code&gt;, that was indeed of datatype=real.&lt;/p&gt;

&lt;p&gt;Although I did not configure to dump custom objects, the DBStaging aborted on this mismatch. In the case, I suggested ignoring invalid data types on custom objects.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5072/error-2574-field-datatype-numeric-supported-trying-dbstaging&amp;show=5073#a5073</guid>
<pubDate>Tue, 26 Nov 2019 09:54:34 +0000</pubDate>
</item>
<item>
<title>Answered: Use of mobile app without external Efficy access</title>
<link>https://overflow.efficy.io/?qa=4781/use-of-mobile-app-without-external-efficy-access&amp;show=4784#a4784</link>
<description>&lt;p&gt;If you adjust the firewall, you are actually exposing Efficy to the internet :-)&lt;/p&gt;

&lt;p&gt;Without a DNS, the hostame is a combination of the hostname and the opened/forwarded TCP port. With a DNS, it will become that &quot;public URL&quot;.&lt;/p&gt;

&lt;p&gt;You can't be &quot;private&quot; and &quot;public&quot; at the same time :-)&lt;/p&gt;

&lt;p&gt;Android for instance allows you to &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.vpnvip.com/vpn-settings-in-android.html&quot;&gt;setup VPN connections&lt;/a&gt;. It might be worth trying that.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4781/use-of-mobile-app-without-external-efficy-access&amp;show=4784#a4784</guid>
<pubDate>Fri, 13 Sep 2019 11:27:12 +0000</pubDate>
</item>
<item>
<title>Answered: Export Numeric Value to Excel gives partly numeric, partly text values in a numeric column</title>
<link>https://overflow.efficy.io/?qa=4581/export-numeric-partly-numeric-partly-values-numeric-column&amp;show=4585#a4585</link>
<description>&lt;p&gt;This is not the expected behavior (and I do not reproduce it).&lt;br&gt;
Please make a support case for this, in which you add all relevant information.&lt;br&gt;
Thanks!&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4581/export-numeric-partly-numeric-partly-values-numeric-column&amp;show=4585#a4585</guid>
<pubDate>Wed, 24 Jul 2019 11:52:28 +0000</pubDate>
</item>
<item>
<title>Answered: Error 'Unknown EntityView &quot;&quot;' when using DataSynchro (32- or 64-bits) for Efficy 11.2</title>
<link>https://overflow.efficy.io/?qa=4534/error-unknown-entityview-when-using-datasynchro-bits-efficy&amp;show=4538#a4538</link>
<description>&lt;p&gt;I can reproduce the error with a standard database as well when I try to select a table before I made a session with Efficy.&lt;/p&gt;

&lt;p&gt;If you first click on &quot;connect&quot; in the Efficy connection tab first, then proceed to the &quot;Import table&quot; tab and select a table, I don't get this error.&lt;/p&gt;

&lt;p&gt;Can you confirm the same behavior?&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4534/error-unknown-entityview-when-using-datasynchro-bits-efficy&amp;show=4538#a4538</guid>
<pubDate>Mon, 08 Jul 2019 12:36:43 +0000</pubDate>
</item>
<item>
<title>Answered: Migration tool to fill the CRC fields for files?</title>
<link>https://overflow.efficy.io/?qa=4517/migration-tool-to-fill-the-crc-fields-for-files&amp;show=4519#a4519</link>
<description>&lt;p&gt;We don't have a tool for this.&lt;/p&gt;

&lt;p&gt;Could you explain more in detail what problem exactly you encountered?&lt;br&gt;
As far as I know the CRC value in FILES is not required. If the CRC is absent or 0, everything should continue to function well.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4517/migration-tool-to-fill-the-crc-fields-for-files&amp;show=4519#a4519</guid>
<pubDate>Fri, 05 Jul 2019 08:41:12 +0000</pubDate>
</item>
<item>
<title>Answered: Order of the tables for database replication</title>
<link>https://overflow.efficy.io/?qa=4513/order-of-the-tables-for-database-replication&amp;show=4516#a4516</link>
<description>&lt;p&gt;Hello Jeroen,&lt;/p&gt;

&lt;p&gt;The replication order for the normal tables is by K_TABLE.&lt;/p&gt;

&lt;p&gt;Make sure the K_TABLE for your custom table is larger than 11000, and it will be replicated after CONTACTS.&lt;/p&gt;

&lt;p&gt;Hope this helps,&lt;br&gt;
Robert&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4513/order-of-the-tables-for-database-replication&amp;show=4516#a4516</guid>
<pubDate>Fri, 05 Jul 2019 08:19:08 +0000</pubDate>
</item>
<item>
<title>Answered: Autocompletion of ServerScript method and priority with VSCode</title>
<link>https://overflow.efficy.io/?qa=4399/autocompletion-serverscript-method-priority-with-vscode&amp;show=4421#a4421</link>
<description>&lt;p&gt;You can copy the snippet file to : C:\Users\ &lt;strong&gt;{USERNAME}&lt;/strong&gt; \AppData\Roaming\Code\User\snippets&lt;/p&gt;

&lt;p&gt;and it should be actived&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4399/autocompletion-serverscript-method-priority-with-vscode&amp;show=4421#a4421</guid>
<pubDate>Fri, 07 Jun 2019 07:11:12 +0000</pubDate>
</item>
<item>
<title>Answered: Is there any way to use openUrlSecure in a DataSynch Remote ? Env : 11.2 | DatasynchroRemote</title>
<link>https://overflow.efficy.io/?qa=4096/there-openurlsecure-datasynch-remote-datasynchroremote&amp;show=4098#a4098</link>
<description>&lt;p&gt;None of the openUrl methods are available in the Efficy Remote API. &lt;/p&gt;

&lt;p&gt;These methods are typically used for API communiction from Efficy to another system, for instance when a record is updated. Can't you invoke the openUrl method from DB workflow?&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4096/there-openurlsecure-datasynch-remote-datasynchroremote&amp;show=4098#a4098</guid>
<pubDate>Fri, 12 Apr 2019 12:50:04 +0000</pubDate>
</item>
<item>
<title>Answered: How to get a master Dataset using Datasynchro Remote? Env : 11.1 | DatasynchroRemote</title>
<link>https://overflow.efficy.io/?qa=4087/master-dataset-using-datasynchro-remote-datasynchroremote&amp;show=4089#a4089</link>
<description>&lt;p&gt;You missed the following operation after the &lt;code&gt;getMasterDataSet&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Efficy.executeBatch;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note that you can only use it to read values, you can't change the dataset remotely.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4087/master-dataset-using-datasynchro-remote-datasynchroremote&amp;show=4089#a4089</guid>
<pubDate>Wed, 10 Apr 2019 17:57:29 +0000</pubDate>
</item>
<item>
<title>Answered: Add Chinese characters with Datasynchro (ODBC limitation)</title>
<link>https://overflow.efficy.io/?qa=4077/add-chinese-characters-with-datasynchro-odbc-limitation&amp;show=4078#a4078</link>
<description>&lt;p&gt;Question answered&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4077/add-chinese-characters-with-datasynchro-odbc-limitation&amp;show=4078#a4078</guid>
<pubDate>Tue, 02 Apr 2019 10:49:04 +0000</pubDate>
</item>
<item>
<title>Answered: Export data from Efficy to sage in file xls</title>
<link>https://overflow.efficy.io/?qa=4061/export-data-from-efficy-to-sage-in-file-xls&amp;show=4069#a4069</link>
<description>&lt;p&gt;Dear Mohamed,&lt;/p&gt;

&lt;p&gt;Indeed, you cannot execute ODBC SQL Query in Remote using Efficy Framework.&lt;/p&gt;

&lt;p&gt;What is possible (but it is not very pretty) is to use ADODB ActiveX ... something like this : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/* ADO Constante */
var adLockReadOnly = 1; //Indicates read-only records. You cannot alter the data.
var adOpenStatic = 3;   //Uses a static cursor, which is a static copy of a set of records that you can use to find data 
                        //or generate reports. Additions, changes, or deletions by other users are not visible.
var adStateOpen = 1;    //The object is open
//** Datasync Settings **//
var OdbcConnectionString = &quot;XXXX&quot;; //XXXX = put here the connection string


//Example of a function using the ODBC ActiveX
function GetBOBSolde(BobRef) {
    var result = 0;
    if (BobRef == &quot;&quot;) return result;

    var conn = new ActiveXObject(&quot;ADODB.Connection&quot;);
    try {
        conn.Open(OdbcConnectionString);
        var rs = new ActiveXObject(&quot;ADODB.Recordset&quot;);
        try {
            Efficy.Log(&quot;      GetBOBSolde SQL : select sum(hamount) as Payd from ac_chisto where hid in (&quot; + BobRef + &quot;)&quot;);
            rs.Open(&quot;select sum(hamount) as Payd from ac_chisto where hid in (&quot; + BobRef + &quot;)&quot;, conn, adOpenStatic, adLockReadOnly); //This is the SQL you want to execute
            if(!rs.eof) {
                if (rs(&quot;Payd&quot;) == null || rs(&quot;Payd&quot;).Value == null) result = 0;
                else result = rs(&quot;Payd&quot;).Value;
            }
        } finally {
            if (rs &amp;amp;&amp;amp; rs.State == adStateOpen) rs.close;
            rs = null;
        }
    } finally {
        if (conn &amp;amp;&amp;amp; conn.State == adStateOpen) conn.close;
        conn = null;
    }
    return result;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4061/export-data-from-efficy-to-sage-in-file-xls&amp;show=4069#a4069</guid>
<pubDate>Tue, 26 Mar 2019 17:28:00 +0000</pubDate>
</item>
<item>
<title>How to use dataSync remote to export data Efficy in file (Excel or CSV)?</title>
<link>https://overflow.efficy.io/?qa=3997/how-to-use-datasync-remote-export-data-efficy-file-excel-csv</link>
<description>&lt;p&gt;hi guys,&lt;/p&gt;

&lt;p&gt;How to use dataSync remote to export data Efficy in file (Excel or CSV)?&lt;/p&gt;

&lt;p&gt;How can we insert data from Efficy in file (Excel or CSV)?&lt;/p&gt;

&lt;p&gt;thanks a lots for your feedback.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3997/how-to-use-datasync-remote-export-data-efficy-file-excel-csv</guid>
<pubDate>Mon, 04 Mar 2019 10:16:51 +0000</pubDate>
</item>
<item>
<title>Answered: Error closing DataSynchroRemote when used with a commandline</title>
<link>https://overflow.efficy.io/?qa=2663/error-closing-datasynchroremote-when-used-with-commandline&amp;show=3958#a3958</link>
<description>&lt;p&gt;Finally found it:&lt;/p&gt;

&lt;p&gt;When using &lt;br&gt;
&lt;code&gt;DataStore.findExistingEntity('....')&lt;/code&gt;&lt;br&gt;
,the DataSynchroRemote will raise an Access violation error at the end of the execution&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&quot;Solution&quot;&lt;/strong&gt;&lt;br&gt;
The soluiton is to use the queryExecuter instead to find an exisiting entity&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2663/error-closing-datasynchroremote-when-used-with-commandline&amp;show=3958#a3958</guid>
<pubDate>Fri, 15 Feb 2019 08:49:19 +0000</pubDate>
</item>
<item>
<title>Answered: How to generate specific DataSynchro log files?</title>
<link>https://overflow.efficy.io/?qa=3928/how-to-generate-specific-datasynchro-log-files&amp;show=3929#a3929</link>
<description>&lt;p&gt;Hey Akram&lt;/p&gt;

&lt;p&gt;Take a look at topic &quot;9.1 DataSynchro: EfficyStartJob and EfficyEndJob from the &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/projectguides/serverjs#datasynchro_efficystartjob_and_efficyendjob&quot;&gt;ServerJS tutorial&lt;/a&gt;. Based on that example, I distilled the following script that you could use to produce a tab separated file, for instance. The file is created by writing the TStringList object to disk&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var ExportList,
    Folder = &quot;C:\\temp\\&quot;;

function EfficyExportRecord(SourceDataSet, DestDataStore) {
  ExportList.Add(SourceDataSet(&quot;K_CONTACT&quot;) + &quot;\t&quot; + SourceDataSet(&quot;NAME&quot;));  
  return false;
}
function EfficyStartJob(SourceRecordCount) {
  ExportList = TStringList.Create;
}
function EfficyEndJob(SourceRecordCount) {
  var file = Folder + 'EfficyExport.tab';
  ExportList.SaveToFile(file);
  ExportList.Free;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3928/how-to-generate-specific-datasynchro-log-files&amp;show=3929#a3929</guid>
<pubDate>Fri, 08 Feb 2019 10:51:51 +0000</pubDate>
</item>
<item>
<title>Answered: DataSynchro and Date Format.</title>
<link>https://overflow.efficy.io/?qa=3757/datasynchro-and-date-format&amp;show=3758#a3758</link>
<description>&lt;p&gt;Hi Vincent&lt;/p&gt;

&lt;p&gt;The Delphi date functions use the Windows date format, not the short date specified by Efficy.&lt;/p&gt;

&lt;p&gt;As I mentioned in &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/projectguides/serverjs#example_4_json_request_easier_than_before&quot;&gt;Example 4: JSON request easier than before&lt;/a&gt;. It's possible to change the Windows time format and update it for all system accounts, if the IIS Application pool is using the standard account. If it uses a dedicated account, you need to logon with that account and change the date format.&lt;/p&gt;

&lt;p&gt;Starting from Efficy 11.1, you have more date functions available to help with the conversion. Working with dates in Efficy is not so easy, I know.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3757/datasynchro-and-date-format&amp;show=3758#a3758</guid>
<pubDate>Mon, 17 Dec 2018 09:39:21 +0000</pubDate>
</item>
<item>
<title>How to provide custombase from DataSynchroRemote or SOAP clients</title>
<link>https://overflow.efficy.io/?qa=3678/how-provide-custombase-from-datasynchroremote-soap-clients</link>
<description>&lt;p&gt;Since Efficy 11.0, import directives can be used inside database workflow to include serverjs files. When this is a custom file, it's placed in the &lt;code&gt;mycustomer/serverjs&lt;/code&gt; folder. This requires passing on the &lt;code&gt;custombase&lt;/code&gt; also for SOAP initiated sessions.&lt;/p&gt;

&lt;p&gt;Passing the &lt;code&gt;custombase&lt;/code&gt; as a property in the &amp;lt;efficy:logon/&amp;gt; node will not function.&lt;/p&gt;

&lt;p&gt;The solution is to pass the custombase as argument to the Web request URL. E.g.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;https://mycustomer.efficytest.com/crm/SOAP?custombase=mycustomer
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3678/how-provide-custombase-from-datasynchroremote-soap-clients</guid>
<pubDate>Fri, 23 Nov 2018 14:21:08 +0000</pubDate>
</item>
<item>
<title>Logging in DbStaging?</title>
<link>https://overflow.efficy.io/?qa=3362/logging-in-dbstaging</link>
<description>&lt;p&gt;When generating scripts with the DbStaging tool we are getting the Error Unexpected DataType: ftUnknown. We have tried to look for unsupported datatypes but there are none (anymore). &lt;/p&gt;

&lt;p&gt;Is there an option to generate a log or debug in the DbStaging tool for the point or field the error is thrown?&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3362/logging-in-dbstaging</guid>
<pubDate>Mon, 02 Jul 2018 16:24:23 +0000</pubDate>
</item>
<item>
<title>Answered: DataSync : find multiple contact per row</title>
<link>https://overflow.efficy.io/?qa=2851/datasync-find-multiple-contact-per-row&amp;show=2868#a2868</link>
<description>&lt;p&gt;My recommandation is to forget about the field &quot;use field to find existing record at import&lt;/p&gt;

&lt;p&gt;then in the generated import script, write your own findExistingRecord function then use it to find the contact(s) records.&lt;/p&gt;

&lt;p&gt;Finally, about the links I would add the addlinks operation in a dedicated datasync since it would definitly makes your script easyier to maintain.&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2851/datasync-find-multiple-contact-per-row&amp;show=2868#a2868</guid>
<pubDate>Mon, 08 Jan 2018 13:13:33 +0000</pubDate>
</item>
<item>
<title>Data Synchro - Import data in multivalue field</title>
<link>https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</link>
<description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I want to import some data in Efficy with DataSync Tool. In a Relation Table i have a multivalue field. Its choices come from the F&lt;em&gt;ROLE field of a LookUp Table (LK&lt;/em&gt;THEMROLE).&lt;br&gt;
1 | role1&lt;br&gt;
2 | role2&lt;br&gt;
...&lt;/p&gt;

&lt;p&gt;I tried to import data from an Excel file wich looks like this :&lt;br&gt;
Them.Name | Cont.FirstName | Cont.Name | THEM&lt;em&gt;CONT.F&lt;/em&gt;ROLES&lt;br&gt;
Them1 | Firstname1 | Name1 | role1;role2;role5&lt;br&gt;
...&lt;/p&gt;

&lt;p&gt;when i run  the synchro the tool throw me this exception :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;[10:48:17.083] Error while creating or modifying destination record.&lt;br&gt;
  [10:48:17.087] Error: WKFL-2142 Error while executing Script&lt;br&gt;
  &quot;EVariantTypeCastError&quot; at line 42 char 5. Message: &quot;Could not convert&lt;br&gt;
  variant of type (Dispatch) into type (Integer)&quot;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I tried to replace the name of each role by it's id in the LookUp Table but it's the same&lt;/p&gt;

&lt;p&gt;Can anyone help me ?&lt;br&gt;
Thanks a lot&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2860/data-synchro-import-data-in-multivalue-field</guid>
<pubDate>Fri, 29 Dec 2017 10:27:56 +0000</pubDate>
</item>
<item>
<title>Answered: How to import PICTURE (BLOB) from an External Database into an Efficy PICTURE field ?</title>
<link>https://overflow.efficy.io/?qa=2717/import-picture-blob-external-database-efficy-picture-field&amp;show=2718#a2718</link>
<description>&lt;p&gt;Here is a solution to do that &lt;/p&gt;

&lt;p&gt;First Extract the ORACLE blob on your HardDrive by using the following tool : &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.withdata.com/oralobeditor/&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.withdata.com/oralobeditor/&quot;&gt;https://www.withdata.com/oralobeditor/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now all the pictures are on your Hardrive ... nice &lt;br&gt;
... but very Hardrive consuming method ! But the only Method I found until now !&lt;/p&gt;

&lt;p&gt;Now it is possible to import the file into the PICTURE field by using the following code : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if (DataStore.AsString('PICR_DATA') != '') {
    var fileName = propKey + '_' + picKey + '.' + DataStore.AsString('PIC_FORMAT');
    if (FileExists(tempFolder + fileName) == true) {
        var dataPic = StrLoadBinaryFile(tempFolder + fileName);
        dsBrochure.FieldByName('F_PLAN' + indexPic).AsString = dataPic;
        Database.Log(' * File : ' + fileName + ' exist and imported');
    } else {
        Database.Log(' * File not found on disk: ' + fileName);
    }
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2717/import-picture-blob-external-database-efficy-picture-field&amp;show=2718#a2718</guid>
<pubDate>Tue, 03 Oct 2017 13:29:26 +0000</pubDate>
</item>
<item>
<title>Answered: Scheduled Workflow Window not able to display UTF-8 Characters</title>
<link>https://overflow.efficy.io/?qa=2547/scheduled-workflow-window-not-able-display-utf-characters&amp;show=2638#a2638</link>
<description>&lt;p&gt;Hello Tim,&lt;/p&gt;

&lt;p&gt;Can you try to change the Javascript File Encoding (with NotePad++ it is possible to do that) in order to choose a correct file encoding ... use the same encoding than the standard efficy_labels.txt ... which should be &quot;UTF-8 BOM&quot;&lt;/p&gt;

&lt;p&gt;And try to execute the schedule script again ... does this help ?&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2547/scheduled-workflow-window-not-able-display-utf-characters&amp;show=2638#a2638</guid>
<pubDate>Wed, 02 Aug 2017 09:33:46 +0000</pubDate>
</item>
<item>
<title>Answered: Wrong character incoding when exporting Efficy Data in a CSV file usin DataSynchroRemote</title>
<link>https://overflow.efficy.io/?qa=2611/wrong-character-incoding-exporting-efficy-datasynchroremote&amp;show=2614#a2614</link>
<description>&lt;p&gt;Hi Prince, this seems very similar to the &lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.com/?qa=2547/scheduled-workflow-window-not-able-display-utf-characters&amp;amp;show=2547#q2547&quot;&gt;issue reported by Tim&lt;/a&gt; earlier here on overflow.&lt;br&gt;
I suggest you create a case for support.&lt;/p&gt;

&lt;p&gt;I don't have much experience with the export functionality of the DataSync tools, typically we use the native export tools of the database engine. They are way faster. Of course, for a remote server, it's complicated... That's why it needs to be addressed to support&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2611/wrong-character-incoding-exporting-efficy-datasynchroremote&amp;show=2614#a2614</guid>
<pubDate>Fri, 14 Jul 2017 07:07:06 +0000</pubDate>
</item>
<item>
<title>Answered: error on running &quot;generate Scripts&quot; on DbStaging</title>
<link>https://overflow.efficy.io/?qa=2595/error-on-running-generate-scripts-on-dbstaging&amp;show=2597#a2597</link>
<description>&lt;p&gt;Hi Ammar.&lt;/p&gt;

&lt;p&gt;First, I didn't see this error message before.&lt;/p&gt;

&lt;p&gt;But I suspect a wrong / unsupported datatype in the &lt;code&gt;SYS_FIELDS&lt;/code&gt; dictionary.  Do you see any exceptional value appearing on the top of this query?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;select DATATYPE, count(*) CNT from SYS_FIELDS
group by DATATYPE
order by CNT
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I included some descriptions of the available datatype short codes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;T: Date and Time&lt;/li&gt;
&lt;li&gt;B: Blob&lt;/li&gt;
&lt;li&gt;C: Currency&lt;/li&gt;
&lt;li&gt;M: Memo&lt;/li&gt;
&lt;li&gt;H: Harcoded system field&lt;/li&gt;
&lt;li&gt;L: Logical (Boolean)&lt;/li&gt;
&lt;li&gt;D: Date&lt;/li&gt;
&lt;li&gt;N: Numeric&lt;/li&gt;
&lt;li&gt;I: Numeric (Integer)&lt;/li&gt;
&lt;li&gt;S: Small Integer, not used in standard&lt;/li&gt;
&lt;li&gt;A: Alpha-Numeric Text&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2595/error-on-running-generate-scripts-on-dbstaging&amp;show=2597#a2597</guid>
<pubDate>Mon, 10 Jul 2017 17:09:47 +0000</pubDate>
</item>
<item>
<title>Answered: DatatsynchroRemote: function Database.SetSysStorageValue not working</title>
<link>https://overflow.efficy.io/?qa=2593/datatsynchroremote-function-database-setsysstoragevalue&amp;show=2594#a2594</link>
<description>&lt;p&gt;if you have access to ExecSQL, just make your update like that...&lt;br&gt;
if you can't because remote don't give access to metadata function (which would make sense)&lt;/p&gt;

&lt;p&gt;I guess you could workaround your issue by using a trick like using a workflow function triggered by your datasync remote: &lt;/p&gt;

&lt;p&gt;example : &lt;/p&gt;

&lt;p&gt;choose an entity you don't use or create one specific(name spec by example) (you won't have to set the interface so it's really easy : no macro needed).&lt;/p&gt;

&lt;p&gt;create a record (in db by example) and keep your k_spec in mind. this record will be used as a container of your value to set.&lt;/p&gt;

&lt;p&gt;then add in workflow  : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function AfterCommitSpec(Edithandle, Inserted){
   // do your SetSysStorageValue by using a field from the Spec record 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;from now just add in your datasync script the &lt;br&gt;
OpenEditContext(, k_spec, ...)&lt;/p&gt;

&lt;p&gt;and update the field that will contain your sys_storage value&lt;/p&gt;

&lt;p&gt;then add a CommitChanges() &lt;br&gt;
if your datasync is set to trigger workflow that will work.&lt;/p&gt;

&lt;p&gt;I know it s seems a little weird but It should do the trick easily&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2593/datatsynchroremote-function-database-setsysstoragevalue&amp;show=2594#a2594</guid>
<pubDate>Fri, 07 Jul 2017 10:46:03 +0000</pubDate>
</item>
<item>
<title>Answered: Schedule the generated (.dat) script by datasynch tool</title>
<link>https://overflow.efficy.io/?qa=1912/schedule-the-generated-dat-script-by-datasynch-tool&amp;show=1913#a1913</link>
<description>&lt;p&gt;Hello Hafid.&lt;/p&gt;

&lt;p&gt;You should schedule the DataSynchro.dat using a batch execution task in the &lt;strong&gt;Windows Task Scheduler&lt;/strong&gt;. Make a text file with .cmd extension (e.g. &lt;strong&gt;run-data-synchros.cmd&lt;/strong&gt;) and specify inside the full path of your &lt;strong&gt;DataSynchro.exe&lt;/strong&gt; and &lt;strong&gt;DataSynchro.dat&lt;/strong&gt; that you want to run, optionally appended with parameters. See &lt;a rel=&quot;nofollow&quot; href=&quot;http://help.efficy.com/HelpEfficy/technical/DataSync/EN/batch_execution.htm?toc=0&quot;&gt;EDN here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With Windows Task Scheduler it will be easy to setup the execution recurrency. &lt;/p&gt;

&lt;p&gt;You can also use a cmd file to sequentially schedule multiple datasynchros, for example file &lt;strong&gt;C:\Program Files (x86)\Efficy\datasynchros\run-data-synchros.cmd&lt;/strong&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&quot;C:\Program Files (x86)\Efficy\datasynchros\products\DataSynchro.exe&quot; &quot;C:\Program Files (x86)\Efficy\datasynchros\products\DataSynchro.dat&quot;
&quot;C:\Program Files (x86)\Efficy\datasynchros\products\DataSynchro.exe&quot; &quot;C:\Program Files (x86)\Efficy\datasynchros\contacts\DataSynchro.dat&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let me also give you some other advise:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Copy the DataSynchro.exe from the utilities folder to a new dedicated folder. (e.g. datasynchros/products/). This will garantuee you a separated log file per synchro, making issue auditing easier. Don't forget later to upgrade this copy of DataSynchro.exe together with the version of Efficy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a new dedicated local (or domain) user (e.g. domain\efficy-services) to host the Scheduled Tasks. Don't run them with the current user, typically the local admin of the server. You can now set specific access rights for this user, you can also select that the password does not expire. In contrast, the local admin password should expire&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Greetings&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1912/schedule-the-generated-dat-script-by-datasynch-tool&amp;show=1913#a1913</guid>
<pubDate>Mon, 03 Oct 2016 18:56:47 +0000</pubDate>
</item>
<item>
<title>Answered: What is the ExecuteODBCQuery syntax in a remote dataSynchro</title>
<link>https://overflow.efficy.io/?qa=1868/what-is-the-executeodbcquery-syntax-in-remote-datasynchro&amp;show=1888#a1888</link>
<description>&lt;p&gt;Hello Saïd,&lt;/p&gt;

&lt;p&gt;Think that &quot;Remote&quot; datasync means ... use the SOAP from efficy.dll so send the request.&lt;br&gt;
So all the functionnality you can you can be found in the SOAP interface definition : &lt;a rel=&quot;nofollow&quot; href=&quot;http://help.efficy.com/HelpEfficy/whitepapers/SoapProxyDotNet/EN/index.html?appendix_soap_requests.htm&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And if you look at it, we cannot find the ExecuteODBCQuery, which is logical because this would means that the datasource should be on the Efficy Server or somewhere of the Efficy Network.&lt;/p&gt;

&lt;p&gt;So an alternative will be to use the Microsoft ADODB ActiveX  &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var myConnectionString = &quot;[setup the connection string here]&quot;;
try {
    var conn = new ActiveXObject(&quot;ADODB.Connection&quot;);
    conn.Open(myConnectionString);
    var rsDest = new ActiveXObject(&quot;ADODB.Recordset&quot;);
    rsDest.Open(&quot;select [fields] from [table]&quot;, conn, adOpenKeyset, adLockOptimistic);

    while (!SourceDs.Eof) {
        //... Do you stuff here
        SourceDs.Next;
    }
} catch (e) {
    result = &quot; ERROR : &quot; + e.message;
} finally {
    if (rsDest &amp;amp;&amp;amp; rsDest.State &amp;amp;&amp;amp; (!rsDest.State == adStateClosed)) rsDest.close;
    if (conn &amp;amp;&amp;amp; conn.State &amp;amp;&amp;amp; (!conn.State == adStateClosed)) conn.close;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And here are all the ADODB Constante you can use:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/* ADO Constante */
//** CURSOR TYPES **//
//Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, 
//and all types of movement through the Recordset are allowed, except for bookmarks, 
//if the provider doesn't support them.
var adOpenDynamic = 2;
//Default. Uses a forward-only cursor. 
//Identical to a static cursor, except that you can only scroll forward through records. 
//This improves performance when you need to make only one pass through a Recordset.
var adOpenForwardOnly = 0;
//Uses a keyset cursor. Like a dynamic cursor, except that you can't see records 
//that other users add, although records that other users delete are inaccessible 
//from your Recordset. Data changes by other users are still visible.
var adOpenKeyset = 1;
//Uses a static cursor, which is a static copy of a set of records that you can use to find data 
//or generate reports. Additions, changes, or deletions by other users are not visible.
var adOpenStatic = 3;
//Does not specify the type of cursor.
var adOpenUnspecified = -1;

//** LockType **//
//Indicates optimistic batch updates. Required for batch update mode.
var adLockBatchOptimistic = 4;
//Indicates optimistic locking, record by record. The provider uses optimistic locking, 
//locking records only when you call the Update method.
var adLockOptimistic = 3;
//Indicates pessimistic locking, record by record. The provider does what is necessary 
//to ensure successful editing of the records, usually by locking records at the data source immediately after editing.
var adLockPessimistic = 2;
//Indicates read-only records. You cannot alter the data.
var adLockReadOnly = 1;
//Does not specify a type of lock. For clones, the clone is created with the same lock type as the original.
var adLockUnspecified = -1;

//** Cusor Location **//
//Uses client-side cursors supplied by a local cursor library. 
//Local cursor services often will allow many features that driver-supplied cursors may not, 
//so using this setting may provide an advantage with respect to features that will be enabled. 
//For backward compatibility, the synonym adUseClientBatch is also supported.
var adUseClient = 3; 
//Does not use cursor services. (This constant is obsolete and appears solely for the sake of backward compatibility.)
var adUseNone = 2;
//Default. Uses cursors supplied by the data provider or driver. 
//These cursors are sometimes very flexible and allow for additional sensitivity 
//to changes others make to the data source. However, some features of the The Microsoft Cursor Service for OLE DB, such as disassociated
//Recordset objects, cannot be simulated with server-side cursors and these features will be unavailable with this setting.
var adUseServer = 1;

//** Connection State **//
var adStateClosed = 0;      //The object is closed
var adStateOpen = 1;        //The object is open
var adStateConnecting = 2;  //The object is connecting
var adStateExecuting = 4;   //The object is executing a command
var adStateFetching = 8;    //The rows of the object are being retrieved
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1868/what-is-the-executeodbcquery-syntax-in-remote-datasynchro&amp;show=1888#a1888</guid>
<pubDate>Wed, 21 Sep 2016 09:43:33 +0000</pubDate>
</item>
<item>
<title>Answered: does anybody knows which port is used for datasynchro when running from a client</title>
<link>https://overflow.efficy.io/?qa=1504/does-anybody-knows-which-port-used-datasynchro-running-client&amp;show=1507#a1507</link>
<description>&lt;p&gt;Hello Stephan.&lt;/p&gt;

&lt;p&gt;I explained on &lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.com/?qa=28/ip-ports-used-by-efficy&amp;amp;show=29#a29&quot;&gt;this overflow article&lt;/a&gt; the ports used by Efficy. This is the part from the Application Server:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The name of the microsoft function used internally by efficy to create&lt;br&gt;
  the remote com+ object is CoCreateInstanceEx (port 135)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But I really recommend you to use DataSynchroRemote.exe for your described scenario.&lt;br&gt;
Or try with DataSynchroEmbedded, but then the Database server needs to be accessible from the machine and you need to configure the Alias.ini&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1504/does-anybody-knows-which-port-used-datasynchro-running-client&amp;show=1507#a1507</guid>
<pubDate>Fri, 08 Apr 2016 06:18:28 +0000</pubDate>
</item>
<item>
<title>Answered: Efficy 2014 new SideBar for Mac?</title>
<link>https://overflow.efficy.io/?qa=1223/efficy-2014-new-sidebar-for-mac&amp;show=1225#a1225</link>
<description>&lt;p&gt;R&amp;amp;D answer:  The Mac sidebar is still the same than the beta version of 2013 … so this is not really a completly new sidebar. We just make it compatible with the latestest version of OSX and Office 2016.&lt;/p&gt;

&lt;p&gt;About the 2013 MAC Sidebar, which was for all this time in beta mode and only accessible from FTP partner, we already distribute the list of “New” features:&lt;/p&gt;

&lt;p&gt;•         The login information are setup directly in the sidebar, like the Windows version of it&lt;br&gt;
•         It is now possible to do an « Open Efficy » from the sidebar, don’t need to insert login information manually anymore.&lt;br&gt;
•         It is also possible to reconnect automatically from the button « Reconnect through Sidebar » from the Efficy Web Internface&lt;br&gt;
•         The login is also automatic if no session is open when using the integration for mac mail/entourage/outlook.&lt;br&gt;
•         The sidebar don’t depend of the firefow update anymore, all cookies files etc… We now take the session ID of Efficy via the « efficy : » protocal like the windows version of it.&lt;br&gt;
•         It is now compatible with Chrome&lt;br&gt;
•         All the old parameters are stored in the « Advanced Settings » tab&lt;br&gt;
•         It is not necessary to setup the browser, we now take the default one&lt;/p&gt;

&lt;p&gt;Here is some screenshots.&lt;/p&gt;

&lt;p&gt;Settings of the base for the user Informations &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=3321476681063648101&quot; alt=&quot;settings&quot;&gt;&lt;/p&gt;

&lt;p&gt;Advanced Settings is used to store the old parameters (If you still want to use those settings, you need to check the box « Use manual identification ») &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=11065074197454182538&quot; alt=&quot;settings2&quot;&gt;&lt;/p&gt;

&lt;p&gt;The new option « Open Efficy » has been added to the sidebar menu&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4524695072424068822&quot; alt=&quot;Open Efficy&quot;&gt;&lt;/p&gt;

&lt;p&gt;The option “Advanced Settings” is only here for testing, “use manual identification” should only be used if the automatic method did not work.&lt;/p&gt;

&lt;p&gt;We will remove this possibility in the next months so if the auto logon is not working, please read the information bellow and contact us if it did not fix the issue.&lt;/p&gt;

&lt;p&gt;Thing to do if the auto logon did not work:&lt;br&gt;
•   Clear the Safari cookies (even if your default browser is an other one)&lt;br&gt;
•   Check that the Efficy Script Helper is well registered as the handler of “efficy:” call &lt;br&gt;
    - Open a command line and run the command “open efficy:”, the script helper should open and close directly&lt;br&gt;
    - If the script helper appeared, check that the browser is answering to &quot;efficy:” call (like in windows)&lt;br&gt;
    - If the script helper did not launch, you can use the application RCDefaultApp &lt;a rel=&quot;nofollow&quot; href=&quot;http://www.rubicode.com/Software/RCDefaultApp/&quot;&gt;http://www.rubicode.com/Software/RCDefaultApp/&lt;/a&gt; and check if the script helper is well registered (in both Apps and URLs tab):&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4349893785841288685&quot; alt=&quot;Script Helper&quot;&gt;&lt;/p&gt;

&lt;p&gt;The best way to check if the sidebar is well communicating with efficy is to make sure you are logged off of efficy in your browser and use the sidebar option “Open Efficy”. The efficy desktop should appear in the default browser.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=16346267516735041217&quot; alt=&quot;Open Efficy 2&quot;&gt;&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1223/efficy-2014-new-sidebar-for-mac&amp;show=1225#a1225</guid>
<pubDate>Mon, 18 Jan 2016 09:49:38 +0000</pubDate>
</item>
<item>
<title>Answered: DBEditor new functionnality : Indexes</title>
<link>https://overflow.efficy.io/?qa=1220/dbeditor-new-functionnality-indexes&amp;show=1221#a1221</link>
<description>&lt;p&gt;R&amp;amp;D answer: &lt;/p&gt;

&lt;p&gt;The little tool is accessible via the “Tools” menu added to the DbEditor. &lt;/p&gt;

&lt;p&gt;Once you are connected to a database, just click on the menu item and a window will display the SQL needed to create the missing indexes. &lt;/p&gt;

&lt;p&gt;It is indeed about the DB native indexes.&lt;/p&gt;

&lt;p&gt;There has been quite a few indexes created for Belfius overall, not only in search but in entity lists as well, except for the Belfius specific ones they are all available in standard in the SYS_INDEXES table.&lt;/p&gt;

&lt;p&gt;If you are wondering exactly which ones are new compared to an older version at a client, the easiest is to compare the XML structure files with SVN diff.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1220/dbeditor-new-functionnality-indexes&amp;show=1221#a1221</guid>
<pubDate>Mon, 18 Jan 2016 09:30:26 +0000</pubDate>
</item>
<item>
<title>Answered: add default security during data import via datasynchro</title>
<link>https://overflow.efficy.io/?qa=1207/add-default-security-during-data-import-via-datasynchro&amp;show=1208#a1208</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;The securities that are applied are the one of the user that is making the DataSynchro.&lt;/p&gt;

&lt;p&gt;If you want to reproduce the &quot;manual record creation&quot; of a user in a DataSynchro, you should launch the DataSynchro with that user, as I don't think that there is any &quot;impersonate&quot; creation mode in serverscript (someone correct me if I am wrong).&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1207/add-default-security-during-data-import-via-datasynchro&amp;show=1208#a1208</guid>
<pubDate>Fri, 15 Jan 2016 11:33:06 +0000</pubDate>
</item>
<item>
<title>Answered: Set the record owner during datasyncro import</title>
<link>https://overflow.efficy.io/?qa=1185/set-the-record-owner-during-datasyncro-import&amp;show=1188#a1188</link>
<description>&lt;p&gt;Hello Stephan,&lt;/p&gt;

&lt;p&gt;The owner of a record is stored in the entity table directly. The name of field is K_USER.&lt;/p&gt;

&lt;p&gt;E.a.: the owner stored for a company is in COMPANIES.K_USER&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;/p&gt;

&lt;p&gt;Olivier&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1185/set-the-record-owner-during-datasyncro-import&amp;show=1188#a1188</guid>
<pubDate>Wed, 13 Jan 2016 13:20:23 +0000</pubDate>
</item>
<item>
<title>Answered: Where is the Application ID stored when using DataSynchro</title>
<link>https://overflow.efficy.io/?qa=1141/where-is-the-application-id-stored-when-using-datasynchro&amp;show=1144#a1144</link>
<description>&lt;p&gt;In the SYNCHRO table.&lt;/p&gt;

&lt;p&gt;But only if you have used the API function below&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DataStore.SaveExternalRelation(EntityName, Key)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And if the DataSynchro option below is checked&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Store the relation between the imported record and the Efficy record in the database (using a unique Application ID)&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1141/where-is-the-application-id-stored-when-using-datasynchro&amp;show=1144#a1144</guid>
<pubDate>Fri, 08 Jan 2016 09:50:49 +0000</pubDate>
</item>
<item>
<title>Answered: DB Staging Tool 8.0.6640.0 issue + walkaround (&quot;Database engine is not defined&quot;)</title>
<link>https://overflow.efficy.io/?qa=922/staging-tool-6640-issue-walkaround-database-engine-defined&amp;show=1119#a1119</link>
<description>&lt;p&gt;Thank you&lt;br&gt;
I reply to avoid keeping this post in the unanswered :-)&lt;br&gt;
Next time ask the question and replys yourself in case it is not a direct question but an information post&lt;/p&gt;

&lt;p&gt;thanks&lt;br&gt;
Yannick&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=922/staging-tool-6640-issue-walkaround-database-engine-defined&amp;show=1119#a1119</guid>
<pubDate>Wed, 06 Jan 2016 10:20:41 +0000</pubDate>
</item>
<item>
<title>Answered: Does Database.DeleteAttachment exists?</title>
<link>https://overflow.efficy.io/?qa=1027/does-database-deleteattachment-exists&amp;show=1030#a1030</link>
<description>&lt;p&gt;Hello Cyril,&lt;/p&gt;

&lt;p&gt;As you do in the interface, you have to first open the document and the delete the file.&lt;/p&gt;

&lt;p&gt;Script :&lt;br&gt;
1. edit the document&lt;br&gt;
2. retreive the detail ntFile&lt;br&gt;
3. search the correted file with a loop.&lt;br&gt;
4. when you find it, just delete the dataset. (delete function of the dataset).&lt;br&gt;
5. commit your document.&lt;/p&gt;

&lt;p&gt;Alex.&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1027/does-database-deleteattachment-exists&amp;show=1030#a1030</guid>
<pubDate>Mon, 21 Dec 2015 16:35:35 +0000</pubDate>
</item>
<item>
<title>Answered: Mass update in queries</title>
<link>https://overflow.efficy.io/?qa=968/mass-update-in-queries&amp;show=992#a992</link>
<description>&lt;p&gt;Hello Can,&lt;/p&gt;

&lt;p&gt;I don't think so, the massUpdate is used in a consult context which is needed in order to get the fields available, in this context for the current entity, for the Update and it is also needed in order to do the Update of the fields.&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;br&gt;
Stéphane Roncin&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=968/mass-update-in-queries&amp;show=992#a992</guid>
<pubDate>Thu, 03 Dec 2015 08:32:12 +0000</pubDate>
</item>
<item>
<title>Answered: Upload users from Excell to Efficy with DataSync</title>
<link>https://overflow.efficy.io/?qa=984/upload-users-from-excell-to-efficy-with-datasync&amp;show=986#a986</link>
<description>&lt;p&gt;If the databas engine is SQL Server, you can execute the GETNEWKEY procedure to get the next &lt;code&gt;K_USER&lt;/code&gt; and update &lt;code&gt;SYS_KEYGEN&lt;/code&gt; in one operation.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;DECLARE@return_value int, @NEWIDVAL float
EXEC@return_value = [ADMIN].[GETNEWKEY] @FIELDNAME = N'K_USER', @NEWIDVAL = @NEWIDVAL OUTPUT
SELECT@NEWIDVAL
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Another remark is that you do not use SQL parameters and you do not escape SQL characters. Risk for invalid SQL statements and even SQL injection (in case you would do the same in serverscripts) is present.&lt;/p&gt;

&lt;p&gt;Try to avoid it!&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=984/upload-users-from-excell-to-efficy-with-datasync&amp;show=986#a986</guid>
<pubDate>Tue, 01 Dec 2015 08:48:44 +0000</pubDate>
</item>
<item>
<title>Answered: DB Staging Tool Error on Save DB as text</title>
<link>https://overflow.efficy.io/?qa=816/db-staging-tool-error-on-save-db-as-text&amp;show=838#a838</link>
<description>&lt;p&gt;Hey Stijn,&lt;/p&gt;

&lt;p&gt;Not used the &quot;Save DB as text&quot; option myself but from the statement you mention it seems the tool is not detecting the correct db engine.&lt;br&gt;
&quot;sysindexes&quot; and &quot;sysobjects&quot; are standard MS SQL catalog views that do not exist in Oracle.&lt;/p&gt;

&lt;p&gt;For Oracle you should set the value of Engine in the section Database of the DBStaging.ini to 2.&lt;/p&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Björn&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=816/db-staging-tool-error-on-save-db-as-text&amp;show=838#a838</guid>
<pubDate>Fri, 09 Oct 2015 13:28:53 +0000</pubDate>
</item>
</channel>
</rss>