Custom data saved in sales_order table but not saved in sales_order_grid table in magento 2


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <virtualType name="Magento\Sales\Model\ResourceModel\Order\Grid" type="Magento\Sales\Model\ResourceModel\Grid">
            <argument name="columns" xsi:type="array">
                <item name="bootsgrid_order_custom_attributes" xsi:type="string">sales_order.bootsgrid_order_custom_attributes</item>

sales_order table

enter image description here

sales_order_grid table

enter image description here

1 Answer 1


Not sure if you have checked this link: https://magento.stackexchange.com/a/112891/59178

It worked for me :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.