BigQuery table keeps changing key to _RowNumber

I just started using BigQuery as a data source in AppSheet, and I cannot specify the key to be a regular field.  When I save, it changes it to _RowNumber.

The field is a String with an initial value of UNIQUEID().  I have done this exact thing many times in AppSheet connected to Google Sheets; is this something strange about the BigQuery data source?

Solved Solved
1 5 466
1 ACCEPTED SOLUTION

@Scott_Nesbitt Note that using Bigquery, the data is read only as you are just reading and not writing back.  Having an initial value of anysort, is likely not going to work.   The only value you can control will be creating virtual columns.

As for the key going back to _RowNumber.  Check the data type in Appsheet.  An anomoly occurs with the first import from Bigquery being all strings  turn into LongText.  If you try having that as a key, it will be rejected.  You have to change the LongText into just Text.   I do this for ALL columns that fall into LongText.  I don't know if it matters, but ususally data handling and performance are impacted in most data systems for varchar or blobs.   Better safe in my opinion.

If someone from Appsheet team can answer this, it would help better understand.

 

View solution in original post

5 REPLIES 5
Top Labels in this Space