Looking at the front of your D3200, at
the 7:30 position there is a little angled
switch on the edge of the lens mount.
This gets pushed in by the aperture tab
on your lens. If this does not engage the
error message does not disappear and
the shutter will not activate. Your tab
end might be a bit rounded and not
getting the switch in far enough,
causing intermittent problems.