How to fix the error, unexpected token 'public' specified outside the scope of any class or model element in d35 x++
Hi, Its suggesting that public keyword is found in the file or code where it should not be. Please share where you are getting this error.
Also, check this article
www.daxrunbase.com/.../
Hi,
Probably you have added the public keyword without creating main method using runnable class.
Can you show us the screenshot of your code?
Thanks,
Girish S.
Closing bracket for the class should be on the last. You have added the method outside the opening and closing brackets of the class.
This bracket is the issue, add it in the end of the code.
M_R Please mark answer/s verified that helps and fix your issues.
If the answers don't work then let us know.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 773 Most Valuable Professional
André Arnaud de Cal... 624 Super User 2025 Season 2
CU05031448-0 504