If I remove the Database connection ad set properties shape that are just before the map share, I do not get this error. I do not know why?
Here map expects XML data but you are passing DB profile which is coming from DB connector.I think you may need to change map's input profile to be DB profile not xml.
I am not sure what type of data you are passing from decision shape. I assume you are passing an XML profile data from where you extract a key. And using this key you are trying to pull some data from database. The outcome of DB data is loaded to DB profile. But in the map instead of using DB profile as source you must be using xml profile. This is the reason why you are receiving that error when using DB connector before the map.
I figured that the errors is because of the face that the map is expecting an XML as source, but in the data connection shape before it I am outputting a database profile.
That is what even I meant
Retrieving data ...