We have performed the measurement of the trapped charge density on the gold-coated glass substrates under electronirradiation in scanning electron microscope (SEM), using the socalled electrostatic influence method. We show that the generated internal electric field shortens the penetration depth of incident electrons, leading to spurious effects for microanalysis such as the migration of mobile ions.