<?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 invalid column name in vocabulary mapping in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-column-name-in-vocabulary-mapping/m-p/319546#M6547</link>
    <description>&lt;P&gt;I have the following columns in a view&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;id	VARCHAR2(40)
exercice	VARCHAR2(40)
label	VARCHAR2(40)
ordering	NUMBER
obsolete	NUMBER
comm_reference	VARCHAR2(50)
comm_libelle	VARCHAR2(500)
comm_date_creation	VARCHAR2(19)
utilisateur	VARCHAR2(50)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;that I try to map to a vocabulary based on the following schema&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; &amp;lt;xs:element name="id" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="exercice" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="label" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="obsolete" type="xs:integer" default="0"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="ordering" type="xs:integer" default="10000000"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_reference" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_libelle" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_date" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_date_creation" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="utilisateur" type="xs:string"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Querying the view / vocabulary seems okay :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT * FROM "STUDIO_VOCABULARY_COMMANDE" WHERE "utilisateur" = 'XXX' AND "obsolete" = 0 AND LOWER("label") LIKE '1999%'
Note : I have a custom operation based on Directory.SuggestEntries that adds the "utilisateur" = 'XXX' part of the query.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But it is followed by a java.sql.SQLException about an invalid column name &lt;A href="http://pastebin.com/StLQpkfC" target="test_blank"&gt;http://pastebin.com/StLQpkfC&lt;/A&gt;
I supposed there is something wrong with the mapping but what ?&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 07:23:52 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-05-03T07:23:52Z</dc:date>
    <item>
      <title>invalid column name in vocabulary mapping</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-column-name-in-vocabulary-mapping/m-p/319546#M6547</link>
      <description>&lt;P&gt;I have the following columns in a view&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;id	VARCHAR2(40)
exercice	VARCHAR2(40)
label	VARCHAR2(40)
ordering	NUMBER
obsolete	NUMBER
comm_reference	VARCHAR2(50)
comm_libelle	VARCHAR2(500)
comm_date_creation	VARCHAR2(19)
utilisateur	VARCHAR2(50)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;that I try to map to a vocabulary based on the following schema&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;gt; &amp;lt;xs:element name="id" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="exercice" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="label" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="obsolete" type="xs:integer" default="0"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="ordering" type="xs:integer" default="10000000"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_reference" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_libelle" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_date" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="comm_date_creation" type="xs:string"/&amp;gt;
&amp;gt; &amp;lt;xs:element name="utilisateur" type="xs:string"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Querying the view / vocabulary seems okay :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT * FROM "STUDIO_VOCABULARY_COMMANDE" WHERE "utilisateur" = 'XXX' AND "obsolete" = 0 AND LOWER("label") LIKE '1999%'
Note : I have a custom operation based on Directory.SuggestEntries that adds the "utilisateur" = 'XXX' part of the query.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But it is followed by a java.sql.SQLException about an invalid column name &lt;A href="http://pastebin.com/StLQpkfC" target="test_blank"&gt;http://pastebin.com/StLQpkfC&lt;/A&gt;
I supposed there is something wrong with the mapping but what ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 07:23:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-column-name-in-vocabulary-mapping/m-p/319546#M6547</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-03T07:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: invalid column name in vocabulary mapping</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/invalid-column-name-in-vocabulary-mapping/m-p/319547#M6548</link>
      <description>&lt;P&gt;Silly problem : comm_date was referenced in the schema and not present in the view&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 09:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/invalid-column-name-in-vocabulary-mapping/m-p/319547#M6548</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-03T09:56:00Z</dc:date>
    </item>
  </channel>
</rss>

