Sudipta
16th November 2004, 14:29
dear all,
i m having a problem while running a report. I m getting an error message as "Error in Reading sort file record: 1 fields scanned, 8 expected". i don't know why it is coming but when i m removing a particular field which contains data from the table field tttxt010.text, i m not getting the error message again.

can anyone say why this is happening. i need the solution urgently. So plz help me out from this.

With Regards
Sudipta

mark_h
16th November 2004, 17:34
Put the report in debug mode. Then once the report starts go out to the tmp directory and check the input file. You should see all 8 fields that the scan expects. I can not remember the field separator that the reports use, but you should be able to see this in debug mode. You may want to also check that the data being passed is not corrupt - I have seen this happen when control characters and such have got into report fields. My first guess is the data that is being passed.

Mark

malutz
17th November 2004, 08:48
I had the same error in a finance report last week. After some debugging I found a field that had a special sign. In our case it was "\n", which made the string.scan$() crash in the report.

My advice, check all the input fields for strange values.

Good luck