Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Action sequence execution failed when trying to email a report

$
0
0
Hello! I'm having a bit of a problem when trying to test run an action sequence in Design Studio. I get the following error:
Code:

Error: SolutionEngine.ERROR_0007 - Action sequence  execution failed  (org.pentaho.platform.engine.services.solution.SolutionEngine) Debug: Starting execute of Contratos//report.xaction  (org.pentaho.platform.engine.services.solution.SolutionEngine)
Debug: Getting  runtime context and data  (org.pentaho.platform.engine.services.solution.SolutionEngine)
Debug: Loading  action sequence definition file  (org.pentaho.platform.engine.services.solution.SolutionEngine)
Error:  SolutionEngine.ERROR_0007 - Action sequence execution failed  (org.pentaho.platform.engine.services.solution.SolutionEngine)

When trying to run the following .xaction: (note that I've replaced sensitive data with dummy values, I'm not actually testing this with mail@mail :p)

Code:

<action-sequence>
  <title>Reporting</title>
  <version>1</version>
  <logging-level>TRACE</logging-level>
  <documentation>
    <author>Author</author> 
    <description>Sends email</description> 
    <help/> 
    <result-type/> 
    <icon/>
  </documentation>

  <inputs>
    <from type="string">
      <sources>
        <request>from</request>
      </sources> 
      <default-value><![CDATA[mail@mail]]></default-value>
    </from> 
    <to type="string">
      <sources>
        <request>to</request>
      </sources> 
      <default-value><![CDATA[mail@mail]]></default-value>
    </to>
  </inputs>

  <outputs/>

  <resources>
    <report>
      <solution-file>
        <location>report.prpt</location> 
        <mime-type>application/zip</mime-type>
      </solution-file>
    </report>
  </resources>
 
  <actions>
    <action-definition>
      <component-name>SQLLookupRule</component-name>
      <action-type>SQlLookupRule</action-type>
      <action-outputs>
        <query-result type="result-set" mapping="report"/>
      </action-outputs>
      <component-definition>
        <query><![CDATA[ // SQL QUERY // ]]></query> 
        <live><![CDATA[true]]></live> 
        <driver><![CDATA[net.sourceforge.jtds.jdbc.Driver]]></driver> 
        <connection><![CDATA[ // SERVER URL // ]]></connection> 
        <user-id><![CDATA[ // USER // ]]></user-id> 
        <password><![CDATA[ // PASSWORD // ]]></password>
      </component-definition>
    </action-definition>
 
    <action-definition>
      <component-name>SimpleReportingComponent</component-name>
      <action-type>Pentaho Report</action-type>
      <action-inputs>
        <report type="result-set"/>
      </action-inputs>
      <action-resources>
        <report-definition type="resource" mapping="report"/>
      </action-resources>
      <action-outputs>
        <outputstream type="content" mapping="reportOutput"/>
      </action-outputs>
      <component-definition>
        <useContentRepository><![CDATA[true]]></useContentRepository> 
        <outputType><![CDATA[application/vnd.ms-excel]]></outputType>
      </component-definition>
    </action-definition>
 
    <action-definition>
      <component-name>EmailComponent</component-name>
      <action-type>E-Mail HTML</action-type>
      <action-inputs>
        <to type="string"/> 
        <from type="string"/> 
        <reportOutput type="content"/>
      </action-inputs>
      <component-definition>
        <message-plain><![CDATA[Please see the report attached.]]></message-plain> 
        <subject><![CDATA[Income Statement HTML]]></subject> 
        <attachment-ref name-param="attach_name_1" input-param="reportOutput"/> 
        <attach_name_1><![CDATA[reportOutput]]></attach_name_1>
      </component-definition>
    </action-definition>
 
  </actions>
</action-sequence>

I'd be thankful for any input on the matter.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>