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, ...
Unanswered

How to call multiple class in controller class in x++

(3) ShareShare
ReportReport
Posted on by 6
Hi all i have service class and i want to call one more class call in controller class static method i use 
 class namee::method name (); but it give object reference of instance not set error is blinking  so  how we can solve it 
please help any one have idea.
 
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum. X++ mentone din th etitle indicates thaty the question is about either Dynamics AX or D365 F&O.
     
    The error means that you're trying to call a method on an empty object reference. The first step is finding the place where it happens; the debugger will help you with that.
  • Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at
    Hi,
     
    In addition to Martins response, give us more information so that we can help you. Code snippets (insert code snippet button), screenshots (insert image button) of the error with stack trace etc.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans