Skip to main content

Hello Everyone,

I have found a couple different threads regarding printing and receiving this “Object reference not set to an instance of an object.” error.  Unfortunately I’m not sure that any of those were able to give me a solution.

We have a process that is supposed to print a new Crystal report we created.  If it runs through the process it receives the error “Object reference not set to an instance of an object.”.  However if I then just reprint it sending it to the same printer there is no issue.  This can be seen in this screenshot:

 

Would this be some type of permissions issue with the report that I am missing?  I looked at the presentation object that we created and IFSPRINT does have authority to the presentation object.

Here is our crystal log if that helps as well, but it actually looks like there isn’t any issue here and runs fine.

12/28/2021 1:23:46 PM2IFSCRWebSetup]-PDecryptPassword] Decrypting Password : CgQIpYEUa2VbVlOMlqi9HFRZDDpTyALte5tU
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Decrypted.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PDecryptPassword] Decrypting Password : CgQIt12VR8RNQOEAvuJUU6ujZaHacKQOJcJC
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Decrypted.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Retrieved Information from XML : DBUser-ifssys DBPassword-******* PrintUser-IFSPRINT PrintPassword-******* DBServerName-IFSPROD AppOwner-CHIE1APP IALOwner-CHIE1INFO
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] Exporting the report in PDF format.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] File Name : 40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] ParameterValues : 5593782 ,LangCode = en
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Encode] for 5593782
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Encode] Encoded value : NTU5Mzc4Mg==
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Decode] for NTU5Mzc4Mg==
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Decode] Decoded to 5593782
12/28/2021 1:23:46 PM2IFSCRWebSetup]-POpenReport] File Name : en\40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetAppSetting] Get the value for OpenReportPath from Web.config.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-POpenReport] The file C:\ifsreports\en\40C044.rpt is found
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetAppSetting] Get the value for OpenReportPath from Web.config.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] Loading infoServe report : C:\ifsreports\en\40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] DBUser = IFSPRINT ,DBPassword : ******* ,DBServerName : IFSPROD ,AppOwner : CHIE1APP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] Setting up logon information for each database object.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetTableLocation] Set appropriate post-fixes for CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetDatabaseLocation] Generating fully qualified database object name for CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetDatabaseLocation] Table.Location : CHIE1APP.CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] SubReport count : 0
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetInfoServiceReportParameters] Result Key : 5593782 - Setting up parameters for InfoServices report.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetInfoServiceReportParameters] Formula Form : IFS_RESULT_KEY
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] Report of layout 40C044.rpt has been exported successfully.

 

Thanks for any help that anyone can provide,

Derek Hansen

Hi @hansend 

 

In my opinion this is not missing permission sets problem because in CR Web logs there is no any information about it. Which IFS version is it? How long does the problem exist? Maybe this is connected with any OS system/IFS Applications updates?

 

Best Regards

 


Hello @knepiosko,

Thanks for the response.

This is from Apps 10 Update 12. 

I have been doing more testing and I had an interesting situation where I sent five print jobs at once for the same report to have different data (simple print jobs, just different part numbers).  Two of the five jobs went through and printed fine.  The other three were in error with this same error.  So the report is working from time to time.  In this instance as well there were not any Crystal Report errors.

Are you aware of any type of logging that the Print Agent may be doing which I would be able to look at?  I’ve been going through logs that I know of but I don’t think I am looking at the right place.

 

Thanks


Hi @hansend 

 

Please check IntServer, ManagedServer, j2ee log files or just gather ifsdump zip file.

You also can try configure multiple CRWeb services:

https://docs.ifs.com/techdocs/foundation1/020_installation/400_installation_options/005_operational_reporting/110_configure_crystal_web_service/020_setup_multiple_instances/default.htm

 

Best Regards


@knepiosko 

Thanks, I’ll give those a look.

I appreciate the suggestion for configuring multiple CRWeb Services, but we do have three already so I don’t know if that means more are needed, but I will dive into those other logs and see what I find.

 

Thanks


Hi @hansend , Were you able to solve this, please?


@MitDenukN 

 

It has been a while, but if I recall correctly we reconfigured the print server and it started to pick up the prints correctly.