cancel
Showing results for 
Search instead for 
Did you mean: 

A value for the mandatory parameter dod:producingApplication

rodrigoa
Champ in-the-making
Champ in-the-making
Good afternoon all,

In my project I trying to transform a .doc into a pdf, but I am getting the same error message. If anyone could help me, I would be very grateful.

Here is my code and the log:

         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var publieesSite = siteService.getSite("publiees");
               var revisionSite = siteService.getSite("revision");
               var folder = publieesSite.getContainer("documentLibrary");
               var documentLibraryRevision = revisionSite.getContainer("documentLibrary");
               var documentLibraryPubliees = publieesSite.getContainer("documentLibrary");
               var myDocument = documentLibraryRevision.childByNamePath("test.doc");
               var trans = myDocument.transformDocument("application/pdf");
            </script>
         </action>

DEBUG [org.alfresco.repo.jscript.RhinoScriptProcessor] Time to execute script: 7755.1016ms
ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 00170006 A value for the mandatory parameter dodSmiley TongueroducingApplicationVersion has not been set on the rule item applyPdfRecord
org.alfresco.service.cmr.rule.RuleServiceException: 00170006 A value for the mandatory parameter dodSmiley TongueroducingApplicationVersion has not been set on the rule item applyPdfRecord

Thanks in advance,

Rodrigo Araujo.
4 REPLIES 4

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Hi Rodrigo,

It seems the code is trying to execute a rule that set's the dodSmiley TonguedfRecord type to the pdf. For dodSmiley TonguedfRecord the dodSmiley TongueroducingApplicationVersion has to be mandatory.

I have not much knowledge on records management… Maybe someone else could help you on this.

Adei

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
I guess you have a rule set up to execute the applyPdfRecord action and you didn't set the dodSmiley TongueroducingApplicationVersion

rodrigoa
Champ in-the-making
Champ in-the-making
Hi Adei,

I get this error when I try use the .transformDocument like this:

         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var revisionSite = siteService.getSite("revision");
               var publieesSite = siteService.getSite("publiees");
               var documentLibraryRevision = revisionSite.getContainer("documentLibrary");
               var documentLibraryPubliees = publieesSite.getContainer("documentLibrary");
               var myDocument = documentLibraryRevision.childByNamePath("test.doc");
               var trans = myDocument.transformDocument("application/pdf", documentLibraryPubliees);
            </script>
         </action>

but when I simply to the convertion and I do not try to move to another folder, It works, like this:

         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>
               var revisionSite = siteService.getSite("revision");
               var publieesSite = siteService.getSite("publiees");
               var documentLibraryRevision = revisionSite.getContainer("documentLibrary");
               var documentLibraryPubliees = publieesSite.getContainer("documentLibrary");
               var myDocument = documentLibraryRevision.childByNamePath("test.doc");
               var trans = myDocument.transformDocument("application/pdf");
            </script>
         </action>

Do you have any idea why this is happening?

Thaank you very much,

Best Regards,

Rodrigo Araujo

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
I guess, as said, you have a content rule set up in the documentLibraryPubliees folder… Can you check that?