<?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 Re: Error while performing transformation in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2542#M567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that airplane.ply is a document in the repository. If this is the case, check what the mimetype is of that document as stored in&amp;nbsp;the repository (you may need to use the node browser in admin tools to do this). Note please this is checking what Alfresco thinks it is and not what the document actually is. I suspect you will find its beleived to be&amp;nbsp;text/plain not&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;application&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;/ply. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Check that you declared the file extensions as indicating the desired mimetypes (e.g .ply ==&amp;nbsp;&lt;SPAN&gt;application&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;/ply, .sla ==&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;application&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;/sla).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 10:01:18 GMT</pubDate>
    <dc:creator>rjohnson</dc:creator>
    <dc:date>2017-01-12T10:01:18Z</dc:date>
    <item>
      <title>Error while performing transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2538#M563</link>
      <description>Hi CommunityI have created custom transformer which transforms file with "application/ply" mimetype&amp;nbsp;to "application/sla". The context file which I have created is&amp;lt;beans&amp;gt;&amp;lt;bean id="transformer.worker.ply2stl"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransfor</description>
      <pubDate>Mon, 09 Jan 2017 09:39:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2538#M563</guid>
      <dc:creator>manav</dc:creator>
      <dc:date>2017-01-09T09:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error while performing transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2539#M564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Transformers do an extra validation on the actual content stream type against the declared mime-type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your particular case you may find useful the property &lt;STRONG&gt;transformer.strict.mimetype.check&lt;/STRONG&gt; in &lt;EM&gt;repository.properties&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;You can disable the strict checking by adding this property with the value false in &lt;EM&gt;alfresco-global properties&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or as the comments around the transformer.strict.mimetype.check property state, you could try adding your pair of declared and detected mimetype (&lt;SPAN&gt;text/plain&lt;/SPAN&gt;), to the whitelist in &lt;EM&gt;transformers.properties (can be changed via JMX as well).&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 10:33:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2539#M564</guid>
      <dc:creator>amorarasu</dc:creator>
      <dc:date>2017-01-09T10:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error while performing transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2540#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ancuta Morarasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked for me. I have an STL&amp;nbsp;previewer which can preview the file with mime type &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"application/&lt;/SPAN&gt;sla&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;"&amp;nbsp;&lt;/SPAN&gt;in alfresco. So I want to render the file with the mime type&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;application&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;/ply" as "application/sla". For this, I have created a rule on a folder with the following script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; renderingEngineName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'reformat'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; renditionDefinitionName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'cm:content.stl'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; renditionDef &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; renditionService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createRenditionDefinition&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;renditionDefinitionName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; renderingEngineName&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;renditionDef&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;parameters&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'mime-type'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'application/sla'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;renditionService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;render&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;document&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; renditionDef&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;And I am also able&amp;nbsp;to see rendition child in node browser as given in a below image&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/11985_Capture.PNG" style="width: 620px; height: 124px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;But still, I am not able to get a preview of the files with mime type "application/pla".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;I would be great if you can help me with this also&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2540#M565</guid>
      <dc:creator>manav</dc:creator>
      <dc:date>2017-01-09T13:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error while performing transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2541#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend turning on the debug for Transformations, to see what transformations are done for preview:&lt;/P&gt;&lt;P&gt;log4j.logger.org.alfresco.repo.content.transform.TransformerDebug=DEBUG log4j.logger.org.alfresco.repo.content.transform=DEBUG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code for adding custom transformations &lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/custom-content-transformer-repo" title="https://github.com/Alfresco/alfresco-sdk-samples/tree/alfresco-51/all-in-one/custom-content-transformer-repo" rel="nofollow noopener noreferrer"&gt;custom-content-transformer-repo · GitHub&lt;/A&gt;, if you didn't follow it already &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the rendition is generated, but setting a custom previewer requires extra configurations and tweaking.&lt;/P&gt;&lt;P&gt;If you haven't done something similar, this blog details how to set a previewer in Share &lt;A class="link-titled" href="https://www.parashift.com.au/2016/08/30/custom-previews-alfresco-share/" title="https://www.parashift.com.au/2016/08/30/custom-previews-alfresco-share/" rel="nofollow noopener noreferrer"&gt;Custom Previews in Alfresco Share - Parashift&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you have already set the previewer, please provide more info from the logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ancuta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:05:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2541#M566</guid>
      <dc:creator>amorarasu</dc:creator>
      <dc:date>2017-01-09T18:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error while performing transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2542#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that airplane.ply is a document in the repository. If this is the case, check what the mimetype is of that document as stored in&amp;nbsp;the repository (you may need to use the node browser in admin tools to do this). Note please this is checking what Alfresco thinks it is and not what the document actually is. I suspect you will find its beleived to be&amp;nbsp;text/plain not&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;application&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;/ply. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Check that you declared the file extensions as indicating the desired mimetypes (e.g .ply ==&amp;nbsp;&lt;SPAN&gt;application&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;/ply, .sla ==&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;application&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;/sla).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 10:01:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-while-performing-transformation/m-p/2542#M567</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2017-01-12T10:01:18Z</dc:date>
    </item>
  </channel>
</rss>

