Invalid record number error with ade_odsetfield

Invalid record number error with ade_odsetfield

jleavitt
Advocate Advocate
914 Views
2 Replies
Message 1 of 3

Invalid record number error with ade_odsetfield

jleavitt
Advocate
Advocate

I've written a lisp routine to attach object data to topology centroid blocks based on a query of a SQL database.  I don't have any problem (thanks to Jon Fleming's ADOLISP routines) accessing the data. I have 176 objects and each object that I'm connecting to has 17 data fields, of which I'm populating 16.  I organize my data into three lists and invoke a MAPCAR routine using the expression:

 

(ade_odsetfield x table y 0 z)

 

where x is the entity name; table is the table name; y is the field name; 0 is the record number; z is the value for the field.

 

All values are added to the appropriate fields, but a "Invalid record number" error message is returned.  Why the error message and should I be concerned about it?

 

My entire routine is attached.

 

Thanks for any replies.

 

J Leavitt, PLS
Land Surveyor
Bureau of Land Management
California State Office
0 Likes
Accepted solutions (1)
915 Views
2 Replies
Replies (2)
Message 2 of 3

jleavitt
Advocate
Advocate
Accepted solution

SOLVED!

 

I had the wrong data type in one of my Object Data template fields.

J Leavitt, PLS
Land Surveyor
Bureau of Land Management
California State Office
0 Likes
Message 3 of 3

calderg1000
Mentor
Mentor

Sorry I made a mistake in the post


Carlos Calderon G
EESignature
>Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

0 Likes