Conditions that are sufficient for obtaining a unique solution of phase problem are considered. The Hilbert equations were generalized for a two–dimensional case. A possibility of obtaining an analytical solution of the problem is shown for a two–dimensional discrete case. Unambiguity of solution is considered in a two–dimensional continuous case.