News:

Welcome on our forum!

Main Menu

error log

Started by MrCurryLover, October 16, 2014, 09:01:26 AM

Previous topic - Next topic

MrCurryLover

Hi Arthur,
I have had some errors recently where data isn't being inserted in to the MSSQL database from TCP/IP logger. I have checked the error log and am I correct in assuming that if the start of the data shows 0|0 the insert has been successful and 1|0 if the insert was unsuccessful?
The error log that I checked this morning shows the data coming in and first shows 1|0 then the following line shows the exact same data but with 0|0 at the start. The problem is that the data hasn't actually been inserted in to the database.
Please could you tell me where the software receives the success insert flag from, does it receive it from the database. Also could you offer any assistance in tracing the source of the error?

Thanks

Arthur Grasin

The program inserts data in real-time. If saves some data to a backup if it can't insert it. It does not flag successfully inserted data.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

MrCurryLover

What are the 1|0 or 0|0 for in the error log?

Arthur Grasin

Could you show me the full row?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

MrCurryLover

You want me to post the data on here?

Arthur Grasin

Just one row of data. I can't remember what do you mean by "0|0". If the data are confidential you may send it to support _at_ aggsoft.com
If you like my work, please take a few seconds and add feedback about our site or our software [here]

MrCurryLover

Hi Arthur,

I have emailed the error log, it includes one row with 1|0 and the second row with the same data but a 0|0 at the start of the row

Arthur Grasin

First digit - SQL statement index
Second - number of retries to restore data
If you like my work, please take a few seconds and add feedback about our site or our software [here]

MrCurryLover

Thanks for the reply. The problem is the data still hasn't been restored

Arthur Grasin

Is it possible you changed the SQL queue? Is it possible the configuration was changed and now it uses other backup file name?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

MrCurryLover

No I don't think so because the problem is intermittent, so sometimes that data is inserted in to the database correctly and every line in the error log shows 0|0
Then for no reason (the last one happened at 04:30 this morning for around 30 minutes) the data doesn't get inserted to the database and the error log shows 1|0 on the first line then the very next line shows identical data but with a 0|0 but the data still doesn't get inserted

MrCurryLover

Ok, so i'm getting a little further with this problem. Before the weekend I changed the location of the MSSQL database that the data is wrote to. This morning I checked the error log and I have found that there is only 6 errors compared to 100's of errors before. The previous database was set to not allow duplicates. The current database does allow duplicates. I have checked the error log and all of the 6 lines of data have been inserted in to the database correctly, the problem is that the same line of data has been inserted 1000's of times in to the database. If I watch the live data coming in I can see the error message:
"Restoring row #1"
"unable to write to database[[Microsoft][SQL Server Native Client 11.0] invalid cursor state"
It does this for each of the 6 lines of data in the error log.

I have checked the data that is failing with previous lines of successful data and there is no difference.