similar issue was reported here with v1 but possibly for totally unrelated reasons but in case there is a link http://drupal.org/node/1206194

This is latest dev

Form is creating Activities for Contact 2 where Contact 2 is an Org that is Current Employer of Contact 1.

Activity is being assigned to an assignee set in the form

Choose Assignee From xxxx
Assign Activity to yyyyy

Problem seems to only kick in when I set 'assign activity to' to a Contact rather than leaving unset.

This is working for Admin but not Anon - maybe some Permission but I did run my eye over them and nothing leaped out that might stop Anon assigning an Activity to an existing contact.

hope that helps.

Comments

colemanw’s picture

I just tried following these steps:
-contact1: individual
fields: first & last name
-contact2: org
fields: org name
Create activity, assign to existing contact, org is participant

Logged out and submitted the form, everything worked fine. I even tried tripping it up by leaving fields for one of the contacts blank, but that also didn't cause any problems (it just doesn't create a contact if you leave the name fields blank).

So I can't reproduce this bug. Sorry.

petednz’s picture

happy to demo to you if you have a mo

petednz’s picture

fwiw - i removed that field that was an integer and continued to get the error msg

colemanw’s picture

Any progress with this on your end Pete?

jaymcgraw’s picture

Having this same issue. Errors when anonymous submits webform with activity assignment specified as anything other than "- no one -". Here's what I get:

/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 296
/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Utils/Type.php, fatal, 268
/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, validate, 928
/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, composeQuery, 865
/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Contact/BAO/Contact/Location.php, executeQuery, 72
/home/cdmpdev/public_html/sites/all/modules/civicrm/CRM/Case/BAO/Case.php, getEmailDetails, 1353
/home/cdmpdev/public_html/sites/all/modules/webform_civicrm/webform_civicrm_utils.inc, sendActivityCopy, 413
/home/cdmpdev/public_html/sites/all/modules/webform_civicrm/webform_civicrm.module, webform_civicrm_process_submission, 142
, webform_civicrm_webform_submission_insert,
/home/cdmpdev/public_html/includes/module.inc, call_user_func_array, 819
/home/cdmpdev/public_html/sites/all/modules/webform/includes/webform.submissions.inc, module_invoke_all, 139
/home/cdmpdev/public_html/sites/all/modules/webform/webform.module, webform_submission_insert, 2272
/home/cdmpdev/public_html/includes/form.inc, webform_client_form_submit, 1414
/home/cdmpdev/public_html/includes/form.inc, form_execute_handlers, 832
/home/cdmpdev/public_html/includes/form.inc, drupal_process_form, 352
/home/cdmpdev/public_html/includes/form.inc, drupal_build_form, 189
/home/cdmpdev/public_html/sites/all/modules/webform/webform.module, drupal_get_form, 1397
, webform_node_view,
/home/cdmpdev/public_html/includes/module.inc, call_user_func_array, 819
/home/cdmpdev/public_html/modules/node/node.module, module_invoke_all, 1387
/home/cdmpdev/public_html/modules/node/node.module, node_build_content, 1285
/home/cdmpdev/public_html/modules/node/node.module, node_view, 2534
/home/cdmpdev/public_html/modules/node/node.module, node_view_multiple, 1407
/home/cdmpdev/public_html/modules/node/node.module, node_show, 2605
, node_page_view,
/home/cdmpdev/public_html/includes/menu.inc, call_user_func_array, 503
/home/cdmpdev/public_html/index.php, menu_execute_active_handler, 21

Sorry. A non-recoverable error has occurred.
One of parameters (value: ) is not of the type Integer

colemanw’s picture

Status: Active » Fixed

This is another CiviCRM core issue. I have found a solution and posted a patch:
http://issues.civicrm.org/jira/browse/CRM-8926

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.