Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by MrElefant
, 1 year ago
Cannot cast INT32 into a ConflictType (value: BsonInt32{value=171609012})
via Google Groups by Sathish KR, 2 months ago
Cannot cast STRING into a DoubleType (value: BsonString{value='NaN'})
com.mongodb.spark.exceptions.MongoTypeConversionException: Cannot cast INT32 into a ConflictType (value: BsonInt32{value=171609012}) at com.mongodb.spark.sql.MapFunctions$.com$mongodb$spark$sql$MapFunctions$$convertToDataType(MapFunctions.scala:79) at com.mongodb.spark.sql.MapFunctions$$anonfun$3.apply(MapFunctions.scala:38) at com.mongodb.spark.sql.MapFunctions$$anonfun$3.apply(MapFunctions.scala:36) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108) at com.mongodb.spark.sql.MapFunctions$.documentToRow(MapFunctions.scala:36) at com.mongodb.spark.sql.MapFunctions$.castToStructType(MapFunctions.scala:108) at com.mongodb.spark.sql.MapFunctions$.com$mongodb$spark$sql$MapFunctions$$convertToDataType(MapFunctions.scala:74)