I don’t think that’s the problem. I have other polygons that do the same thing but no error.
But I went ahead to make the start and end point the same, and the result was the same.
Passed IsValid test but error out when adding to the shape file.
Here is the poly wellknowntext
“MULTIPOLYGON(((-13115444.107742 3987018.17339278,-13115407.2595214 3986989.12249224,-13115407.2609906 3986989.14174815,-13115392.4554983 3986978.84021445,-13115379.5424374 3986969.07383388,-13115349.0408969 3986948.87216889,-13115334.9033216 3986938.97202814,-13115312.1324682 3986923.13446702,-13115312.9733819 3986923.58669119,-13115284.3642728 3986908.20137483,-13115255.7551636 3986894.55528537,-13115233.1970994 3986884.89788153,-13115213.7877156 3986877.69837368,-13115194.3068047 3986871.94562376,-13115187.7389548 3986869.93885121,-13115162.1354719 3986861.51041031,-13115135.6414331 3986855.7576685,-13115131.7452509 3986854.55360662,-13115107.8115604 3986849.73736038,-13115082.9873139 3986845.05490068,-13115030.7784727 3986837.56296913,-13114967.549002 3986829.00076762,-13114938.2719759 3986824.85345356,-13114910.5534227 3986819.50208279,-13114869.3652111 3986810.53854232,-13114808.2508106 3986792.21013057,-13114789.1038582 3986785.38715264,-13114788.1019828 3986784.45066579,-13114738.1195314 3986763.31284,
-13114684.2408979 3986735.48588809,-13114657.3784903 3986717.76851662,-13114646.7262295 3986711.1373604,-13114610.6587145 3986685.31727472,-13114590.2872477 3986669.79849465,-13114565.3516817 3986648.92844411,-13114531.8489209 3986620.53672265,-13114525.276665 3986615.0815837,-13114467.7244883 3986566.65265234,-13114460.6000409 3986559.42846459,-13114432.8814877 3986537.08702378,-13114406.1648099 3986515.68209126,-13114395.7007778 3986507.92281306,-13114359.4106238 3986477.5546539,-13114400.3761964 3986429.39386108,-13114483.4205365 3986324.37727611,-13114489.20915 3986317.01946216,-13114521.9370803 3986277.68868195,-13114537.29917 3986259.62867488,-13114566.2422376 3986226.31806954,-13114579.0439791 3986210.39857739,-13114590.2872477 3986197.15464692,-13114614.1096187 3986168.12507489,-13114643.4979643 3986130.93522333,-13114682.0145081 3986085.0500686,-13114713.4066045 3986047.32538464,-13114724.2045951 3986032.61011593,-13114748.8062026 3986003.31340974,-13114822.7223444 3985908.86882842,-13114884.5046618 3
985834.49092219,-13114959.3113596 3985747.405172,-13115023.4313863 3985669.14895437,-13115075.306269 3985608.28337543,-13115102.3569053 3985572.96811024,-13115135.9753915 3985533.23856651,-13115175.1598523 3985488.42594619,-13115253.5287738 3985394.1193603,-13115268.6682246 3985374.58929873,-13115296.8320557 3985341.68255767,-13115356.7219418 3985268.91351331,-13115393.1234153 3985226.91100241,-13115559.2120955 3985025.99665446,-13115587.3759267 3984991.61951775,-13115655.1694966 3984908.15172228,-13115707.9349352 3984843.54485411,-13115747.8986324 3984795.92594545,-13115803.5583778 3984729.44706838,-13115815.4695633 3984715.53604411,-13115849.5333275 3984670.86036841,-13115913.6533542 3984587.52865849,-13115938.7002396 3984557.03181118,-13115958.1811505 3984533.35668284,-13115966.4187928 3984523.32486349,-13116001.373113 3984537.77068612,-13116011.0579087 3984542.1846911,-13116063.7120278 3984565.05728948,-13116107.0153097 3984582.84711965,-13116375.85188 3984693.33194408,-13116380.5272986 3984694.93705831,-1
3116390.7686918 3984698.68232571,-13116675.4126297 3984815.18750274,-13116717.8253557 3984832.57643633,-13116862.0954158 3984891.29772169,-13116872.0028505 3984894.90929117,-13116918.7570366 3984912.16458321,-13116966.9583761 3984931.96138425,-13116975.4186574 3984935.43920417,-13116997.4599166 3984944.40128342,-13117028.5180545 3984956.57367089,-13117071.0421 3984975.03292043,-13117214.9782016 3985031.34719081,-13117297.3546248 3985064.38680794,-13117355.9086769 3985088.59808559,-13117414.4627291 3985113.47823615,-13117428.7116239 3985119.8989289,-13117446.5227424 3985126.58715434,-13117898.4881669 3985264.18128168,-13119471.5345061 3986575.69453848,-13118563.725152 3987722.31356336,-13118425.8003029 3987610.86308266,-13118342.6446433 3987539.55139708,-13118274.1831565 3987481.75313216,-13118159.8580394 3987387.43019878,-13118052.8800088 3987296.18520379,-13118038.5197945 3987284.1441295,-13118021.9331903 3987269.56106752,-13117943.4529493 3987207.08155264,-13117864.1934719 3987142.86313311,-13117842.8201297
3987124.13282831,-13117839.4805449 3987121.32328522,-13117666.7126952 3986972.41848382,-13117604.7077389 3986921.17855336,-13117533.9085427 3986858.43336202,-13117471.2356694 3986806.92637127,-13117322.5128297 3986682.3740562,-13117023.7313164 3987039.84683425,-13117014.7144376 3987050.95114416,-13116972.6356701 3987101.65650282,-13116962.8395549 3987114.36632433,-13116936.3455161 3987154.50269504,-13116931.0021806 3987163.3327154,-13116919.313634 3987184.60506501,-13116894.1554291 3987226.61472638,-13116887.8102181 3987237.31784935,-13116883.02348 3987245.07761974,-13116872.3368089 3987260.06201875,-13116826.2505397 3987317.32400915,-13116790.4056637 3987360.40447963,-13116633.8904596 3987546.90999332,-13116622.6471911 3987558.81754995,-13116584.1306473 3987605.10996592,-13116543.8329916 3987653.0080954,-13116429.2852356 3987794.56295157,-13116414.2571043 3987811.82259483,-13115496.7618612 3987060.71759428,-13115444.107742 3987018.17339278)))”