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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Exception has been thrown by the target of an invocation.

(0) ShareShare
ReportReport
Posted on by 2,459

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? 

 

*This post is locked for comments

I have the same question (0)
  • Vilmos Kintera Profile Picture
    46,149 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
    2,459 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
    2,459 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
    46,149 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
    2,459 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
    2,459 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
    46,149 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
    2,459 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
    298,020 Super User 2025 Season 2 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
    2,459 on at
    RE: Exception has been thrown by the target of an invocation.

    Hi Andre

    Did you see the image I posted?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans