web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

BP warning Late bound call

(0) ShareShare
ReportReport
Posted on by 35

Hi all,

I 'm trying to use Dictionary in X++, but I got Late bound call warning

pastedimage1676518048088v1.png

Is there any way to solve this warning?

Thanks

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    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

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans