Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

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

Posted on by 715

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
    Martin Dráb 230,198 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
    Gunjan Bhattachayya 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans