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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Create Axapta object fail

(0) ShareShare
ReportReport
Posted on by 35

iam trying to connect to MS AX using business connector from MS VB 2005 and iam getting an error while creating axapta object for axapta class (AxLedgerDemo) even i have created it in MS Dynamics AX

error : "The operation failed. The class %s does not exist."

here is the code in VB
axapta = New Microsoft.Dynamics.BusinessConnectorNet.Axapta
axapta.Logon("", "", "", "")
AxLedgerDemo = axapta.CreateAxaptaObject("AxLedgerDemo")

can anybody help me why iam getting this error and what is the solution?

*This post is locked for comments

I have the same question (0)
  • user5555 Profile Picture
    7,437 on at

    Hi,

    1. Check if your connection is oke (though code: try-catch on Logon() and if(axapta != null)

    2. I have the feeling connection is oke. But the class AxLedgerDemo is not default present in the Ax. You can open the AOT and then look in the classes for the AxLedgerDemo. I think it is not there. You need to import it: open AOT . FIle --> import.. the xpo must be given somewhere with the demo.

    J.

  • Kaspar Bomholtz Profile Picture
    100 on at

    1. Make sure your default Business Connector configuration points to the AOS, where you have created the class.

    2. There is sometime a caching problem, where newly changes to the AOT will not be accessible from the Business Connector. A restart of the AOS or even better the server will help.

  • ikira Profile Picture
    20 on at

    I also facing same type of problem. But i connect using IBM Lotus Domino. Can anyone here guide me to install COM Connector (AXCom.dll). i try to use command "D:\Setup.exe HideUI=1 AcceptLicense=1 InstallComBusinessConnector=1" and "D:\Setup.exe HideUI=1 AcceptLicenseTerms=1 InstallComBusinessConnector=1" but nothing is happen. Since im new in AX then i need expert like you'll to support me. thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans