API: report from Analyze Files task does not always get written

Hi,

We run the Analyze Files task through the API. In some cases the report file is written to the reports folder and the results we get through the API for each file in the project are correct.

But unfortunately in many other cases the file does not get written. In most of these cases all analyze results are 0, in some cases the API functions return the values from an older report file and in very rare cases it returns the expected results even though the report file has not been written.

Running the task never returns an exception or gives any hint that the the task has not been carried out successfully.

We're using Studio 2014 (not SP1).

Can you please look into this issue?

Thanks in advance and best regards,

Yvonne