Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Code in ValidateWrite method is not being fired in AX 2012 R2

$
0
0
The PriceDiscAdmTable creates the journal number in the insert and validateWrite methods. This table has been modified on the ISV and SYS layer but these 2 methods have not been modified on the ISV layer. When creating a new Price/Discount agreement journal, we are receiving the message "Field 'Price/discount journal number' must be filled in". If I put break points in the code in these 2 methods, the code does not break and I just receive the validation error message. The form does not have any code on the datasource in either the Write or the ValidateWrite methods. I initially thought this was a problem with the number sequence, but I can generate the next journal number in a job without a problem. I can change the mandatory property of the journal number field to 'No' and the code breaks at my breakpoint in the insert method and creates the journal number correctly. If I reset the mandatory property to 'Yes' and add a new method so the object is modified on a higher layer than ISV, the code will stop at my breakpoint in the validateWrite method and trigger correctly. This issue happens in all companies for this customer, in 3 different environments. Our internal environment with the same ISV layer does not have this issue. It happens for all users but just started as the customer has been able to create these journals without a problem in all of the environments. I have refreshed all the caches, recompiled, and re-generated the CIL but nothing has resolved the issue other than modifying the object on a higher layer. Any suggestions on additional resolutions would be greatly appreciated.

Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>