Answers.Body: <p>If you run it manually from the scheduled jobs screen you need to edit the mail report entry there and set those parameters. Normally you would set them in the specific command you use for cron for a specific report.</p>
  <p>See <a href="https://docs.civicrm.org/user/en/latest/initial-set-up/scheduled-jobs/#job_mail_report" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/initial-set-up/scheduled-jobs/#job_mail_report</a>. For getting the instance id that's a good point. There's a couple ways but one is to go to Reports -&gt; All Reports and then hover over the View Results link and in the url that appears in the browser status bar it's the number after the word &quot;instance&quot;, e.g. if it says <code>civicrm/report/instance/5?force=1&amp;reset=1</code> then the id is 5.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-31T15:33:22.643Z
Answers.Text: Where can I find a syntax guide to make the corrections? And where do I find the "ID of report instance"?
Answers.UserDisplayName: Tom
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-31T15:50:08.117Z
Answers.Text: Have updated answer.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-29T16:30:06.343Z
Answers.LastActivityDate: 2021-01-31T15:50:01.067Z
Answers.LastEditDate: 2021-01-31T15:50:01.067Z
Answers.UserDisplayName: Demerit
Body: <p>I'm running civiCRM 5.30.0 on Drupal 7.</p>
  <p>I've designed a report to be sent weekly. To test it, I manually ran mail_report and got the detail below. Where is type STRING required?</p>
  <hr />
  <p>Parameters raw (from db settings):
  instanceId=[ID of report instance] required
  format=[csv or print] optional-output CSV or print-friendly HTML, else PDF</p>
  <p>Parameters parsed (and passed to API method):
  a:3:{s:7:&quot;version&quot;;i:3;s:10:&quot;instanceId&quot;;s:32:&quot;[ID of report instance] required&quot;;s:6:&quot;format&quot;;s:67:&quot;[csv or print] optional-output CSV or print-friendly HTML, else PDF&quot;;}</p>
  <p>Full message:
  Finished execution of Mail Reports with result: Failure, Error message:  is not of type String</p>
  <hr />
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-01-29T15:53:03.820Z
Comments.Text: I should add that I manually tested it because cron is not running yet.
Comments.UserDisplayName: Tom
Tags: <civireport><error><scheduling>
Title: My mail_report: Finished execution of Mail Reports with result: Failure, Error message: is not of type String
ThreadText: # My mail_report: Finished execution of Mail Reports with result: Failure, Error message: is not of type String
  
  (Asked by: username_0 on 2021-01-29)
  
  I'm running civiCRM 5.30.0 on Drupal 7.
  
  I've designed a report to be sent weekly. To test it, I manually ran mail\_report and got the detail below. Where is type STRING required?
  
  ---
  
  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: is not of type String
  
  ---
  
  **Tags:** civireport, error, scheduling
  
  > **Comments:**
  > **username_0**: I should add that I manually tested it because cron is not running yet.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-01-29. Score: 1
  
  If you run it manually from the scheduled jobs screen you need to edit the mail report entry there and set those parameters. Normally you would set them in the specific command you use for cron for a specific report.
  
  See <https://docs.civicrm.org/user/en/latest/initial-set-up/scheduled-jobs/#job_mail_report>. For getting the instance id that's a good point. There's a couple ways but one is to go to Reports -> All Reports and then hover over the View Results link and in the url that appears in the browser status bar it's the number after the word "instance", e.g. if it says `civicrm/report/instance/5?force=1&reset=1` then the id is 5.
  
  > **Comments:**
  > **username_0**: Where can I find a syntax guide to make the corrections? And where do I find the "ID of report instance"?  
  > **username_1**: Have updated answer.  
  
  ---
  
  