I'm trying to use the Python API to create a temporary map, add a single point feature, then "print" (export) to file. My problem is that when I print the map, the feature doesn't appear. However, if I save the map and open it in a browser, the feature is visible.
I think I've tracked down the behavior causing this: adding features from a query results in a feature collection on the output map. The print() call renders features from the collection in order until it encounters one with a value in a GUID field. It fails to render that feature and all subsequent features in the collection. However, the features ARE there on the webmap. If you view the map in a browser or examine the JSON, they’re present.
For my purposes at least, this bug is easy to work around. I don't need the GUIDs for my print, so I just added parameter out_fields='OBJECTID' to my query so that I don't offend the print() call's delicate sensibilities with those big, scary GUIDs.
Sponsor me ESRI I practically work for you at this point.
Another entry in the list of random ArcGIS features that keel over and die when they have to handle a GUID, one of the six-ish standard data types, glad you figured out a workaround at least.