CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Gift Aid batch mistake - need to delete batch
Pages: [1]

Author Topic: Gift Aid batch mistake - need to delete batch  (Read 1134 times)

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Gift Aid batch mistake - need to delete batch
July 06, 2011, 12:32:58 am
Hi All

I just ran the 1st gift aid claim and there are some data entry errors that we have picked up to do with post codes, I need to be able to go and edit the entries that are incorrect and then re run the batch. Also i ran the batch for the wrong date period. 

How can i delete the batch so that we can run the batch again?

Thanks

Chelcone

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Gift Aid batch mistake - need to delete batch
July 12, 2011, 03:10:05 am
Hey there,

Quote
How can i delete the batch so that we can run the batch again?
I think you will have to do that at the database layer.  i.e. look at your civicrm_batch table and remove the entries for the batch ID in question.

'How come there is no batch delete workflow?', I hear you ask.  IMO there are a couple of reasons:

1) because these are being used for submission to HMRC, we were keen to make batches as read only as possible so we have an 'audit trail' etc.
2) the Batch entity is relatively new to CiviCRM and we didn't write a delete batch workflow.

HTH.  Let me know if you need more info.

Disclaimer: It might be that Batch has been improved upon since I last looked at it, but I am reasonably sure that it hasn't

« Last Edit: July 12, 2011, 03:18:30 am by michaelmcandrew »
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 12, 2011, 03:30:11 am
I did suspect that would be the way. I didn't want to delete the table without knowing that it was ok, dependencies have got me one too many times! haha.

Thanks again Michael!

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Gift Aid batch mistake - need to delete batch
July 12, 2011, 03:41:15 am
Oops - forgot to mention that you will also need to delete the corresponding civicrm_entity_batch entries.

Quote
dependencies have got me one too many times!
I know what you are saying!

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 12, 2011, 04:02:49 am
Turns out that the civicrm_entity_batch entries truncate themselves when the civicrm_batch entry is deleted! Handy!

Im just testing this out to see how it does.

Thanks for the help again!

Chelcone


Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 12, 2011, 08:06:57 am
Unfortunately I seem to have an issue.

The system seems to be doing some strange things,

None of the donors who have donated twice within the period set have the 2nd donation in the batch.

The numbers are coming out very strange and considerably lower than before when i ran this and then deleted it, is there any other field that would stop the batch picking up anything as non eligible?

Thanks

Chelcone




Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 13, 2011, 03:30:18 am
could the table "civicrm_value_gift_aid_submission" have anything to do with it?


Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Gift Aid batch mistake - need to delete batch
July 13, 2011, 06:31:37 am
Hey Chelcone,

First thing I would do (if you haven't already) is update your giftaid to the latest version, as recommended by Deepak in IRC just now (see below)

FROM IRC

Quote
[14:13] michaelmcandrew: deepaks: have u seen this forum post about giftaid?: http://forum.civicrm.org/index.php/topic,20605.0/topicseen.html
[14:20] deepaks: michaelmcandrew: just read
[14:22] deepaks: michaelmcandrew: you r right, batch & entity_batch are two tables that needs to be dealt with
[14:22] michaelmcandrew: thanks deepaks - there is another question afterwards from chelcone
[14:22] michaelmcandrew: any ideas about that?
[14:25] deepaks: michaelmcandrew: can't think of the reason, i would suggest to use the latest code as there been lot of fixes recently and give the steps to reproduce
[14:27] deepaks: michaelmcandrew: http://issues.civicrm.org/jira/browse/CRM-8250 was the issue when some major changes happened.
[14:28] michaelmcandrew: thanks deepaks
[14:28] deepaks: Also remember fixing some bugs
[14:28] michaelmcandrew: deepaks: have there been any db structure changes? or is it just code level?
[14:28] deepaks: just code level
[14:28] michaelmcandrew: just trying to work out whether chelcone can upgrade
[14:29] michaelmcandrew: his giftaid module
[14:29] michaelmcandrew: without worrying about the other stuff
[14:29] michaelmcandrew: ok - will tell him - thanks
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 13, 2011, 06:45:04 am
Updating would be great! I didnt realise you had more versions.

How do i download the update?

Thanks

Chelcone

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 13, 2011, 07:03:04 am
Ok i didnt realise that the SVN was updated haha.

Downloaded it, but your documentation doesnt say if you need to run the import script again when you upgrade. Do i need to do that?

Thanks

Chelcone

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 15, 2011, 01:56:51 am
I just tried it, used the URL to reload the custom data but now the preview of the data before you continue to actually create the batch no longer shows information and its made no difference to the report.

Anything i could need to do?

Chelcone

Chelcone

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 1
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.*
  • MySQL version: MySQL 5.*
Re: Gift Aid batch mistake - need to delete batch
July 20, 2011, 02:02:22 am
Still having problems with this however i have done some digging and narrowed the issue.

Running the batch month by month brings up donations that are dated after the 1st donation, however any donations that are made after the 1st donation of the month still wont show in the report. its like the batch only check for A donation thats yes to gift aid instead of all donations that are yes.

I have done the update as recommended and really need help on this as we are going to miss our claim date if this doesn't work soon and if the claim is wrong then we can get fined.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Gift Aid batch mistake - need to delete batch
July 20, 2011, 08:22:09 am

You will need to debug the code and help fix the issue. We built and implemented the gift aid module primarily with Alpha international being the main sponsor and tester of that module.

If you are not a developer, you might need to seek assistance from someone with the needed php/mysql/drupal/civi skills to help sort this out

Sorry that we cannot help and debug the issue u r having

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Gift Aid batch mistake - need to delete batch

This forum was archived on 2017-11-26.