CARDEXCHANGE® COMMUNITY

Object reference not set to an instance of an obje

9 years 1 week ago
Sergio Agostinho
Platinum Boarder
Platinum Boarder
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
9 years 1 week ago 9 years 1 week 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.
9 years 1 week ago
Sergio Agostinho
Platinum Boarder
Platinum Boarder
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
9 years 2 weeks ago 9 years 2 weeks 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

US business only within scope

ISO/IEC 27001:2013 

United States

201 Sand Creek Rd, Suite L-E
Brentwood, CA 94513

Monday – Friday
9am – 5pm (EST)
+1 (925) 529 4999

Netherlands

Smallepad 32
3811 MG Amersfoort

Monday – Friday
9am – 5pm (CET)
+31 (0)20 2251 447

© 2023 CardExchange Solutions, Inc.