TopologyException: side location conflict?
I found a solution that worked for me. The error was occurring as a result of a ST_Intersects(a.geom, b.geom)
in the query as mentioned here. Using ST_makeValid()
on the new geometry ST_Intersects(a.geom, ST_makeValid(b.geom))
resolved the issue.