ambiguous column name: id
Hello, I have an exporter on my User relation manager. sometimes when I export, it fails with the following error:
Solution:Jump to solution
I couldn't figure out how to change the query on the exporter to change the order by clause, so I removed the normal exportAction entirely and kept only the bulkAction which doesn't attempt to sort the results
2 Replies
Hello,
The error is at the end of your request
..."id" asc limit 1000)
.
The request doesn't know which table id
belongs to.
I suppose you want to order by Users id then by Course_User id: if so, your request should end with ..."course_user"."id" asc limit 1000)
.Solution
I couldn't figure out how to change the query on the exporter to change the order by clause, so I removed the normal exportAction entirely and kept only the bulkAction which doesn't attempt to sort the results