Trust ID PBCEX logo 300x102

Object reference not set to an instance of an obje

5 years 5 months ago 5 years 5 months ago by Darian Wilson. Reason: Remove names
Darian Wilson
Fresh Boarder
Fresh Boarder
Posts: 2
More
Topic Author
Object reference not set to an instance of an obje #4413
Version 9.0.0.3, Professional

I have a card with two data text fields attached to an Access database, no images, signatures, etc. Everything works correctly can add, edit, delete and print records. However, when I set the "Action after inserting a database record" to "Print Card" I get a dialog showing the following error "Could not read data from [Test DB]. Object reference not set to an instance of an object" and the card does not print. I can immediately manually print the card.
The entries from the DataExchange.log file are shown below. The second select statement after the insert does not have a value for PARAMETER0 and causes the error.


-- Test DB:
INSERT INTO [Attendees]
([First Name], [Last Name])
VALUES (@PARAMETER0, @PARAMETER1)
@PARAMETER0 = Jack
@PARAMETER1 = Jackson

-- Test DB:
SELECT MAX([ID]) FROM [Attendees]

-- Test DB:
SELECT *
FROM [Attendees]
WHERE [ID] = @PARAMETER0
@PARAMETER0 = 11

-- Test DB:
SELECT *
FROM [Attendees]
WHERE [ID] = @PARAMETER0
@PARAMETER0 =

-- An error occurred in DataExchange:
Object reference not set to an instance of an object.

-- Test DB:
SELECT *
FROM [Attendees]
WHERE [ID] = @PARAMETER0
@PARAMETER0 = 11
5 years 5 months ago
Sergio Agostinho
Administrator
Administrator
Posts: 508
More
Object reference not set to an instance of an obje #4415
Hi Damian,

Please upgrade your CardExchange installation with the one on this link and let me know the result.

With best regards
Sergio Agostinho
5 years 5 months ago 5 years 5 months ago by Darian Wilson. Reason: Additional information
Darian Wilson
Fresh Boarder
Fresh Boarder
Posts: 2
More
Topic Author
Object reference not set to an instance of an obje #4423
Hi Sergio, unfortunately version 9.0.6.14 produces the same error.
I have also tried the same card using an Excel database and received the same error.
5 years 5 months ago
Sergio Agostinho
Administrator
Administrator
Posts: 508
More
Object reference not set to an instance of an obje #4425
Hi Damian,

Go to the configuration tab and export this card template, then send it with the access database (or just a small one with part of the data) to This email address is being protected from spambots. You need JavaScript enabled to view it.

With best regards
Sergio Agostinho
×

Notice

The forum is in read only mode.