Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
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 225,610 Super User 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,417 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?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans