I don't know why but unreal engine is setting the normal map in sampler type to linear color and when i set it to normal it shows an error

When i imported textures in the texture editor and connected them them the texture wasn’t showing any details then i saw that ue4 set the normal map to linear color. when i set it to normal in sampler type it shows the following error.

[SM5] (Node TextureSample) TextureSample> Sampler type is Normal, should be Linear Color for /Game/MyStuff/Textures/SpanishPavement_normal.SpanishPavement_normal.

Can you show the material you have it in?

This error came if You used that texture as linear colour in material, try to change that in material first and then change in texture.