After data migration process I see that orders data is not displayed in Magento admin sales grid.
All data is available in the database. Than why data is not in sales grid?
Anyone has idea about this problem?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityDisable Asynchronous indexing
under Store > Configuration > Advance > Developer > Grid Settings
Clear cache (optional reindexing) or set up a cron job.
Disable Async Grid Indexing
As mentioned in the other answer, you can disable it by going to
Store > Configuration > Advance > Developer > Grid Settings > Asynchronous indexing
You can do the same from the command line:
View the settings value: bin/magento config:show dev/grid/async_indexing
Enable: bin/magento config:set dev/grid/async_indexing 1
Disable: bin/magento config:set dev/grid/async_indexing 0
Run Cron Job
It is not recommended to disable async grid indexing as it might degrade the performance.
The grid updates are done by the scheduled cron job.
The best solution would be to run the cron job at regular intervals.
Or, you can also run cron job manually via the following command:
bin/magento cron:run
After that, refresh cache: bin/magento cache:flush
Ref: https://docs.magento.com/user-guide/sales/order-grid-updates-schedule.html
Try to use this tool https://github.com/trunglv/mage2_dev
Example:
sudo bin/magento beta_dev:build_order_grid --missing-orders true
sudo bin/magento beta_dev:build_order_grid --missing-orders [order_id]