One of our clients has being experiencing ticket loss even when the Ticket has been settled.
Most recent was:
On 01/Aug/2020
Ticket number 11980 (Missing from all system records)
Scenario:
Was Settled and Invoice issued, about 10mins later power was cut but was not found after power was restored
Showed up under Customer Tickets. But once clicked on from Customer Tickets screen it did not open, just cleared from that screen(Customer Tickets) and the only record on to show was a missing Ticket number.
SQL Database Integrity Check
The following command will check that there are no direct issues with a SQL Database
Start a Windows Command Prompt
Type: SQLCMD āU sa āP password (your password)
You will now be prompted on line 1>
a. Type: DBCC CHECKDB(āSAMBAPOS5ā) ā Press enter [replace āSAMBAPOS5ā with your actual DB name].
b. Type: GO ā Press enter
The command may take up to 2 minutes to complete.
When the command has finished it will be back to line 1>
Look for āx Allocation Errors and x consistency errorsā in the last part of the message
If there are errors then you can try running āchkdsk /f /rā from command prompt. Restart and let the PC do a disk check and repair.
11980 is the Ticket number that went missing, Its not showing up anywhere. When we go to Tickets from the Navigation Screen, Ticket number list as:
11977
11978
11979
11981
Was there actually a ticket submitted.
If all orders are cancelled a ticket number would be issued but not a ticket id as no ticket would have actually been saved as no orders on the ticket at closing.
At what point did power go out? Was it right after payment? Local DB is SQL. It all depends on when power went out. It sounds like it went out before the ticket was recorded to the database or it went out during that process or shortly after and that entry got corrupted. I highly recommend battery UPS on terminals expecially on single LocalDB machines. It is worth every penny and should be considered required cost.
I thought when a receipt is printer then that record is already captured in the database? So a transaction happened and reciept issued to customer, <= All this happened about 10 mins ago.
UPS was already recommend but they want to know whats happened cause they plan to get set with 3 others location but this according to them is worrying and risk factor.
Ticket is saved in the database after itās submitted.if it was fully paid and closed then it was submitted and likely you had some dataloss due to the power outage. It typically doesnāt happen but with any database a power outage can cause dataloss when a pc is not shutdown correctly.
Any system other than a cloud system will have risk of losing data if you do not plan correctly. Power backup is a must for local non cloud systems.