Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error when calling an AX static method from PowerShell - External component has throwed an exception

(0) ShareShare
ReportReport
Posted on by 717

Hi,

I'm calling an AX static function from Powershell and getting the Error.jpegerror "External component has throwed an exception".

Please help me with resolving it.

Regards,

Pradeep

  • Martin Dráb Profile Picture
    234,100 Most Valuable Professional on at
    RE: Error when calling an AX static method from PowerShell - External component has throwed an exception

    It seems tat sync() threw an exception. Look at details of the exception in Powershell or debug the method in AX, because you can't address an error unless you find out what it is.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Error when calling an AX static method from PowerShell - External component has throwed an exception

    Hi Pradeep,

    I can't see the entire script. Have you provided the path for Business connector dll in the Program Files like this?

    Add-Type -Path "C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin\Microsoft.Dynamics.BusinessConnectorNet.dll"

    Also, have you tried to refresh the client configuration?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans