I am try to automate a sync replica mxd a nightly basis. The issue I am running into is that in some the of the AXFs (that I get from the users and check-in) have polygons that are self-intersecting and is causing problems with the sync replica. The sync errors out and the polygons need to be fixed manually. Is there any way to detect if a polygon is self-intersecting in ArcPad 8.0, using VBA or some other technique, to stop the creation of the polygon? If not, is there some tool in ArcMap 9.3.1 that can be run again the mxd to detemine the self-intersecting polygons and fix them? Any ideas will be greatly appreciated.