1. if N (or) S is present in the organic compound along with the halogen, we might obtain Na2S and NaCN in the solution which interfere with the detection of the halogen in the AgNO3 test.
2. Therefore we boil the Lassiagne’s extract with HNO3 which decomposes NaCN and Na2S as follows:
NaCN + HNO3 \(\overset{\Delta}{\rightarrow}\) NaNO3 + HCN
Na2S + 2HNO3 \(\rightarrow\) 2NaNO3 + H2S↑