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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Overlapping reference with method name.

(0) ShareShare
ReportReport
Posted on by 140

Hi, I am using visual studio 2017 professional for D365FO development. It was working fine but suddenly, references are overlapping method name in code editor. 
Morever, I tried with codelens but still same issue and also update the VS still same result. 
Please help!

pastedimage1680591005561v1.png

pastedimage1680591026266v2.png

Thanks 

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Overlapping reference with method name.

    Have you tried restarting Visual studio and your Devbox?

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Overlapping reference with method name.

    Hi,

    In addition to Mohit comments - Try formatting the code using Ctrl + k and Ctrl + D.

    Also delete one method and recreate it.

    Recently I also faced the similar issue but adding new methods solved my problem.

    Thanks,

    Girish S.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: Overlapping reference with method name.

    You can try changing the screen size of code editor. But if it overlaps also it doesn't affect you in any way. So you can keep working.

  • D356FO_Dev Profile Picture
    140 on at
    RE: Overlapping reference with method name.

    Hi, Mohit and Girish thanks for your proposals but unfortunately, both of these solutions did not work.  

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Overlapping reference with method name.

    Just try to move the method to next line and check.

    Place the cursor on the method and click on enter.

    Is it happening for one object or for all the objects?

    Try one more thing Just copy all the code into notepad - Remove all the code from the table - Save and build the project - Now copy the code again from the notepad and check.

    Thanks,

    Girish S.

  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Overlapping reference with method name.

    Can you try deleting VS cache

    dotnetrevisited.blogspot.com/.../how-to-clear-visual-studio-cache.html

  • D356FO_Dev Profile Picture
    140 on at
    RE: Overlapping reference with method name.

    tried all the three options still no success :(

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Overlapping reference with method name.

    For a temporary solution you can disable the codeLens option from the Tools >> Options >> Dynamics 365 >> X++ >> CodeLens>> Uncheck the enable codeLens.

    This will remove the reference option shown on the code.

    Thanks,

    Girish S.

  • D356FO_Dev Profile Picture
    140 on at
    RE: Overlapping reference with method name.

    Hi, if I reinstall visual studio but then most probably I could not find D365 FO extension. Is it correct then how would I get it?

  • D356FO_Dev Profile Picture
    140 on at
    RE: Overlapping reference with method name.

    Hi Girish, 

    showing me an error. 
    May be reinstalling visual studio will solve this issue but then I will loose this D365 extension as it is not available in tools and extensions. May be you have any other idea?
    Thanks
    pastedimage1680678327742v1.png

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,922

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans