Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Corrupted fonts when batch job writes report to PDF file

(0) ShareShare
ReportReport
Posted on by 1,085

Hi,

i've got a batch job which runs 4 different reports for a set of customers. (4 reports for each customer, a new directory for each customer)

At the end of execution some of the PDF file have all the fonts corrupted. The thing is completely random. The set of corrupted-pdfs always changes.

If i open directory "Customer1" for instance and i find that all 4 reports have corrupted fonts, I try to execute the batch only for that Customer1, and the reports then are written properly without corrupted fonts.

I've also tried both "embedded" and "not-embedded fonts", the thing doesn't seems to make difference.


Any work around?

Thank you in advance

regards

*This post is locked for comments

  • vv1984 Profile Picture
    vv1984 1,085 on at
    RE: Corrupted fonts when batch job writes report to PDF file

    The corruption results in unreadable fonts (like Windings for instance, special chars.. )

    The issue appears also when I render in HTML format. In this case the files have no content and are 1KB size.

    Even in this case the problem is completely random. I print 4 report for each Cust of my query, every execution of the batch return different messed up files.. And if i print the single files manually they dont give me this problem.

    Maybe there is some memory to free. I've also tried setting a sleep timeout of 5 seconds between each report, but it didnt work out.

    Is there something else you would try to fix it?

    Thank you in advance

  • Martin Dráb Profile Picture
    Martin Dráb 230,569 Most Valuable Professional on at
    RE: Corrupted fonts when batch job writes report to PDF file

    Can you tell us how the corruption looks like?

  • vv1984 Profile Picture
    vv1984 1,085 on at
    RE: Corrupted fonts when batch job writes report to PDF file

    Thank you for your reply, but my problem is slightly different from the ones you linked..

    I don't get any error messages. I just get randomly screwed up files...

  • Umesh Pandit Profile Picture
    Umesh Pandit 9,298 User Group Leader on at

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans