Endstop A problem

When a print is running, sudden stop by showing the error message that “No material in endstop A” but there is much material available on that time. What should be solution of this problem then?
Please, suggest…