# Description - there few errors occur **Import** - although the import does completed, at a point it encounter this error - there's 2 things which i can think of - 1. put try catch in the import for every single product, catch it - 2. in the job failed function log more info to test - note that this should test in local only - there's a possibility it was caused by the two errors below, because we are throwing error, and the job captured more than 3 times ``` App\Jobs\ProductImportJob has been attempted too many times or run too long. The job may have previously timed out. {"exception":"[object] (Illuminate\\Queue\\MaxAttemptsExceededException(code: 0): App\\Jobs\\ProductImportJob has been attempted too many times or run too long. ``` **Images** - App\Jobs\UploadProductImage - should be able to Google No query results for model ``` Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [App\ProductImage]. in /var/www/combinesell/combinesell/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:470 ``` **Inventory** - App\Jobs\SyncInventory - http://prntscr.com/s7s50h stock in listing is null, need to check transform - demo_21 sku, one of the product which throw such error ``` SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'old' cannot be null (SQL: insert into `product_inventory_trails` (`shop_id`, `product_inventory_id`, `message`, `related_id`, `related_type`, `old`, `new`, `updated_at`, `created_at`) values (6, 1268, Stock for listing Pack Mug + Framed poster (15) updated from to 100 as it's different from the main stock., 3802, App\ProductListing, ?, 100, 2020-04-29 12:32:38, 2020-04-29 12:32:38)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'old' cannot be null (SQL: insert into `product_inventory_trails` (`shop_id`, `product_inventory_id`, `message`, `related_id`, `related_type`, `old`, `new`, `updated_at`, `created_at`) values (6, 1268, Stock for listing Pack Mug + Framed poster (15) updated from to 100 as it's different from the main stock., 3802, App\\ProductListing, ?, 100, 2020-04-29 12:32:38, 2020-04-29 12:32:38)) at /var/www/combinesell/combinesell/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669) ```