Body: <p>I have a CiviCRM Webform that creates a contact with some custom fields on submission.
  It throws DB Constraint error intermittently</p>
  
  <p>On Webform submission I get this error:
  The Druapl Reports Logs shows:</p>
  
  <p>"The CiviCRM "contact create" API function returned the error: "A fatal error was triggered" when called by line 618 of wf_crm_webform_postprocess.inc with the following parameters: "Array ( [contact_sub_type] => Array ( [Invoice_No] => Invoice_No ) [webform_label] => Invoice [id] => -268 [check_permissions] => [version] => 3 ) "</p>
  
  <p>However, if the same user creates a Contact using the civicrm form, there is no error.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-12T21:04:20.097Z
Comments.Text: I am also getting what seems like it may be a similar error on Webform/Civi integration. I am on Civi 4.6.10 and the latest webform and webform-civi. > The CiviCRM "group_contact create" API returned the error: "Mandatory > key(s) missing from params array: group_id" when called by function > "saveGroupsAndTags" on line 822 of wf_crm_webform_postprocess.inc with > parameters: "Array ( [contact_id] => 4655 [group_id] => > [check_permissions] => [version] => 3 ) "
Comments.UserDisplayName: desierto
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-14T22:20:52.170Z
Comments.Text: Did you take a look at permissions. It looks like it has to do with invoices. Did you enable the invoice feature? Is the download invoice permissions enabled for that user level?
Comments.UserDisplayName: Yossi
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-09T16:39:18.487Z
Comments.Text: What versions of CiviCRM and Webform/CiviCRM?
Comments.UserDisplayName: Laryn
Tags: <webform-civicrm>
Title: Webform check permission
ThreadText: # Webform check permission
  
  (Asked by: username_0 on 2015-10-09)
  
  I have a CiviCRM Webform that creates a contact with some custom fields on submission.
  It throws DB Constraint error intermittently
  
  On Webform submission I get this error:
  The Druapl Reports Logs shows:
  
  "The CiviCRM "contact create" API function returned the error: "A fatal error was triggered" when called by line 618 of wf\_crm\_webform\_postprocess.inc with the following parameters: "Array ( [contact\_sub\_type] => Array ( [Invoice\_No] => Invoice\_No ) [webform\_label] => Invoice [id] => -268 [check\_permissions] => [version] => 3 ) "
  
  However, if the same user creates a Contact using the civicrm form, there is no error.
  
  **Tags:** webform-civicrm
  
  > **Comments:**
  > **username_3**: What versions of CiviCRM and Webform/CiviCRM?  
  > **username_1**: I am also getting what seems like it may be a similar error on Webform/Civi integration. I am on Civi 4.6.10 and the latest webform and webform-civi. > The CiviCRM "group_contact create" API returned the error: "Mandatory > key(s) missing from params array: group_id" when called by function > "saveGroupsAndTags" on line 822 of wf_crm_webform_postprocess.inc with > parameters: "Array ( [contact_id] => 4655 [group_id] => > [check_permissions] => [version] => 3 ) "  
  > **username_2**: Did you take a look at permissions. It looks like it has to do with invoices. Did you enable the invoice feature? Is the download invoice permissions enabled for that user level?  
  
  ---
  
  ## 0 answers
  
  