6,173 questions
2
votes
1
answer
198
views
'str' object is not callable in Google SDK when trying to fetch a spreadsheet
I'm trying to fetch a spreadsheet with Google SDK. I'm logged into an account with a Service Account Token Creator role and the service account has access rights to the spreadsheet. This is my code:
...
Advice
0
votes
4
replies
58
views
Slides Add-On accessing Sheets Data and Narrowing Scopes
I have an Add-On under review in the Google Marketplace.
My Add-On runs in Google Slides and needs to access Google Sheets data to create various visuals in Slides. Specifically my Add-On pulls data ...
0
votes
0
answers
23
views
How to insert an image from Google Drive inside a Google Sheet Cell programmatically (via API)?
Everything is in the title.
Google Sheet API v4 doesn't have a native method to add an image into a cell.
Google App Scripts doesn't work with a service account which I'm using.
IMAGE() function doesn'...
0
votes
0
answers
54
views
Flask + gspread: multiple Google Sheets API calls (20+) per scan instead of 1
I’m building a Flask web app for a Model UN conference with around 350-400 registered delegates.
OCs (Organizing Committee members) log in.
They scan delegate IDs (QR codes or manual input).
The ...
0
votes
0
answers
61
views
What function should I use to search a 2d Array for a value and return all values from left most column
I Have a sheet that is bringing across all the article ID's listed there (and associated names) in line with the said name of that sheet.
Also above this information I am looking to make a simple ...
0
votes
0
answers
143
views
How to create a Google Spreadsheet document using a service account?
I am building a script which is supposed to create and update documents in a certain folder of my Google Drive (personal account, not Google Workspace).
If there is no document that particular name, ...
0
votes
2
answers
295
views
Change the vertical padding in Google Sheets tables
In Google Sheets, if you click Insert → Pre-built tables and then for example Blank table, the vertical padding of cells changes and userEnteredFormat.padding stops having an effect (you can try ...
0
votes
2
answers
131
views
How to fix offset column names in `addTable` request?
I'm trying to create a Table in a Google Sheet using the API in Python.
I've constructed an API request that mimics the example one here. My request looks like this:
{
"requests": [
{
...
0
votes
0
answers
35
views
automate =QUERY(IMPORTRANGE) or =IMPORTRANGE()
I need to have =QUERY(IMPORTRANGE) or simply =IMPORTRANGE() in sheets2 and sheets3 to automatically do its' thing as soon as the exporting sheet (source file) receives the data from its' source (drive ...
0
votes
0
answers
94
views
Node.js Google Sheets API returns 401 'Login Required' on first call despite valid refresh token
I am building a Node.js server-side application that needs to interact with the Google Sheets API on behalf of a user using the googleapis and google-auth-library packages.
I have successfully ...
0
votes
1
answer
56
views
Page Totals and Running Totals on Export in Google Sheets
I'm looking to export a logbook of mine to paper. The logbook consists of entries of hours based on dates that continue row by row.
I need to export these entries through printing with each page ...
0
votes
0
answers
90
views
The caller does not have permission
I have the code to create a new Spreadsheet using Service account, everything was working good, but after I change the sheet value manually with my own email, google has blocked the spreadsheetsand ...
1
vote
2
answers
129
views
Google sheets setting columns range in app script
I have this worksheet that im working on:
https://docs.google.com/spreadsheets/d/1u_CafEOKNLtthpWaXVo37BKiuRHQ2oGEC4liqkTmXuY/edit?usp=drivesdk
and I have this script:
function createWhatsAppHyperlink(...
0
votes
1
answer
165
views
How to debug Sheets.Spreadsheets.batchUpdate
I have a script that imports sheets from one project to another by way of the script ID. It's a very large script so it would not be feasible for me to condense it down to a MRE because I do not know ...
0
votes
0
answers
61
views
AppScript creates #ERROR! depending on folder of saved file
I've programmed an App Script in Google Sheets. This App Script provides the name of the respective sheet (tab) as a formula. I've used this App Script in several Google Sheets, all of which are ...
0
votes
0
answers
69
views
How to create data validation ONE_OF_RANGE with relative range using Google Sheets API V4?
I have a spreadsheet with two sheets, 'MySheet' and 'MySheetOptions'. I want column A of 'MySheet' to be dropdowns with options defined in the corresponding row of 'MySheetOptions'. That is, the ...
2
votes
1
answer
206
views
How to enable multiple selection in data validation dropdown using Google Sheets API?
I'm trying to create a data validation rule that allows multiple selection from a dropdown list using the Google Sheets API. In the Google Sheets UI, there's an option "Allow multiple selections&...
0
votes
2
answers
110
views
Is there any way to use oauth 2.0 in Azure Data Factory to access Google docs/sheets API?
I am trying to write a basic google sheet from the Azure Data Factory. Any ideas that work in 2025? I have tried a lot of approaches to no avail. Reading works fine with a basic API token, but ...
0
votes
1
answer
72
views
How to describe range for all rows (no column constraint) starting from given one?
In Google Spreadsheet API to work on values (e.g. get, update), you can use open-ended row ranges in the form <column-start><row-start>:<column-end> (e.g. A2:A to get all cells from ...
0
votes
0
answers
67
views
Google Sheets API - Unable to style BOTTOM_AXIS (text color and font size) after updating chart range
I'm working with the Google Sheets API to update a chart's data range and axis styling. The data range update works fine, but changes to the BOTTOM_AXIS text style (e.g., setting font size to 50 and ...
-1
votes
1
answer
89
views
Edit Google Drive and Sheets Files (Airflow Google Provider): Insufficient credentials
I am trying to modify a Google Sheets file and a CSV file in Google Drive via the Apache Airflow Google Provider:
df = pd.DataFrame(data)
csv_data = df.to_csv(index=True)
gcs_hook = GCSHook(...
1
vote
0
answers
83
views
How to fetch calculated values (not formulas) from an Excel sheet stored in Google Drive? [duplicate]
I have an Excel file stored in Google Drive that contains several columns with calculated fields (i.e., formulas like =C2*D2).
My goal is to programmatically fetch the evaluated values (not the raw ...
-1
votes
1
answer
292
views
issue with formula googlefinance
I am having an issue with a specific symbol of the HK stock market using the formula googlefinance().
=googlefinance("HKG:2800","price")
returns no value where all other tickets ...
-1
votes
1
answer
324
views
How to fix an apparently expired refresh token?
I have a python app that uses gspread, and I haven't run it in about a year, and I believe it is failing because of an authentication problem. My diagnostic output is as follows:
DEBUG:urllib3.util....
0
votes
0
answers
44
views
Allow edit protected fields bo other user for file created by service account
So I have an application that uses service account is creating sheets that has protected fields.
Becouse service account created those files I cannot edit protected fields with any other user even so ...
0
votes
0
answers
126
views
Pulling address from Smart Chips in Google Sheets
I have a Google Sheet with organizations and their addresses as Smart Chips from Google Maps in Column E. I want to copy each address into column L as text (Not a Smart Chip) so that my team can do a ...
1
vote
0
answers
85
views
Why do I always have new data written below? (I need it to be written to the right)
I have data transferred to a Google spreadsheet in a row and after reaching column Z, my data is transferred below and starts with column A and continues below, but I need it to be written to the ...
0
votes
2
answers
106
views
Moving Value from Google Sheets Cell to Google Doc
I have a Google Sheet that has long blocks of text in each cell of column H (it is input from a long-form response box in a Google Form). I want to take each response and move it onto a new page of a ...
1
vote
2
answers
108
views
How to delete a row in Google Sheets getting the max of a column?
I need to read the Google sheet and getting the max value of a column and deleting the data to update them.
I tried to get the max value and pass to delete_rows method, but don't work well.
...
0
votes
1
answer
104
views
Google Workspace Add-on doesn't display homepage card in Sheets, only shows “Help” button after installation [duplicate]
I'm building a Google Workspace Add-on for Google Sheets using CardService. I’ve configured the homepageTrigger properly in the manifest and the onHomepage() function returns a simple card with a ...
0
votes
1
answer
56
views
How do I make a drop down of variations for a product?
When I type "product" in a cell. The cell next to it would show a list of available variations via a drop-down menu?
Something like this?
This is the data sheet
DATA SHEET:
Column A
Column B
...
0
votes
3
answers
103
views
Google APIs - Worksheet.UsedRange equivalent?
Do you know if there is some call in Google APIs which is roughly equal to MS Excel VBAs Worksheet.UsedRange? Attempted finding something, but have not had any positive results so far ...
Short ...
0
votes
0
answers
81
views
SheetsChart refresh not working in "Slideshow" mode
I want to updated a liked SheetsChart for Google Slides. It works instantly when the slide is in edit mode, doesn't refresh the chart with latest data from Google Sheets when it's in "Slideshow&...
-3
votes
1
answer
744
views
(Google Sheets) How should I pull data from a sheet into another sheet automatically
so this is just a steps for this project. I will explain the full project first, and maybe you can suggest another solution.
Basically, I have a template sheet for my job (Staffing Sheet). The sheet ...
-6
votes
2
answers
197
views
how to replace code in highcharts+datatables? (i want data from google sheets)
i have datatables + highcharts (in Child rows ) and i want change code and i want data from google sheets and Is it possible to change?
now data from json and i want data from google sheets and i want ...
-1
votes
1
answer
102
views
how to update datatables+highcharts code ? ( google sheets v3 to v4)
i have datatables + highcharts and now don't working and i want replace sheets api v3 to v4
codepen.io/intprotest/pen/ewQJrK?editors=1010
https://sheets.googleapis.com/v4/spreadsheets/...
0
votes
1
answer
380
views
How to Automatically Trigger a Webhook on New Row Addition in Google Sheets Using Google Apps Script?
I’m working on a feature where a client can link their Google Sheet to my system. Whenever a new row is added to the sheet, the system should send the new order data to a webhook. My initial approach ...
1
vote
0
answers
89
views
How do you determine the index of an existing conditional formatting rule when multiple sheets have rules in the Google Sheets API?
As indicated by the docs, it sounds like I should:
Get a list of the existing conditional formatting rules
Use the index (aka, the key within sheets[0][conditionalFormats]) and send a batchRequest to ...
1
vote
1
answer
107
views
Cannot sort table by column using Google Sheets API in C#
I have a C# program that can fetch add and edit and remove values in my Google sheet. But I can't seem to sort the records in the table correctly. Here is my code:
public bool SortGoogleSheet(
int ...
0
votes
1
answer
415
views
v4 Google Sheets API batch request's updateDimensionProperties not changing dimensions
Edit: For clarity, I'm attempting to change the number of rows in the sheet. Google's LLM insisted this was the correct method to use, and the docs are...vague. I gave up on this approach as a red ...
1
vote
1
answer
89
views
Not able to convert Excel file into google sheet
I have an XLS file in Google Drive. Using Google Apps Script, trying to convert to Google Sheets. But it is being stored as Google Docs instead.
function readBlob() {
var file = DriveApp.getFileById(...
0
votes
0
answers
100
views
WooCommerce Order Status Not Updating via API in Automation Testing, But Works Manually
We have a plugin called FlexOrder, whose main functionality is to sync WooCommerce orders with Google Sheets and access them there. One of its key features is updating the order status by selecting ...
-4
votes
1
answer
93
views
Formula in Google Sheets Returns All Results Instead of the Specific One
I’m having an issue in Google Sheets and could really use your help.
Right now, my formula is returning all available results, but I only want it to return the specific result associated with the code ...
1
vote
1
answer
113
views
Google Sheets API - Create empty sheet - Slow performance
Using the Python example taken directly from the "Google Sheets API documentation > Create a spreadsheet" and changing only the credentials, I am experiencing poor performance. It's ...
0
votes
0
answers
47
views
Google Sheets API Error - The caller does not have permission [duplicate]
I am using below code to call Google Sheet API
$client = new \Google_Client();
$client->setApplicationName('Google Sheets API');
$client->setScopes([\Google_Service_Sheets::SPREADSHEETS]);
$path ...
0
votes
1
answer
63
views
Sum a Column when a row says a specific text
On the OMS IV tab I need H22 to add the number of weeks in column D if j15:ab15 says non-clinical. Column D turns light yellow when the corresponding J15 etc shows non-clinical, but now I need to add ...
1
vote
1
answer
122
views
Sheets API Method spreadsheets.values.clear is clearing data validation when it shouldn't?
I'm trying to clear all the values from a Google Sheets sheet, while keeping the formatting and data validation (e.g. dropdowns and checkboxes). The documentation for the spreadsheets.values.clear API ...
0
votes
0
answers
284
views
PKIX path building failed: unable to find valid certification path to requested target when accessing Google APIs in Java
I am encountering the following error when attempting to access Google APIs in Java:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid ...
0
votes
0
answers
88
views
Accessing sheets from operators on Google Cloud Composer 3
We are trying to migrate our DAGs from Airflow 2.9.3 on Composer 2 to Airflow 2.10.2 on Composer 3, but can't seem to get operators accessing Google Cloud Sheets to work.
What works on Composer 2, is ...
0
votes
0
answers
108
views
Microsoft.Maui.Authentication.WebAuthenticator Google login keeps prompting for account selection every time
I have a small .net Maui app which uses Google login to access files in Google Drive.
The code I am using to get the UserCredential is as follows:
Note that the sensitive values are fake and shown ...