Skip to main content

Notifications

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,426

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

  • 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,426 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,426 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,426 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,426 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,426 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
    294,000 Super User 2025 Season 1 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,426 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,000 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,850 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans