We have a thesaurus stored in an SQLServer 2008 database.
I wanted to extract it and convert it to user aqiv filte for use with TEXIS/Appliance.
For some records i get the following error :
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
Line 28 in the script is the sql statement :
<table cellspacing="0">
<tr>
<td>ID</td>
<td>Descriptor</td>
<td>Non-Descriptor(s)</td>
</tr>
<local dsc="">
<sql PROVIDER="ODBC" ROW CONNECTSTR="Driver={SQL Server Native Client 10.0};Server=PDE790\SQL2008;Database=MYdb;Uid=MYuid;Pwd=MYpwd"
"SELECT TOP 100 [DESCID] ,[DESCRIPTOR] ,[NONDESCRIPTOR] FROM [AP_TO_DBREFERENCES].[dbo].[Search_Thesaurus]">
<if $dsc ne $DESCRIPTOR>
<if $dsc ne "">
</tr>
</if>
<$dsc=$DESCRIPTOR>
<tr>
<td><fmt %s $DESCID></td>
<td><fmt %s $dsc ></td>
</if>
<if $NONDESCRIPTOR ne "">
<td><fmt %s $NONDESCRIPTOR></td>
</if>
</sql>
</tr>
</table>
The information from the field is returned correctly, but I'm unable to see what causes the problem for these particular records.
here is an excerpt of the results which are printed inside the sql loop :
<tr>
<td>7</td>
<td>commerce des armes</td>
<td>trafic d'armes</td>
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
<td>vente d'armes</td>
</tr>
<tr>
<td>8</td>
<td>commerce Est-Ouest</td>
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
</tr>
<tr>
<td>9</td>
<td>commerce extérieur</td>
<td>organisation du commerce extérieur</td>
</tr>
<tr>
Both DESCRIPTOR and NONDESCRIPTOR ar nvarchar(255). I have tried casting them to varchar(255), then the errors disappear, but the result isn't utf-8 anymore.
I also thought for a moment it might be related to NULL values, but it's not.
Any suggestions?
I wanted to extract it and convert it to user aqiv filte for use with TEXIS/Appliance.
For some records i get the following error :
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
Line 28 in the script is the sql statement :
<table cellspacing="0">
<tr>
<td>ID</td>
<td>Descriptor</td>
<td>Non-Descriptor(s)</td>
</tr>
<local dsc="">
<sql PROVIDER="ODBC" ROW CONNECTSTR="Driver={SQL Server Native Client 10.0};Server=PDE790\SQL2008;Database=MYdb;Uid=MYuid;Pwd=MYpwd"
"SELECT TOP 100 [DESCID] ,[DESCRIPTOR] ,[NONDESCRIPTOR] FROM [AP_TO_DBREFERENCES].[dbo].[Search_Thesaurus]">
<if $dsc ne $DESCRIPTOR>
<if $dsc ne "">
</tr>
</if>
<$dsc=$DESCRIPTOR>
<tr>
<td><fmt %s $DESCID></td>
<td><fmt %s $dsc ></td>
</if>
<if $NONDESCRIPTOR ne "">
<td><fmt %s $NONDESCRIPTOR></td>
</if>
</sql>
</tr>
</table>
The information from the field is returned correctly, but I'm unable to see what causes the problem for these particular records.
here is an excerpt of the results which are printed inside the sql loop :
<tr>
<td>7</td>
<td>commerce des armes</td>
<td>trafic d'armes</td>
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
<td>vente d'armes</td>
</tr>
<tr>
<td>8</td>
<td>commerce Est-Ouest</td>
<!-- 000 /test/APGenThesaurus:28: Could not convert result column `NONDESCRIPTOR' SQL_WCHAR data to varchar UTF-8: The parameter is incorrect; using varbyte in the function vsvtx_get -->
</tr>
<tr>
<td>9</td>
<td>commerce extérieur</td>
<td>organisation du commerce extérieur</td>
</tr>
<tr>
Both DESCRIPTOR and NONDESCRIPTOR ar nvarchar(255). I have tried casting them to varchar(255), then the errors disappear, but the result isn't utf-8 anymore.
I also thought for a moment it might be related to NULL values, but it's not.
Any suggestions?