Answers.Body: <p>This is very hard to read (I recommend always pasting the text in addition to screenshots, makes this searchable for others and easier for folks to help).  However, I can see that this is caused by your Sparkpost extension.  I would follow up with them directly.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-10T13:25:45.907Z
Answers.LastActivityDate: 2019-04-10T13:25:45.907Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>As Jon said, its difficult to say. But its certainly because of com.pesc.sparkpost extension. I believe the extensions is creating activity of type 'Transactional Email' which either missing of disabled. </p>
  
  <p>Troubleshoot:
  Check under Administer >> Customize Data and Screens >> Activity types if you can see 'Transactional Email'. </p>
  
  <p>If you can't then add new Activity type named 'Transactional Email'</p>
  
  <p>If you can see then </p>
  
  <ol>
  <li>Check if its enabled.</li>
  <li>Check the machine name for that activity type
  either in database or using api explorer using params shown in screenshot (civicrm/api). If you dont get result then create a new one.</li>
  </ol>
  
  <p><a href="https://i.sstatic.net/c9L8b.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/c9L8b.png" alt="enter image description here"></a></p>
  
  <p>Thanks
  Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-10T20:26:47.230Z
Answers.Text: That was exactly the problem. Than you very much for your help.
Answers.UserDisplayName: Davy Ivins
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-10T13:40:26.750Z
Answers.LastActivityDate: 2019-04-10T13:40:26.750Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>Drupal 7, Civi 5.12: 
  On submitting a live event booking I receive the following error:
  <em>Mandatory key(s) missing from params array: one of (activity_name, activity_type_id, activity_label)</em></p>
  
  <p>The booking does update in Civi (both event and contribution) but the confirmation email and invoice do not get sent.</p>
  
  <p>Any ideas please?</p>
  
  <p><a href="https://i.sstatic.net/t9k9o.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/t9k9o.png" alt="backtrace"></a>
  <a href="https://i.sstatic.net/JlLNa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JlLNa.png" alt="Fatal error"></a></p>
  
Tags: <civievent><drupal>
Title: (Solved) CiviEvent mandatory key missing error
ThreadText: # (Solved) CiviEvent mandatory key missing error
  
  (Asked by: username_0 on 2019-04-10)
  
  Drupal 7, Civi 5.12:
  On submitting a live event booking I receive the following error:
  *Mandatory key(s) missing from params array: one of (activity\_name, activity\_type\_id, activity\_label)*
  
  The booking does update in Civi (both event and contribution) but the confirmation email and invoice do not get sent.
  
  Any ideas please?
  
  [![backtrace](https://i.sstatic.net/t9k9o.png)](https://i.sstatic.net/t9k9o.png)
  [![Fatal error](https://i.sstatic.net/JlLNa.png)](https://i.sstatic.net/JlLNa.png)
  
  **Tags:** civievent, drupal
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2019-04-10. Score: 3 | Accepted answer
  
  As Jon said, its difficult to say. But its certainly because of com.pesc.sparkpost extension. I believe the extensions is creating activity of type 'Transactional Email' which either missing of disabled.
  
  Troubleshoot:
  Check under Administer >> Customize Data and Screens >> Activity types if you can see 'Transactional Email'.
  
  If you can't then add new Activity type named 'Transactional Email'
  
  If you can see then
  
  1. Check if its enabled.
  2. Check the machine name for that activity type
     either in database or using api explorer using params shown in screenshot (civicrm/api). If you dont get result then create a new one.
  
  [![enter image description here](https://i.sstatic.net/c9L8b.png)](https://i.sstatic.net/c9L8b.png)
  
  Thanks
  username_2
  
  > **Comments:**
  > **username_0**: That was exactly the problem. Than you very much for your help.  
  
  ---
  
  ### Answer by username_1 on 2019-04-10. Score: 2
  
  This is very hard to read (I recommend always pasting the text in addition to screenshots, makes this searchable for others and easier for folks to help). However, I can see that this is caused by your Sparkpost extension. I would follow up with them directly.
  
  
  ---
  
  