Dynamics NAV

Friday, 5 August 2016

Error : There is a syntax error while compiling NAV16 object

Recently I got an issue with compiling the object in NAV2016, I am getting the below error while compile the object .

---------------------------
Microsoft Dynamics NAV Development Environment
---------------------------
There is a syntax error.
---------------------------
OK
---------------------------

But when I check the code everything seems to correct as show below


Now I copied the code in notepad++ and found some special characters as  shown below 
   
I removed them and used the code in NAV and my object got compiled. I hope it will help some one.