Ok. This is not a mongodb specific issue. It seems that it is caused by the way you are processing forms. The id value is submitted twice (with get and post methods) and when web2py parses the request, the id field submitted is converted to a bar encoded list of duplicated values instead of the expected single reference value. So, one way of solving the issue is not using raw get vars in the uri to request an update form, but use the arg syntax like:
<url>/mytable/<id> So you can retrieve the record with db.mytable[request.args[1]] Another way would be to set the id reference and the form methods to match (for example using GET for both the id reference and the form). Something like form = SQLFORM(..., _method="get") -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.