Is the secretory portion of a sweat gland located in epidermis?

No

The secretory portion is in the dermis; the duct passes through the epidermis to the skin's surface

Skin Conditions - Related Articles