Thank you for your comments. I checked the locals in the detail of the 
error ticket, and also checked every code/args/vars section, but I didn't 
find anything interesting.

Val's comment made me think again if something else could delete the 
record. 
This is a multi-user scenario and, in theory, two users could be trying to 
edit/delete the same content. 
However, the time it takes to run the function is very low, so the only 
scenario where the error could happen is if the second process (the one 
that deletes the record and commits) runs right between the start/end of 
the first process (the "first process" would be the function that I exposed 
earlier).

I mean, if that is what is happening, it must be happening in a very 
specific timeframe. 
Still, I'm skeptical about this explanation, mostly because if that's the 
reason, the error should happen much less frequently than it does.

My application is running compiled, and I can't decompile it in production.
I guess that I will make a fix to my code and check that the record exists 
before doing the insert. Not necessarily an elegant solution, but it will 
avoid the error tickets being created.

Any other comment is very welcome.

Regards,
Lisandro.


El viernes, 30 de noviembre de 2018, 16:26:20 (UTC-3), Dave S escribió:
>
>
>
> On Friday, November 30, 2018 at 10:54:14 AM UTC-8, Val K wrote:
>>
>> It seems that something deletes the record while your controller is 
>> runnig. Is there another one that could do it?
>
>
> In addition, examine the locals in each frame as shown in the error 
> ticket.  There might be a hint of clue there.
>
> /dps
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to