# Broken Batch Validation

CiviCRM 4.7.29 on Wordpress 4.9.8 on Ubuntu

Hello all,

We had the above instance 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

The changes that seem to have taken place before this is the installation of 2 extensions:

Edit Line Item Extension v2.0 (biz.jmaconsulting.lineitemedit)

ExtendedReport v3.0 (nz.co.fuzion.extendedreport)

Would anyone be able to advise how we can regain the batch validation function. We have uninstalled the above 2 extensions but the problem still persists.

Clement

==== I later observed Price Set Errors that seems to be related to the same issue:

I also noticed other errors related to Line Item Report which could be related to the same issue:

Invalid Price Fields Hide the following Price Set Fields use disabled or invalid financial types and need to be fixed if they are to still be used.

=================

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
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