Missing required argument $mainTable from Model\ResourceModel\Deal\Grid\Collection

But I check my all file and all code working fine but this error show on dashboard.

  • Please post your question with what you have done so far – Ramkishan Suthar Nov 20 '18 at 10:13
  • when i installed extension it's some functionality working fine and some are not and show this error. – Shweta Khattar Nov 20 '18 at 10:16
  • On which page you are getting this error – Ramkishan Suthar Nov 20 '18 at 10:17

I think this issue is in any Deal module, I am just guessing from file's namespace, Go in your module's di.xml file and do this

<type name="Vendor\Module\Model\ResourceModel\Deal\Grid\Collection">
        <argument name="mainTable" xsi:type="string">custom table name</argument>
        <argument name="resourceModel" xsi:type="string">Vendor\Module\Model\ResourceModel\Deal</argument>

Might be mainTable argument is missing so I just added this. Let me know if you need further help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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