Contact an Expert

Thread: Error 706, Cannot read Data set


Permlink Replies: 6 - Pages: 1 - Last Post: Dec 17, 2012 11:57 PM Last Post By: VeryConfused Threads: [ Previous | Next ]
VeryConfused

Posts: 3
Registered: 07/09/12
Error 706, Cannot read Data set
Posted: Jul 9, 2012 6:32 AM
Click to report abuse...   Click to reply to this thread Reply
Hello

I have problem reading from a Data set. It is Error 706
The program that I am running performance many measurements and store the measurments in a record and saves the record in to a data set file TemperatureXX.rtf. The program creates one of these “data set”-files for each temperature measurement I choose to do.
When all measurements are done the temperature data sets are read and the program builds one record and saves this record in to a final data set.

The problem I have is that sometimes the program cannot read one(or several) of the temperature data sets, it varies which data set that are the problem one, sometimes it can be the first created other times one in the middle or the last one. The program returns an empty datasets which after a junction becomes a "nil". This causes the program to skip the creation of the big data set.

The temperature data set file, which cannot be read in Vee, can be open with WordPad and I cannot see any difference between the file which cannot be read and the files which can be read.

I have tried to open the file in WordPAb and save it with a new name without any luck.

I am using Vee 9.2.13522.0 (Mar 22, 2010) on windows 7

Questions
1 Have any one else the same problem?
2 Are the any characters/signs which are forbidden to use in a data set.
3 Is there any why to detect that the data set is corrupt when it is written? And then try to re-write the data set?
4 Is there a maximum length of the data set that is allowed?

If more information is need please let me know.
changmeikuan

Posts: 210
Registered: 08/07/09
Re: Error 706, Cannot read Data set
Posted: Jul 9, 2012 6:51 PM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
Can't help much here, seldom use DataSet. See if other user can share their experience. If not I would recommend to contact the support team :)

-mk
gojoh


Posts: 64
Registered: 08/07/09
Re: Error 706, Cannot read Data set
Posted: Jul 10, 2012 10:27 AM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
Hard to say what the problem could be without the code or a screenshoot. First guess would be a programming error due to FromDataSet control-pins for FileName (and/or Rewind)
When the error occurs no "empty dataset" is output, there is some other problem here.
aarenas

Posts: 6
Registered: 02/10/12
Re: Error 706, Cannot read Data set
Posted: Jul 10, 2012 10:31 AM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
Just an idea: have you tried the transaction "EXECUTE" --> "REWIND" when loading the file you just wrote? It helped me eventually... :)

Edit: just answered at the same time as gojoh :)

Edited by: aarenas on Jul 10, 2012 6:33 PM
VeryConfused

Posts: 3
Registered: 07/09/12
Re: Error 706, Cannot read Data set
Posted: Jul 12, 2012 1:40 AM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
Thanks for the suggestions

I will try them and come back with the result
uWHarry

Posts: 6
Registered: 09/08/09
Re: Error 706, Cannot read Data set
Posted: Jul 25, 2012 2:13 PM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
I have seen the same error many times. It usually has to do with a file that was written using ToFile and trying to read it with FromDataSet.

Drew
VeryConfused

Posts: 3
Registered: 07/09/12
Re: Error 706, Cannot read Data set
Posted: Dec 17, 2012 11:57 PM   in response to: VeryConfused in response to: VeryConfused
Click to report abuse...   Click to reply to this thread Reply
I have found the error (With help from Agilent Thanks a lot :) )

In the program I read out data from instruments. If the data from the instrument is not a valid number, then I force a text "NaN" to be set instead of the corrupted number. This makes the data in the record to be both Real64 numbers and Text at the same position.
Everything is fine when the Data Set is saved
But when the Data Set is read it first read which format everything shall be in and if the first position is text then numbers will cause a problem and vice versa

Solution is to make everything to text format. E.g. Real64 -15.23 is formated to Text "-15.23" then all data is stored in the same format

Point your RSS reader here for a feed of the latest messages in all forums