Population of Project Translation Memories is failing with API (returns empty folder)

SDL API with Groupshare Server Based TMs.

Ref. to the subject given, note that we are onto a task of creating projects as well as generating (populating) TMs through an API. We already have our own web-service which successfully communicates with SDL Trados to analyse the source-target language combination, creates projects, etc. Now- on the GUI level, SDL responds correctly by generating the project related TM files in the respective folder (through Batch Task -> Populate Project Translation Memories).But when the available method (for the API) is used “AutomaticTaskTemplateIds.PopulateProjectTranslationMemories” – it is not working.

 

Any ideas or help would be highly appreciated.