Posts

Showing posts from June, 2025

Ledger Dimension Facade Class

Image
  Ledger Dimension Facade Class When you create a general journal/Payment journal or any journal in D365FO using code (X++) and you face the error below: Error: Function DimensionValidationRequest::newForLedgerDimensionType has been incorrectly called inD365 F&O This blog post will help you with the resolution. I have seen a couple of people face this problem on forums, and the resolution or solution given to them appears to be too bulky or cumbersome. There's actually a better solution by Microsoft, which I'm not sure many are aware of.   Dynamics 365FO has a simpler solution for this, and Microsoft has written an out-of-the-box helper or utility class to solve this. See the solution in the appendix section at the bottom of the blog, but I urge you to read the blog in its entirety because it has a lot of rich information, especially for developers and solution architects. It's surprising to know that even ChatGPT isn't aware that this utility class exists in Dynam...