Skip to main content
Answer

How to ignore standard validation error in Release action

  • December 20, 2023
  • 7 replies
  • 137 views

Forum|alt.badge.img

Hi Team,

How I can ignore the standard Validation error during the release Process. Could you please help me on this. 

 

GL Error: Cash account doesn't exist for this branch, account and sub account (PRODWHOLE , 10200, 000FIN)

 

Regards,

Ramya Krishna

Best answer by ramya15

Hi @Robert Sternberg,

Instead of commenting, now I have customized a similar attribute without the validation and applied in the DAC. Hope it should not cause any issue.

Regards,

Ramya Krishna

7 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • December 22, 2023

@ramya15  Not Sure. But, have you tried to debug the Base code to identify the root cause?


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • December 26, 2023

Hi @Naveen Boga ,

After commenting the “[GLCashTranID()]” attribute, it ignores the standard validation for CashAccount.

 #region Event Handlers
 [PXDBLong()]
// [GLCashTranID()]
 protected virtual void GLTran_CATranID_CacheAttached(PXCache cache)
 {

 }
 #endregion

 

Regards,

Ramya


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • December 26, 2023

@ramya15  Thanks for sharing the update!

Hope you also checked the impacts by ignoring the validation.


Robert Sternberg
Captain II
Forum|alt.badge.img+7

It is very possible ignoring this validation will cause issues with Bank Reconciliation.  During the posting processes the CATranID is created along with incrementing the appropriate field in CADailySummary.  


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • December 27, 2023

Hi @Robert Sternberg,

Is there anyother way to ignore this standard validation. Can i get some idea on this.

GL Error: Cash account doesn't exist for this branch, account and sub account (PRODWHOLE , 10200, 000FIN)

 

Regards,

Ramya Krishna


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • December 27, 2023

Hi @Robert Sternberg,

Instead of commenting, now I have customized a similar attribute without the validation and applied in the DAC. Hope it should not cause any issue.

Regards,

Ramya Krishna


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hi @ramya15 if you could share more on your approach I can comment in context about my experience.