Skip to main content
Answer

Identify Invalid(Error included) rows in RowPersisting event

  • October 23, 2023
  • 4 replies
  • 100 views

Forum|alt.badge.img

Hi All,

Need to know how to identify error lines( Exception included) in RowPersisting event.

This is my sample screen.

 

Thanks

Best answer by Giri K

@bhagyat25 

You can write below syntax

String ex="error msg";

throw Exception ex;

4 replies

Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

Hi @bhagyat25, Can you please share more details on the requirement? Like, current behavior, expected behavior.


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • October 23, 2023

Hi @bhagyat25, Can you please share more details the requirement?

Hi @Vignesh Ponnusamy

I set some property Exception after clicking the Verify Vendors button. If that validation fails, row field is marked it has an exception. So, I need to prevent saving those exception including rows.  Hope that makes sense. 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • November 29, 2023

Hi @bhagyat25 were you able to find a solution? Thank you!


Forum|alt.badge.img+1
  • Pro I
  • Answer
  • December 1, 2023

@bhagyat25 

You can write below syntax

String ex="error msg";

throw Exception ex;