Differences
This shows you the differences between two versions of the page.
|
sms_error_-_missing_line_items [2019/01/27 11:30] 127.0.0.1 external edit |
sms_error_-_missing_line_items [2019/06/13 18:57] (current) smerritt |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Missing Products in an Order ====== | ====== Missing Products in an Order ====== | ||
| - | |||
| - | |||
| ===== Severity ===== | ===== Severity ===== | ||
| - | |||
| - | |||
| ===== Explanation of Error ===== | ===== Explanation of Error ===== | ||
| - | |||
| - | |||
| ===== Possible Root Cause(s) ===== | ===== Possible Root Cause(s) ===== | ||
| + | ===== Resolution ===== | ||
| - | |||
| - | ===== Resolution ===== | ||
| - Determine the date the order was created or last edited (money change or status change). | - Determine the date the order was created or last edited (money change or status change). | ||
| - If created since the last backup, the customer will have to edit the order and reenter the Products. | - If created since the last backup, the customer will have to edit the order and reenter the Products. | ||
| - | - If created or edited before the last backup, [[backup_database]]. | + | - If created or edited before the last backup, [[:backup_database|]]. |
| - Create a folder in the SMS folder called TempData | - Create a folder in the SMS folder called TempData | ||
| - | - Copy the Order Details Database and Order Modifier Database and indexes from the backup to the TempData folder*** | + | - Copy the Order Details Database and Order Modifier Database and indexes from the backup to the TempData folder*** - Open the DBBrowser - Go into the Select Alias tab in the DBBrowser and click the Create Alias button and select the TempData folder. - Check to see if a backup has the missing Line Item(s) (e.g. Filter by OrderID = XXXXX in the Order Details and Order Modifiers tables) - Open the Datbase Browser and run **SQL 1** |
| - | | + | - Run **SQL 2** for the Modifiers - [[:dbrebuild|]] |
| - | | + | - Don't forget to go back into the registry and change the Alias path back to the SMS\Data folder. * Note: The corruption could have occurred before the last backup. Check the Adjustments Database to see when the order was edited last. ===== SQL 1 ===== '' |
| - | | + | * When using the DBBrowser, the path is located at the bottom of the SQL screen. |
| - | | + | |
| - | - Run **SQL 2** for the Modifiers | + | |
| - | | + | |
| - | - Don't forget to go back into the registry and change the Alias path back to the SMS\Data folder. | + | |
| - | | + | |
| - | + | ||
| ===== SQL 1 ===== | ===== SQL 1 ===== | ||
| - | |||
| - | |||
| <code sql> | <code sql> | ||
| - | Insert into "Order Details Database" | + | INSERT INTO "Order Details Database" |
| - | Select | + | SELECT |
| - | Where OrderID = XXXX | + | WHERE OrderID = XXXX |
| </ | </ | ||
| - | + | ===== ===== | |
| - | + | ||
| - | < | + | |
| - | * When using the DBBrowser, the path is located at the bottom of the SQL screen. | + | |
| - | + | ||
| ===== SQL 2 ===== | ===== SQL 2 ===== | ||
| - | |||
| - | |||
| <code sql> | <code sql> | ||
| - | Insert into "Order Modifiers Database" | + | INSERT INTO "Order Modifiers Database" |
| - | Select | + | SELECT |
| - | Where OrderID = XXXX | + | WHERE OrderID = XXXX |
| </ | </ | ||
| - | |||
| - | |||