050017: Geometry outside domain extents.
Description
One or more shapes could not be written to the output.
Solution
Check the x-, y-, z-, and m-domains of the target via its spatial reference properties. It could be that it is unable to hold the geometry you're trying to place into it.