This scenario is within my company, with google accounts.
I have a google form which of course populates a spreadsheet. My google apps script basically creates a pdf document from the form content and sends it by email to an HR email address. The script also inserts a link to the created pdf in the line on the spreadsheet that has just been populated by the last form submit.
Everything works fine, except the script is triggered automatically a second time after a while creating a second empty pdf, because the form hasn't really been submitted again. It might happen immediately, or after a few minutes, even it once happened one hour after the first execution.
This is owned by a service account. Inside the same account I have another form/spreadsheet/script/trigger which does almost the same and it works just fine, being triggered only once.
The only difference is that the form that works fine, collects the email addresses automatically, so requires a user to login to google. The faulty one, does not collect the email addresses, it just has the fields "full name" and "username" instead for the person to identify manually.
The executions of both triggers of course, end as "completed".
I been erasing and recreating triggers for two days. Even created the faulty form from scratch, because originally I had duplicated the good one and then modified it accordingly.
You can see in the image, the execution at 6:04:49 is a "ghost" of the one one second before. (of course I cannot do all the form filling process in just 1 second) Then another real execution at 5:33:42 and its ghost 4 seconds after that. Then the 3 executions at 5:39:07 seem to be ghots of previous ones done at different times.
Any clues?? Thanks a lot!