Apps Script Error on Deleting Image on Google Drive Shared Before

22 views
Skip to first unread message

Techno Peace

unread,
Jun 16, 2019, 9:26:49 AM6/16/19
to MIT App Inventor Forum

Ekran Görüntüsü (566).png

Ekran Görüntüsü (565).png

Hello, I have error message from web apps during run. I tested https://groups.google.com/forum/#!category-topic/mitappinventortest/Gh7qVQh59eM topic. But the Google script codes there can't be runned due to errors. And the aia blocks require only one script url although there are two script codes there. Could you help me build these codes? The error messages is shown above.

TimAI2

unread,
Jun 16, 2019, 11:18:55 AM6/16/19
to MIT App Inventor Forum
(you said you knew how to do this in a previous thread ;)  )

Anyway, as per my tutorial, are you using scripts bound to the spreadsheet - not standalone gs projects?
The script code depends on the scripts being bound.

Do you spreadsheet and AI2 blocks look exactly like the ones in my tutorial ? Check and check again. You can run the delete workflow in a browser to test the scripts works...

Techno Peace

unread,
Jun 16, 2019, 11:58:25 AM6/16/19
to MIT App Inventor Forum
Hmm okey understood :) , I made the script bound and the spreadsheet get data wanted. And then the scripts get data returned from error but the other script code didn't which deletez images. If I also fixed it, there would be not error. 

TimAI2

unread,
Jun 16, 2019, 12:06:49 PM6/16/19
to MIT App Inventor Forum
A couple of things to try:

1. Check that you have updated the web app, by creating a new version
2. Running your app in Companion, check what is being created and sent to the web app - sounds like the web app is not getting a file ID to work with.

Techno Peace

unread,
Jun 16, 2019, 12:32:20 PM6/16/19
to MIT App Inventor Forum
I created a new version. But the error still exists. The error is defined as TypeError: Cannot read property "parameter" from undefined . dsıI even cant use the script due to error to test in companion.

TimAI2

unread,
Jun 16, 2019, 1:06:19 PM6/16/19
to MIT App Inventor Forum
Try feeding the script from your PC browser, if that works, then it is your blocks, if not it is your script code

Techno Peace

unread,
Jun 16, 2019, 1:49:39 PM6/16/19
to MIT App Inventor Forum
My app works finally! Thanks very very much!

TimAI2

unread,
Jun 16, 2019, 2:01:54 PM6/16/19
to MIT App Inventor Forum
What was the problem ? (May help others...)

Techno Peace

unread,
Jun 16, 2019, 2:06:27 PM6/16/19
to MIT App Inventor Forum
Altough the apps script error exists, the app works fine. 

TimAI2

unread,
Jun 16, 2019, 2:10:42 PM6/16/19
to MIT App Inventor Forum
There should be no error from the script....
Reply all
Reply to author
Forward
0 new messages