Answers.Body: <p>The issue was i had rules setup with the wrong values hence why it wasn't working. After disabling the rules i am now able to add relationships.</p>
  
  <p>I don't know how it worked but it has.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-15T09:20:01.940Z
Answers.LastActivityDate: 2019-10-15T09:20:01.940Z
Answers.UserDisplayName: Moe
Body: <p>I am getting an error on my development site and i have tried everything to fix it but had no Luck.</p>
  
  <pre><code>***ERROR***
  message:            unknown relationship create error Argument &lt;em class="placeholder"&gt;civicrm_relationship&lt;/em&gt; is missing.
  code:                
  exception:          CRM_Core_Exception Object
  (
      [errorData:CRM_Core_Exception:private] =&gt; Array
          (
              [error_code] =&gt; 0
          )
  
      [cause:protected] =&gt; 
      [_trace:PEAR_Exception:private] =&gt; 
      [message:protected] =&gt; unknown relationship create error Argument &lt;em class="placeholder"&gt;civicrm_relationship&lt;/em&gt; is missing.
      [string:Exception:private] =&gt; 
      [code:protected] =&gt; 0
      [file:protected] =&gt; /var/www/vhosts/site.co.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/BAO/Relationship.php
      [line:protected] =&gt; 139
      [trace:Exception:private] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [file] =&gt; /var/www/vhosts/site.co.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Form/Relationship.php
                      [line] =&gt; 565
                      [function] =&gt; createMultiple
                      [class] =&gt; CRM_Contact_BAO_Relationship
                      [type] =&gt; ::
                      [args] =&gt; Array
                          (
                              [0] =&gt; Array
                                  (
                                      [hidden_custom] =&gt; 1
                                      [hidden_custom_group_count] =&gt; Array
                                          (
                                              [] =&gt; 1
                                          )
  
                                      [qfKey] =&gt; bf18a1feddecedf9bb2d0998921e2ecb_7909
                                      [entryURL] =&gt; https://site.co.uk/civicrm/contact/view/rel?cid=140&amp;amp;action=add&amp;amp;reset=1
                                      [relationship_type_id] =&gt; 27
                                      [related_contact_id] =&gt; 137
                                      [is_current_employer] =&gt; 1
                                      [start_date] =&gt; 
                                      [end_date] =&gt; 
                                      [is_active] =&gt; 1
                                      [is_permission_a_b] =&gt; 0
                                     ...
  </code></pre>
  
  <p>I have deleted the relationships re-added them but have had no Luck.</p>
  
  <p>Thanks</p>
  
Tags: <relationships>
Title: CiviCRM Relationship error
ThreadText: # CiviCRM Relationship error
  
  (Asked by: username_0 on 2019-10-15)
  
  I am getting an error on my development site and i have tried everything to fix it but had no Luck.
  ***ERROR***
  message:            unknown relationship create error Argument civicrm_relationship is missing.
  code:                
  exception:          CRM_Core_Exception Object
  (
      [errorData:CRM_Core_Exception:private] => Array
          (
              [error_code] => 0
          )
  
      [cause:protected] => 
      [_trace:PEAR_Exception:private] => 
      [message:protected] => unknown relationship create error Argument civicrm_relationship is missing.
      [string:Exception:private] => 
      [code:protected] => 0
      [file:protected] => /var/www/vhosts/site.co.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/BAO/Relationship.php
      [line:protected] => 139
      [trace:Exception:private] => Array
          (
              [0] => Array
                  (
                      [file] => /var/www/vhosts/site.co.uk/httpdocs/sites/all/modules/civicrm/CRM/Contact/Form/Relationship.php
                      [line] => 565
                      [function] => createMultiple
                      [class] => CRM_Contact_BAO_Relationship
                      [type] => ::
                      [args] => Array
                          (
                              [0] => Array
                                  (
                                      [hidden_custom] => 1
                                      [hidden_custom_group_count] => Array
                                          (
                                              [] => 1
                                          )
  
                                      [qfKey] => bf18a1feddecedf9bb2d0998921e2ecb_7909
                                      [entryURL] => https://site.co.uk/civicrm/contact/view/rel?cid=140&action=add&reset=1
                                      [relationship_type_id] => 27
                                      [related_contact_id] => 137
                                      [is_current_employer] => 1
                                      [start_date] => 
                                      [end_date] => 
                                      [is_active] => 1
                                      [is_permission_a_b] => 0
                                     ...
  
  I have deleted the relationships re-added them but have had no Luck.
  Thanks
  
  **Tags:** relationships
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-15. Score: 2 | Accepted answer
  
  The issue was i had rules setup with the wrong values hence why it wasn't working. After disabling the rules i am now able to add relationships.
  
  I don't know how it worked but it has.
  
  
  ---
  
  