This error message occurs when the layer parameters each support different types of data.
The symbol layer must be the same type as the input layer: feature layer, raster layer, network analysis layer, or TIN layer. For feature layers, the feature type and geometry type must match. For network analysis layers, the solver type must match. For example, you cannot apply symbology from a service area layer to a route layer.