Hello Urmas,
Until latest v13.3.0, document "CAClarityPPM_XOG_DeveloperGuide" never stated about this requirement for xog out a project with tasks and dependencies.
Now documentation covers it, so we could suppose it works as expected. However, changing documentation doesn't solve the problem, because people could not be aware of this detail, know that they have task in their projects with taskid missing,....
Time ago I executed a query to see how many tasks without taskid and having dependencies, we have and I was highly surprised seeing thousands of tasks.
Xml file used for read is "prj_projects_read.xml" and it has as argument
<args name="include_dependencies" value="true"/>
Furthermore this thread is related to an older thread
XOG task dependencies without task has not TaskID
h ttps://communities.ca.com/message/104517946#104517946