Skip to main content


Dynamics 365 Community / Forums / Finance forum / Regarding Runnable cla...
Finance forum

Regarding Runnable class issue

Posted on by 12
Hi all, I wrote a simple runnable class code and tried to run it. Build is successfull, but unable to see the result. It is throwing the following error after clicking on start button 'object reference not set to an instance' . Please help to resolve this issue.

I have set the runnable class as Startup Object and also rebuilt the project. 
class PP_DataType
    public static void main(Args _args)
        Info('Hello World from the Server Side');
Please give me more insight on this.
  • Suggested answer
    SS-21050922-0 Profile Picture
    SS-21050922-0 12 on at
    Regarding Runnable class issue
    Hi @Mohamed Amine Mahmoudi, thanks for your response.
    I restarted the Visual studio and it worked!!!

  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 6,423 User Group Leader on at
    Regarding Runnable class issue
    Try to restart visual studio .

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,217 Super User

Martin Dráb Profile Picture

Martin Dráb 225,202 Super User

nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans