Description
This error occurs when converting labels to annotation or graphics for all layers in a map, but a layer is specified in the single_layer parameter.
Solution
Do not specify a layer if you are converting labels to annotation or graphics for all layers.