- Issue created by @kaszarobert
- πΈπ°Slovakia kaszarobert
Do the same check which views_data_export does for Search API queries.
kaszarobert@acer-travelmate-p215-41-g2:~/drupal1.localhost(LS-429)$ drush vde merchant_feed data_export_1 a.csv
[error] Error: Call to undefined method Drupal\search_api\Query\ResultSet::rowCount() in Drupal\vde_drush\Commands\VdeDrushCommands->performBatchExport() (line 257 of /app/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php) #0 /app/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php(188): Drupal\vde_drush\Commands\VdeDrushCommands->performBatchExport(Object(Drupal\views\ViewExecutable), '/app/web/a.csv')
#1 [internal function]: Drupal\vde_drush\Commands\VdeDrushCommands->viewsDataExport('merchant_feed', 'data_export_1', '/app/web/a.csv', Array)
#2 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#3 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /app/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /app/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /app/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /app/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#13 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#14 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#15 {main}.
Error: Call to undefined method Drupal\search_api\Query\ResultSet::rowCount() in /app/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php on line 257 #0 /app/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php(188): Drupal\vde_drush\Commands\VdeDrushCommands->performBatchExport(Object(Drupal\views\ViewExecutable), '/app/web/a.csv')
#1 [internal function]: Drupal\vde_drush\Commands\VdeDrushCommands->viewsDataExport('merchant_feed', 'data_export_1', '/app/web/a.csv', Array)
#2 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#3 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /app/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /app/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /app/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /app/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#13 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#14 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#15 {main}
Error: Call to undefined method Drupal\search_api\Query\ResultSet::rowCount() in Drupal\vde_drush\Commands\VdeDrushCommands->performBatchExport() (line 257 of /app/web/modules/contrib/vde_drush/src/Commands/VdeDrushCommands.php).
[warning] Drush command terminated abnormally.
Active
2.1
Code
Do the same check which views_data_export does for Search API queries.