Answers.Body: <p>You have instanceID with a capital D. It wants instanceId.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-08T15:43:03.947Z
Answers.Text: Yup!    what's the embarrassed emoji?   Thanks so much
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-12-07T23:01:30.190Z
Answers.LastActivityDate: 2021-12-07T23:01:30.190Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>I got this error after upgrading (was very many versions behind).</p>
  <p>I had trouble finding where to enter the parameter in the dashboard, but it's in &quot;Settings - Scheduled Jobs&quot;, Mail reports. Then I edited and added &quot;instanceId=1
  format=csv&quot; to the Command Parameters and saved. Went to more &gt; Execute now and it worked.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-04T01:24:58.310Z
Answers.Text: THANKYOU! For others - make sure you put each parameter on a new line i.e. `instanceId=1` on the first line and `format=csv` on a new line.
Answers.UserDisplayName: Hugh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-11T03:16:36.407Z
Answers.LastActivityDate: 2022-03-11T03:16:36.407Z
Answers.UserDisplayName: Fox Jones
Body: <p>Set up schedule job for mail reports.   the following error is in the log:</p>
  <hr />
  <p>Finished execution of Mail Reports with result: Failure, Error message: Report Mail Triggered... Required parameter missing: instanceId</p>
  <p>Details</p>
  <p>Parameters raw (from db settings):
  instanceID=1
  format=csv</p>
  <p>Parameters parsed (and passed to API method):
  a:3:{s:7:&quot;version&quot;;i:3;s:10:&quot;instanceID&quot;;s:1:&quot;1&quot;;s:6:&quot;format&quot;;s:3:&quot;csv&quot;;}</p>
  <p>Full message:
  Finished execution of Mail Reports with result: Failure, Error message: Report Mail Triggered...
  Required parameter missing: instanceId</p>
  <hr />
  <p>Have tried multiple options for parameters and spelling - i.e. lower case and different report IDs that are known to exist.  All give the same error.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-12-08T14:50:40.087Z
Comments.Text: How are you running the job? This works for me: `cv api --user=cmsadmin job.mail_report instanceId=1 format=csv`
Comments.UserDisplayName: Demerit
Tags: <civireport><reports><scheduled-job>
Title: Scheduled Job -- Mail report - cannot find InstanceID
ThreadText: # Scheduled Job -- Mail report - cannot find InstanceID
  
  (Asked by: username_0 on 2021-12-07)
  
  Set up schedule job for mail reports. the following error is in the log:
  
  ---
  
  Finished execution of Mail Reports with result: Failure, Error message: Report Mail Triggered... Required parameter missing: instanceId
  
  Details
  
  Parameters raw (from db settings):
  instanceID=1
  format=csv
  
  Parameters parsed (and passed to API method):
  a:3:{s:7:"version";i:3;s:10:"instanceID";s:1:"1";s:6:"format";s:3:"csv";}
  
  Full message:
  Finished execution of Mail Reports with result: Failure, Error message: Report Mail Triggered...
  Required parameter missing: instanceId
  
  ---
  
  Have tried multiple options for parameters and spelling - i.e. lower case and different report IDs that are known to exist. All give the same error.
  
  **Tags:** civireport, reports, scheduled-job
  
  > **Comments:**
  > **username_1**: How are you running the job? This works for me: `cv api --user=cmsadmin job.mail_report instanceId=1 format=csv`  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-12-07. Score: 3
  
  You have instanceID with a capital D. It wants instanceId.
  
  > **Comments:**
  > **username_0**: Yup!    what's the embarrassed emoji?   Thanks so much  
  
  ---
  
  ### Answer by username_2 on 2022-03-11. Score: 2
  
  I got this error after upgrading (was very many versions behind).
  
  I had trouble finding where to enter the parameter in the dashboard, but it's in "Settings - Scheduled Jobs", Mail reports. Then I edited and added "instanceId=1
  format=csv" to the Command Parameters and saved. Went to more > Execute now and it worked.
  
  > **Comments:**
  > **username_3**: THANKYOU! For others - make sure you put each parameter on a new line i.e. `instanceId=1` on the first line and `format=csv` on a new line.  
  
  ---
  
  