sync_error_logs
Sync failures shown on the sync-error screen (asset, PLI, ATM).
Table factsheetagri_db
- Written by
FarmerDataUpdateWorker,LandDataUpdateWorker,PortfolioLineItemUpdateWorker(Repo.insertSyncErrorLog)
- Read by
- Sync-error screen (
SyncErrorFragment) ErrorLogUtils
- Sync-error screen (
- Source
- data/src/main/java/org/mindtree/app/agricultor/data/error_log/SyncErrorLogs.kt
Columns
| Column | Type | Null | Key | Meaning |
|---|---|---|---|---|
id | INTEGER | No | PK | Local autoincrement. Referenced by PLI/farming_model syncErrorId. Autoincrement. |
createdTime | INTEGER | Yes | When the error was logged (epoch millis). | |
assetid | INTEGER | Yes | Asset server id. | |
portfolioId | TEXT | Yes | PLI id. | |
exceptionCode | TEXT | Yes | HTTP or error code. | |
requestType | TEXT | Yes | Request method. | |
exceptionString | TEXT | Yes | Error text. | |
memberName | TEXT | Yes | Farmer name. | |
ieId | TEXT | Yes | Farmer id. | |
hasProcessed | INTEGER | Yes | 1 when handled. | |
isATM | INTEGER | Yes | 1 for farming model errors. |
Notes
- Moved here from ie_register.db in migration 13 to 14 of the legacy DB.
- Overlaps with sync_errors and error_logs.