Win32 Error code -1073741502 on sending reports to PDF

Hello,

Has anyone seen the following error when sending reports to PDF?

It appears to be random, and an IIS Reset appeases it for an amount of time. I cannot find any documentation on what that specific error may be referring to.

Any assistance is appreciated.

Thanks,

Toby

  • 0

    Hi Toby,

    I have also been facing a similar issue. Please refer below given link for the solution that I followed –

    http://www.greytrix.com/blogs/sagecrm/2015/05/02/troubleshooting-export-to-pdf-issue-with-sage-crm/

    Hope this helps!

    Regards,
    Dinesh

  • 0

    Thanks for taking the time to reply Dinesh.

    I have seen the 'Incorrect function' error many times, usually on pre 7.2 systems when there is an issue with Java.

    This error is not consistent, and an IIS Reset resolves it. Running fop from the command line gives me:

    ' Error: Could not find or load main class files'

    but I am not focussing on that at present, as it is the same as when I do it on the test system, or my local install which are exporting to PDF just fine.

    I saw the path to the CRM JRE install in FOP, and it is correct.

    What I am looking for is any detail on the exact Win32 error, if anyone has seen it before?

    Thanks,

    Toby

  • 0

    Hi,

    We'd had it reported once on 7.0, but the case never really went anywhere (we supplied a DLL, but the customer was too busy to want to add a debug DLL to their environment, and then the issue just went away). All I can say is that in that instance it was definitely environmental rather than in the data.

    The issue seems to be due to an inability to load class files, so my guess is that it's due to something affecting the LOCALCLASSPATH environment variable. As a test, I'd try hard-coding that in the fop.bat and see what happens.

    Thanks,
    Rob

  • 0

    Thanks for the reply Rob,

    The issue on this site seems to have disappeared as quick as it came (fingers crossed it stays that way).

    If it occurs again I will log it so we can look at getting some debugging on.

    Thanks,

    Toby

  • 0 in reply to Robert Hurson

    Hello Rob,

    We have currently the exact same issue on one of our customer installation.

    We have tried to hard-code the LOCALCLASSPATH in the fop.bat file as you suggested; without success...

    Have you another idea to give us?

    For info, the customer is on 2019R2

    Thanks,

    Matt