Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Sheet IMPORTRANGE Error "Import Range internal error" When Range is just a column

In Google Sheet IMPORTRANGE function for single column in rage

=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:B") I get

"Import Range internal error."

But for

=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C"), it works.

Is it a bug? up to now, it was the third time that I had to change them many times? Is there any consistent solution for it? I use this solution as temporary

=Query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C") , "Select Col1")

Finally:

I didn't get error for 5 day right now And in this link https://issuetracker.google.com/issues/204097721 has now been marked as fixed in the issue tracker.

like image 851
Majid soorani Avatar asked Oct 16 '21 07:10

Majid soorani


People also ask

Is there a limit to import range in Google Sheets?

ImportRange formulas: 50 cross-workbook reference formulas. ImportData, ImportHtml, ImportFeed, or ImportXml formulas: 50 functions for external data. Maximum string length is 50,000 characters.

What is Range string in Importrange?

Range String The Range String is the second parameter of theImport Range formula. This is also a string value, and has the following format: "[sheet_name!]range" As you can see, the range_string contains two parts: sheet_name: This is the name of the spreadsheet you want to import data from.


3 Answers

These errors are usually temporary and go away in a few hours. To expedite that, modify your import formula slightly by replacing "Sheet1!B1:B" with "Sheet1!B:b" — the small letter case change is enough to let the call duck Google's cache and get fresh results, which should let you work around the issue.

To automate that to an extent, use this pattern:

=iferror( importrange("...", "Sheet1!B1:B"), importrange("...", "Sheet1!B:b") )

Also see https://support.google.com/docs/thread/131278661.

like image 99
doubleunary Avatar answered Oct 23 '22 16:10

doubleunary


I try this solution, it works

Before IMPORTRANGE("id", "a:b")

Now IMPORTRANGE("id", "A:b")

like image 31
Kamarul iCetak Avatar answered Oct 23 '22 17:10

Kamarul iCetak


There is a dirty solution that could be used temporarily. It does not shield you completely from that issue, it might still occur.

This:

IMPORTRANGE("id", "A:A")

Could be replaced with that (notice lower different case in the same range being imported 2nd time):

IFERROR(IMPORTRANGE("id", "A:A"), IMPORTRANGE("id", "A:a"))

I've seen this solution posted here by Vitaly, he got it from here.

like image 1
kishkin Avatar answered Oct 23 '22 18:10

kishkin