First of all, sqm is the file extension that defines everything you do in the mission editor, so refrain from using that extension.
The Briefing must be in sqf format, debriefing in the older html format. Looks like you have everything in order as far as code goes unless I missed something. Make sure that the variable that you are assigning the diary record to "Nikolai_Ivanovich", is the name of the player unit, or you will never see it. It can be the name of a playable unit, but again, you will not see until you are able to test it on a server. So to test it in the editor, the player must be the unit it is assigned to.
The code in your condition field is good to go except for the semicolons. Those are only required to separate commands in the OnActivation fields or init fields. Remove them and it will work fine.
A note on errors like that. When the error message prompts you of a mistake, the cursor will move immediately to the first error inside the field, which gives you a hint of what may be causing the problem.
Happy editing pal.