CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Configuring Mail Reports via drush
Pages: [1]

Author Topic: Configuring Mail Reports via drush  (Read 321 times)

Kevin Cristiano

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: WordPress
  • MySQL version: 5.6
  • PHP version: 5.6
Configuring Mail Reports via drush
September 16, 2014, 08:32:09 am
I am trying to get drush working using cvapi to run the mail_reports job.

I have tried many variants of:

drush cvapi job.execute mail_report instanceId="1" auth=0 -y

They all succeed at the command line (clean output), But when I view the scheduled job logs I get the following:

Quote
Parameters raw (from db settings):
instanceId=[ID of report instance] required
format=[csv or print] optional-output CSV or print-friendly HTML, else PDF

Parameters parsed (and passed to API method):
a:3:{s:7:"version";i:3;s:10:"instanceId";s:32:"[ID of report instance] required";s:6:"format";s:67:"[csv or print] optional-output CSV or print-friendly HTML, else PDF";}

Full message:
Finished execution of Mail Reports with result: Failure, Error message: A fatal error was triggered:  is not of type

The key is [ID of report instance] -  does anyone know the syntax to get drush to work with this job?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Configuring Mail Reports via drush

This forum was archived on 2017-11-26.