Broken Batch Validation
Created by: clement888
Hello,
We had a CIVICRM instance (CiviCRM 4.7.29 on Wordpress 4.9.8 on Ubuntu) running well and doing batch validation under CiviContribution well but had recently choked on validation with the following error:
** text version of the error at the end of this post batch validation error
The change that seem to have taken place before this is the installation of the Edit Line Item (v2.0) extensions.
We also saw a possibly related error complains of "Invalid Price fields: the following Price Set Fields use disabled or invalid financial types and need to be fixed if they are to still be used." at the CIVICRM dashboard. It lists the following:
Price Set Price Set Field Action Link Contribution Amount | Additional Line Item 1 | View Price Set Fields
There would he Additional Line Item 1 to Addiational Line Item 10
Would anyone be able to advise how we can regain the batch validation function. We have uninstalled the above extension but the problem still persists.
Thanks in advance!
===========
Text of error message
CRM_Core_Exception: expected only one price field to be in price set but multiple are present in /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php on line 453 Exception trace
Function Location 0 CRM_Price_BAO_PriceSet::getOnlyPriceFieldID(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php:453 1 CRM_Batch_Form_Entry->processContribution(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php:418 2 CRM_Batch_Form_Entry->postProcess() /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:447 3 CRM_Core_Form->mainProcess() /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:169 4 CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Batch_Form_Entry), 'upload') /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:136 5 CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Batch_Form_Entry), 'upload') /var/www/html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 6 HTML_QuickForm_Controller->handle(Object(CRM_Batch_Form_Entry), 'upload') /var/www/html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 7 HTML_QuickForm_Page->handle('upload') /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:351 8 CRM_Core_Controller->run() /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php:113 9 CRM_Utils_Wrapper->run('CRM_Batch_Form_E…', null, Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:282 10 CRM_Core_Invoke::runItem(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:84 11 CRM_Core_Invoke::_invoke(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:52 12 CRM_Core_Invoke::invoke(Array) /var/www/html/wp-content/plugins/civicrm/civicrm.php:1218 13 CiviCRM_For_WordPress->invoke('') /var/www/html/wp-includes/class-wp-hook.php:286 14 WP_Hook->apply_filters('', Array) /var/www/html/wp-includes/class-wp-hook.php:310 15 WP_Hook->do_action(Array) /var/www/html/wp-includes/plugin.php:453 16 do_action('toplevel_page_Ci…') /var/www/html/wp-admin/admin.php:224 17 {main} Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. expected only one price field to be in price set but multiple are present Return to home page.