<?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 Assigning value to an attribute of custom schema from custom operation - is not working in Nuxeo10.10 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/assigning-value-to-an-attribute-of-custom-schema-from-custom/m-p/318721#M5722</link>
    <description>&lt;P&gt;We are using Nuxeo10.10 and have added two attributes of type String to file_schema for file type. We created a custom operation in java- exported that to Studio-then created the chain/event listener. The Custom operation updates both of these field from the Java code.&lt;/P&gt;
&lt;P&gt;Code used for assignment
log.error("Going to assign Content-Text_Attrib")
input.setPropertyValue("file_schema:Content-Text_Attrib", textContent); // where input is DocumentModel argument of run method.
log.error("Going to assign Content-Text")
input.setPropertyValue("file_schema:Content-Text", textContent);&lt;/P&gt;
&lt;P&gt;Now while this is deployed in Nuxeo and tested with a document, the automation chain is invoked and we have all the loggers coming correctly till the above setPropertyValue of  Content-Text.
But the setPropertyValue is failing with error in log saying - segment Content-Text cannot be resolved, file_schema:Content-Text.
Interestingly setPropertyValue "file_schema:Content-Text_Attrib" works and the value is shown in the UI as well. But nothing appears in Content-Text&lt;/P&gt;
&lt;P&gt;We dissected the studio package and can see the file_schema.xsd- which has the entry for these fields.
.........
&amp;lt;xs:element name="Content-Text_Attrib" type="xs:string" default=""/&amp;gt;
&amp;lt;xs:element name="Content-Text" type="xs:string" default=""/&amp;gt;
&amp;lt;/xs:schema&amp;gt;&lt;/P&gt;
&lt;P&gt;Any helps or pointers to correct this will be much appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2019 17:12:15 GMT</pubDate>
    <dc:creator>Ganesh_S</dc:creator>
    <dc:date>2019-07-21T17:12:15Z</dc:date>
    <item>
      <title>Assigning value to an attribute of custom schema from custom operation - is not working in Nuxeo10.10</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/assigning-value-to-an-attribute-of-custom-schema-from-custom/m-p/318721#M5722</link>
      <description>&lt;P&gt;We are using Nuxeo10.10 and have added two attributes of type String to file_schema for file type. We created a custom operation in java- exported that to Studio-then created the chain/event listener. The Custom operation updates both of these field from the Java code.&lt;/P&gt;
&lt;P&gt;Code used for assignment
log.error("Going to assign Content-Text_Attrib")
input.setPropertyValue("file_schema:Content-Text_Attrib", textContent); // where input is DocumentModel argument of run method.
log.error("Going to assign Content-Text")
input.setPropertyValue("file_schema:Content-Text", textContent);&lt;/P&gt;
&lt;P&gt;Now while this is deployed in Nuxeo and tested with a document, the automation chain is invoked and we have all the loggers coming correctly till the above setPropertyValue of  Content-Text.
But the setPropertyValue is failing with error in log saying - segment Content-Text cannot be resolved, file_schema:Content-Text.
Interestingly setPropertyValue "file_schema:Content-Text_Attrib" works and the value is shown in the UI as well. But nothing appears in Content-Text&lt;/P&gt;
&lt;P&gt;We dissected the studio package and can see the file_schema.xsd- which has the entry for these fields.
.........
&amp;lt;xs:element name="Content-Text_Attrib" type="xs:string" default=""/&amp;gt;
&amp;lt;xs:element name="Content-Text" type="xs:string" default=""/&amp;gt;
&amp;lt;/xs:schema&amp;gt;&lt;/P&gt;
&lt;P&gt;Any helps or pointers to correct this will be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 17:12:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/assigning-value-to-an-attribute-of-custom-schema-from-custom/m-p/318721#M5722</guid>
      <dc:creator>Ganesh_S</dc:creator>
      <dc:date>2019-07-21T17:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning value to an attribute of custom schema from custom operation - is not working in Nuxeo10.10</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/assigning-value-to-an-attribute-of-custom-schema-from-custom/m-p/318722#M5723</link>
      <description>&lt;P&gt;Can you export the JSON of the document that triggers this error?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:12:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/assigning-value-to-an-attribute-of-custom-schema-from-custom/m-p/318722#M5723</guid>
      <dc:creator>Jackie_A</dc:creator>
      <dc:date>2019-10-02T13:12:54Z</dc:date>
    </item>
  </channel>
</rss>

