Using the answer of Sam and reading documentation, I found the way how to get result of BIG DATA without error. For that you need to make an export step by step. In one query. For example if you need to export data sheet!A3:X100000
.
Try to do the following:
first make a query and select only
=QUERY(importrange("link_sheet", "sheet!A3:X10000"), "select *", 0);
after get result just edit query from
=QUERY(importrange("link_sheet", "sheet!A3:X10000"), "select *", 0);
to
=QUERY(importrange("link_sheet", "sheet!A3:X20000"), "select *", 0);
after getting data edit a query again
=QUERY(importrange("link_sheet", "sheet!A3:X300000"), "select *", 0);
and continue while you won't rich
=QUERY(importrange("link_sheet", "sheet!A3:X100000"), "select *", 0);
with that way I could to import around 800 000 cells with data. For my task it was enough, but I think If I need longer result data, I could continue and it will works.
You should also remember that Google Spreadsheets have a limit on one document maximum can have only 2 million cells.