Announcements
No record found.
Hi all,
I 'm trying to use Dictionary in X++, but I got Late bound call warning
Is there any way to solve this warning?
Thanks
Hi PhucNguyen,
You can suppress the warning.
Refer to the below thread which is similar to the issue.
https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/399786/getting-br-warning-bpupgradecodelateboundcall-by-calling-custom-method-in-form-method-in-d365-fo
Thanks,
Girish S.
Hi, You can suppress BP warning as Girish mentioned. However, there is another option as well to explore.
sangeethwiki.blogspot.com/.../solution-for-bp-bp-rule.html
Suppressing the warning isn't rhe best solution. A better approach is actually avoiding the peformance problem.
You should avoid CLRObject - use a concrete type instead. Unfortunately we don't know why you're trying to do it, so we can't tell you what exactly you should do instead.
If you just want something like Dictionary and you don't .NET Interop, simply use the X++ native class for this purpose: Map.
If you need .NET Interop but not necessarily this particular type, consider using a non-generic dictionary: HashTable.
Or wrap the generic collection in a custom class (with a non-generic interface) and use this class in X++.
Also, X++ has some support for generics, but it's not very good.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 694
André Arnaud de Cal... 646 Super User 2026 Season 1
CP04-islander 337