Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Exception has been thrown by the target of an invocation.

Posted on by 2,391

When I try and create/update a new Print Management setting, I get the error "Exception has been thrown by the target of an invocation".

Any ideas? 

 

Categories:
  • Vilmos Kintera Profile Picture
    Vilmos Kintera 46,147 on at
    RE: Exception has been thrown by the target of an invocation.

    That is why I suggested to try other printers due to a driver issue. Make sure you mark that as a helpful answer as well.

  • Verified answer
    SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    hi all

    I have resolved it.. For some reason the system had an issue with the default printer being the 'Nitro PDF Printer'

    I changed it to Cute PDF Writer, and it resolved the issue.

  • SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    Thanks Vilmos

    I reset my usage data, and it unfortunately did not fix the error.. It is really strange..

    I am going to log it with a developer to investigate for me

    thanks anyways (everyone)

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,147 on at
    RE: Exception has been thrown by the target of an invocation.

    Well if it does work in some scenarios but not others, it would be worth debugging on what is happening when you get the error message. My guess would be something cached in the Usage data might be pulling incorrect values, which raises the error message for you. Did you try to drop your Usage data in the Options menu for your user account? Please note that with this you would lose your form personalizations, report filters etc., but could be worth a try in a test system.

  • SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    Hi Vilmos

    Something strange as well.. If I override the default, and add a printer: Microsoft XPS Writer, and press OK, it saves without error. I open up the same default, and change the printer to email (and enter an email address in) and it saves without error.

    The above is currently a workaround.

    If I remove the override, and then override it again, and try assign an email address (before assigning a printer) the error comes up..

  • SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    Thanks for the reply Vilmos

    It seems as if the settings are not the issue either... all looks correct.

    To answer your question: I have tried printing to screen as well as an email address, and the same error comes up.

    We have done a clone of this system, on to a brand new environment (new SQL, new AOS, etc.) and the error exists that side as well.. So I believe it has something to do with the setup (as opposed to environmental).

    any other ideas?

  • Verified answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,147 on at
    RE: Exception has been thrown by the target of an invocation.

    It is in System administration > Setup > Business Intelligence > Reporting Services. You may set up the report servers and the report design layouts there.

    Please verify if you can select a regular printer instead of your PDF printer, maybe it is a driver issue.

  • SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    Thanks Andre

    The restarts of the SSRS service did not work. Where exactly can I check the Report Server settings in AX?

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 288,768 Super User on at
    RE: Exception has been thrown by the target of an invocation.

    Hi James,

    If it worked before, you can try to restart the SSRS service. If not, verify if the report server settings in AX are correct. Restarting usually helps at another customer.

  • SU-22040800-0 Profile Picture
    SU-22040800-0 2,391 on at
    RE: Exception has been thrown by the target of an invocation.

    Hi Andre

    Did you see the image I posted?

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... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans