why document create returns 500???