What`s this error message "Setting scale failed, ignoring request"

Setting scale failed, ignoring request. Please check all scaling axes are non-zero.
UnityEngine.Transform:SetParent(Transform)

My all object`s scale is not zero. And, I instance a object, setparent to empty object.
But that error message occur. Why?

You should use InstantiatedObject.transform.parent = <Put Parent’s Transform here>;

I did. But same error message occur.

then check, if the prefab, or the object, you’re instantianting don’t have any of it’s scale on 0

I checked it. All object have non-zero scale axis.

@Lagnas ever get any updates to this? I’m running into the same error message now.

I get this when Undoing after calling Undo.RegisterCompleteObjectUndo(transform, "Foo"); (no stack trace).
Warning is printed regardless of whether the transform has a parent or not. Scale is 1,1,1.
Interestingly, the warning is printed twice. However, if I used Undo.RecordObject instead, it is printed only once.
This can probably safely be ignored until it is fixed.