Table names beginning with a number

I have a table called “2020Locations”, and its name seems to be causing a problem in the scripting block. I’m using:
locationsTable = base.getTable(“2020Table”);

But auto-complete doesn’t recognise locationsTable as a table. If I rename the table, or use the underlying tableID, then all is well.

Is this a bug or a known issue? I couldn’t find it documented anywhere. Is there a better workaround than using the tableID instead?

Hi @Mark_Barnes - yes, getting the same:

There’s no autocomplete and if you type in the method it is underlined as an error. However, if you run the script it does still work. So this seems like a code editor bug rather than an underlying bug, FWIW.

2 Likes