cancel
Showing results for 
Search instead for 
Did you mean: 

Unsupported transformation

riyaz
Champ on-the-rise
Champ on-the-rise

How do I get rid of the below exception?

2017-01-18 09:44:03,915 ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction6] Failed to execute asynchronous action: Action[ id=a66d8d76-4d2c-41ce-ac00-5817787f2ec0, node=null ]: 001896019 Unsupported transformation: application/vnd.openxmlformats-officedocument.wordprocessingml.document to application/pdf
org.alfresco.error.AlfrescoRuntimeException: 001896030 Creation of thumbnail 'doclib' failed
at org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter.executeImpl(CreateThumbnailActionExecuter.java:206)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:267)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:839)
at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:740)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:423)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:432)
at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)
at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)
at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:62)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:58)
at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:435)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.repo.content.transform.UnsupportedTransformationException: 001896019 Unsupported transformation: application/vnd.openxmlformats-officedocument.wordprocessingml.document to application/pdf
at org.alfresco.repo.content.transform.FailoverContentTransformer.transformInternal(FailoverContentTransformer.java:194)
at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:250)
at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:486)
at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:250)
at org.alfresco.repo.content.ContentServiceImpl.failoverTransformers(ContentServiceImpl.java:686)
at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:635)
at sun.reflect.GeneratedMethodAccessor1410.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:129)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:159)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy49.transform(Unknown Source)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:439)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:1)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:429)
at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
... 3 more

1 ACCEPTED ANSWER

jamilnour
Star Contributor
Star Contributor

Okay for my case it was a size limitation problem which can be modified by adding the following parametter (to support 10M) to alfresco-global.properties

content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=10240

The default value is 768 KB and I don't think a 10M document is recommended because it will take a long time to be converted and displayed in PDFJS viewer

This long discussion thread helped me too

Content Transformations not available 

Thank you

Jamil

View answer in original post

4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator

Just make sure the transformation is supported (openoffice/libreoffice installed + running, transformation is not disabled, source size limits are set according to your requirements...). There can be many reasons why a transformation (temporarily) fails and some transformations, e.g. for thumbnails, are even retried automatically to deal with temporary issues.

jamilnour
Star Contributor
Star Contributor

Did you find a solution? I have the same issue for the big size office documents (more than 5M).

Axel, how to verify all of these?

- OO and transformation are working because the small size files are working and can be transformed to PDF to show in the Pdfjs viewer or when apply the transform rule

- How to make sure if there is a limit size for transformation? I did not add any parameter in the alfresco-global.properties

Thanks

Jamil

afaust
Legendary Innovator
Legendary Innovator

You can use either the OOTBee Support Tools (CE+EE) or Alfresco Support Tools (EE-only) addon and the "Test Transform" tool in the Repository-tier admin console they provide to test out various transformations at runtime and also look at the transformation debug log.

jamilnour
Star Contributor
Star Contributor

Okay for my case it was a size limitation problem which can be modified by adding the following parametter (to support 10M) to alfresco-global.properties

content.transformer.OpenOffice.extensions.docx.pdf.maxSourceSizeKBytes=10240

The default value is 768 KB and I don't think a 10M document is recommended because it will take a long time to be converted and displayed in PDFJS viewer

This long discussion thread helped me too

Content Transformations not available 

Thank you

Jamil