mhertzfeld / CrystalReportsNinja

A fork of a small Windows Console App that loads and executes Crystal Reports, exporting the results to a variety of supported file formats, email or printed. This fork includes numerous features and fixes that are not a part of the forked project.
26 stars 19 forks source link

Object reference not set to an instance of an object #26

Closed Zolous closed 4 years ago

Zolous commented 4 years ago

Invoked with the following cmd call CrystalReportsNinja.exe -U user1 -P password -S server -F C:\CrystalReportsNinja\64-bit \test.rpt -O C:\CrystalReportsNinja\64-bit\test1.pdf -E pdf -a "filter_id:80742"

producing the following log ninja-20200204171133.log

Using SAP Runtime 64 bit build v13.0.26.3348

fabian-sta commented 4 years ago

You don’t have your Date attribute defined!

From: Zolous [mailto:notifications@github.com] Sent: Wednesday, 5 February 2020 9:18 AM To: mhertzfeld/CrystalReportsNinja Cc: Subscribed Subject: [mhertzfeld/CrystalReportsNinja] Object reference not set to an instance of an object (#26)

CrystalReportsNinja.exe -U user1 -P password -S server -F C:\CrystalReportsNinja\64-bit \test.rpt -O C:\CrystalReportsNinja\64-bit\test1.pdf -E pdf -a "filter_id:80742"

producing the following log ninja-20200204171133.loghttps://github.com/mhertzfeld/CrystalReportsNinja/files/4156401/ninja-20200204171133.log

Using SAP Runtime 64 bit build v13.0.26.3348

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mhertzfeld/CrystalReportsNinja/issues/26?email_source=notifications&email_token=ANSYCDOMZSCPNZLND6ASY3DRBHSQHA5CNFSM4KP65UZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILBDUFQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSYCDILT5MVPZICHXEULTDRBHSQHANCNFSM4KP65UZA.

Zolous commented 4 years ago

That parameter wasn't being utilized, so I removed it from the .rpt file and am still receiving the same error.

ninja-20200204172243.log

fabian-sta commented 4 years ago

Just realized you haven't specified the Database to use in your command CrystalReportsNinja.exe -U user1 -P password -S server -D DATABSENAME -F C:\CrystalReportsNinja\64-bit \test.rpt -O C:\CrystalReportsNinja\64-bit\test1.pdf -E pdf -a "filter_id:80742"

Zolous commented 4 years ago

That should be an optional requirement as it is the default DB connection, but directly providing it yields the exact same error.

fabian-sta commented 4 years ago

Possibly due to your Crystl Runtmie version as this has been setup and tested to run SAP Runtime 64 bit build v13_0_25

What version SAP are you using? This works with SAP9.3 PL12

Zolous commented 4 years ago

I'll try downgrading my runtime to 13.0.25 tomorrow and see how that holds. As per the SAP version, and assuming I'm understanding the question correctly; I'm not attempting to utilize this with SAP Business one.

Attempting to run this against a report with no datasource , and no parameters yields a similar error, but at a different section.

error.log

fabian-sta commented 4 years ago

How did you go after you downgraded the Runtime

mhertzfeld commented 4 years ago

No reply in over a month. Closing issue.