My first App fails with error code 1103: Unable to post or put the text

My first App Inventor project fails with error code 1103: Unable to post or put the text........

I attempt to write the "name" and "suburb" into a Google Sheet connecting using a Google App script. When I run the Google App script, it errors TypeError: Cannot read property 'parameter' of undefined (line 12, file "SendDataToGoogleSheet")
My App Script is as follows:

*function doGet(e) { *
var ss = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/12a3bobBVlVDITjb53UD9LRPDiG5J9rDYsaq2wpwMw_8/edit#gid=0");
var sheet = ss.getSheetByName("Sheet1");

I appreciate your help.

Ranjith

1 Open the script project
2 Go to Publish
3 Deploy as Web App
4 Project version: - select New from the dropdown
5 Execute the app as: your google account address (email)
6 Who has access to the app: Anyone, even anonymous
7 Press the Update button

You have to do this EVERY TIME you change your script

1 Like

Thanks Tim. Much appreciated.

Followed the 7 steps. The situation has improved to the level
where I don't see the error message on the Emulator anymore.

However, I still don't see any data written into my Google Sheet, which was the ultimate goal of the app.
Any thoughts?
Best Regards,

Ranjith

Hi Tim,

I have started my App Inventor environment. It's working. Your fix worked. Thanks once again.

Ranjith

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.