Adding an informational error in the commit ('Edit' -> 'Save') section of a batch extension
I am trying to raise an informational error in the commit ('Edit' -> 'Save') section of a batch extension but the problem is that when I call the appropriate stored procedure to create the informational message (i.e. - USP_BATCHCONSTITUENTUPDATEBATCHUSERMESSAGE_ADD) it creates the record in the BATCHCONSTITUENTUPDATEBATCHUSERMESSAGE table but does not rollback the transaction. It seems that once it gets to the commit section of an batch extension spec, it has already run the transactions to to commit the record to the database. Is there anyway around that? Is there anyway that if the informational message is needed to be created at this time, the transaction can be rolled back and this be at least put into an error batch with the informational error message displayed at that time?
Any suggestions would be helpful because I have several situations that I will need to use this fix.
Thanks,
Matt
Any suggestions would be helpful because I have several situations that I will need to use this fix.
Thanks,
Matt
0
Comments
-
Hey Matthew,
As far as I'm aware, it's not possible to rollback a transaction the way you're attempting to because the code from the base batch that you're extending will always run first and then the extension will run. So you can't really rollback the transaction because it's already been committed.
Depending on the data your accessing and the complexity you could always have part of your extension check the associated audit tables for the old values and change the values back (not perfect but you'd be able to reset the values). The only other approach would be to recreate the batch so you have full control over the batch code.
Sorry if that's not much help.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 396 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 650 Blackbaud Grantmaking™
- 568 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 34 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 785 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)