Fiscal Year is mandatory

While generating script report I am getting this Error: “Fiscal Year is mandatory”
I have added the fiscal year after that also I am getting the same error.
Can anyone help!?

Have you added the company to that fiscal year in child table

yes, i did


yes that also

which doctype?

sales invoice

need help on this

Have you set the fiscal year in Global Defaults?

yes i did that too