Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uuid' in 'field list' (SQL: insert into `...
sentry-io opened this issue ยท comments
Sentry Issue: FORTRABBIT-M
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uuid' in 'field list'
File "/artisan", line 37
new Symfony\Component\Console\Output\ConsoleOutput
...
(30 additional frame(s) were not displayed)
Illuminate\Database\QueryException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uuid' in 'field list' (SQL: insert into `failed_jobs` (`uuid`, `connection`, `queue`, `payload`, `exception`, `failed_at`) values (3b43ccbb-7f7b-4c59-99ff-82126f92b22b, database, default, {"uuid":"3b43ccbb-7f7b-4c59-99ff-82126f92b22b","displayName":"App\\Jobs\\ServiceQueue","job":"Illuminate\\Queue\\CallQueuedHandler@call","maxTries":1,"maxExceptions":null,"failOnTimeout":false,"backoff":null,"timeout":null,"retryUntil":null,"data":{"commandName":"App\\Jobs\\ServiceQueue","command":"O:21:\"App\\Jobs\\ServiceQueue\":12:{s:7:\"service\";O:62:\"App\\Services\\Company\\Adminland\\Employee\\ImportEmployeesFromCSV\":3:{s:68:\"\u0000App\\Services\\Company\\Adminland\\Employee\\ImportEmployeesFromCSV\u0000data\";a:4:{s:10:\"company_id\";i:65;s:9:\"author_id\";i:1151;s:13:\"import_job_id\";i:6;s:7:\"file_id\";i:35;}s:73:\"\u0000App\\Services\\Company\\Adminland\\Employee\\ImportEmployeesFromCSV\u0000importJob\";N;s:32:\"\u0000*\u0000bypassRequiredPermissionLevel\";b:0;}s:5:\"tries\";i:1;s:3:\"job\";N;s:10:\"connection\";N;s:5:\"queue\";N;s:15:\"chainConnection\";N;s:10:\"chainQueue\";N;s:19:\"chainCatchCallbacks\";N;s:5:\"delay\";N;s:11:\"afterCommit\";N;s:10:\"middleware\";a:0:{}s:7:\"chained\";a:0:{}}"},"sentry_trace_parent_data":"f8d625d529244f3abc112868c135cf9e-8002741dcb064a58-1"}, ErrorException: Undefined array key "email" in /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php:167
Stack trace:
#0 /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php(167): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Undefined array...', '/srv/app/office...', 167)
#1 /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php(138): App\Services\Company\Adminland\Employee\ImportEmployeesFromCSV->isEmailAlreadyTaken(Array)
#2 /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php(118): App\Services\Company\Adminland\Employee\ImportEmployeesFromCSV->handleRow(Array)
#3 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(234): App\Services\Company\Adminland\Employee\ImportEmployeesFromCSV->App\Services\Company\Adminland\Employee\{closure}(Array, 0)
#4 /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php(119): Illuminate\Support\LazyCollection->each(Object(Closure))
#5 /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php(59): App\Services\Company\Adminland\Employee\ImportEmployeesFromCSV->readFile()
#6 /srv/app/officelifehq/htdocs/app/Jobs/ServiceQueue.php(50): App\Services\Company\Adminland\Employee\ImportEmployeesFromCSV->handle()
#7 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\ServiceQueue->handle()
#8 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#10 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#11 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(614): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#12 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call(Array)
#13 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(App\Jobs\ServiceQueue))
#14 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(App\Jobs\ServiceQueue))
#15 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#16 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\Bus\Dispatcher->dispatchNow(Object(App\Jobs\ServiceQueue), false)
#17 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}(Object(App\Jobs\ServiceQueue))
#18 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(App\Jobs\ServiceQueue))
#19 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#20 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\Queue\Jobs\DatabaseJob), Object(App\Jobs\ServiceQueue))
#21 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\DatabaseJob), Array)
#22 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(414): Illuminate\Queue\Jobs\Job->fire()
#23 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(364): Illuminate\Queue\Worker->process('database', Object(Illuminate\Queue\Jobs\DatabaseJob), Object(Illuminate\Queue\WorkerOptions))
#24 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(158): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\DatabaseJob), 'database', Object(Illuminate\Queue\WorkerOptions))
#25 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(117): Illuminate\Queue\Worker->daemon('database', 'default,low', Object(Illuminate\Queue\WorkerOptions))
#26 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\Queue\Console\WorkCommand->runWorker('database', 'default,low')
#27 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#28 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#29 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#30 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#31 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Container/Container.php(614): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#32 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\Container\Container->call(Array)
#33 /srv/app/officelifehq/htdocs/vendor/symfony/console/Command/Command.php(288): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#34 /srv/app/officelifehq/htdocs/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#35 /srv/app/officelifehq/htdocs/vendor/symfony/console/Application.php(974): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\...
File "/artisan", line 37
new Symfony\Component\Console\Output\ConsoleOutput
...
(28 additional frame(s) were not displayed)
@asbiin there are two problems in ImportEmployeesFromCSV
:
- we don't have the UUID column in the
failed_jobs
table. This is adressed by #1077 - we don't handle the case when
$row['email']
(line 167) is not present in the CSV (see below)
ErrorException: Undefined array key "email" in /srv/app/officelifehq/htdocs/app/Services/Company/Adminland/Employee/ImportEmployeesFromCSV.php:167
I'll fix both.
๐ This issue has been resolved in version 0.3.0 ๐
The release is available on:
- GitHub release
v0.3.0
Your semantic-release bot ๐ฆ๐
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.