Export File Added into Queue in Magento 2 Solution

Many times it happens that even after exporting the product in admin in the Magento store, we do not see the file, and the export file is added to the queue in Magento 2 store.

Although we also do indexing for this, still our export file is not visible.

When you export the product, you will get a message that your file has been placed in the queue, for this you need to start a cron job.

Export file is added to the queue

But when we do the indexing of our store, we still do not see that exported file.

I am going to tell you the best solution to this problem, how you can get rid of exported files not visible in Magento 2 admin problem and what are the exact solutions for it.

Reindexing Magento 2 -export file is added to the queue


Related Post: Magento 2 Reindexing Taking Too Much Time


Exported File not Visible in Admin in Magento 2

There are 3 possible solutions for this, you have to make some changes in the code.

As soon as you make some changes in the root file of Magento, as soon as you change its method, it will automatically show you the exported file even without indexing and without starting the cron job.

However, this solution will not count as an ideal solution because you are forcefully exporting it


Solution 1: Change Export Method

The first solution is that you go to the root file of the vendor and make some changes in its methods so that you can see the export catalog file without running any extra commands.


I am telling you the code below to make the necessary changes for that.

You just have to copy and go to the given path and find the method and replace it.

public function execute()
if ($this->getRequest()->getPost(ExportModel::FILTER_ELEMENT_GROUP)) {
try {
$params = $this->getRequest()->getParams();
$model = $this->_objectManager->create(\Magento\ImportExport\Model\Export::class);

return $this->fileFactory->create(

/** @var ExportInfoFactory $dataObject */
$dataObject = $this->exportInfoFactory->create(

$this->messagePublisher->publish('import_export.export', $dataObject);
__('Message is added to queue, wait to get your file soon')
} catch (\Exception $e) {
$this->messageManager->addError(__('Please correct the data sent value.'));
} else {
$this->messageManager->addError(__('Please correct the data sent value.'));
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
return $resultRedirect;


Solution 2: Export File is Added to The Queue

Now the second and easiest way for this is to run the command given below directly in the root directory of your Magento 2.

php bin/magento queue:consumers:start exportProcessor

First of all, you have to export the file by going to admin and as soon as you show this message that your file has been placed in the queue, run the command mentioned above.

And after that clear the cache, then when you go to admin and see it, you will see the exported file.


Magento 2 Free Smart Search Extension 


Solution 3: Export File is Added to The Queue

In the third step, you will have to do indexing again, after that you will have to go to the root directory of Magento.


There will be a var folder in the root directory itself, there you have to click on it and enter, as soon as you enter, you will see the export directory.

cd var/www/html/wishusucess/var/export/

All the exported files will be shown in the export directory.

You can view your latest files here.

Export File Showing in Export Direcotry
All Exported File



This problem often occurs when exporting any kind of file inside Magento and for this three solutions have been mentioned above.

You can get the file by adopting any one of these


Similar Posts:

Customer Order Email Not Sending in Magento 2: Solution

Top 10 Smart Search Extension for Magento 2 Store in 2022