_Skully: Um..Erm...yeah that little "cta.dataCatalogue" typo thingy threw me off :P
I think the problem is with 'Delete cta'...Leeluna is looping through each Datacatalogue record within the cta entity but then deleteing cta (meaning everything) rather then the DataCatalogue record in question... fix would be Delete cta\datacatalogue
I think the problem is with 'Delete cta'...Leeluna is looping through each Datacatalogue record within the cta entity but then deleteing cta (meaning everything) rather then the DataCatalogue record in question... fix would be Delete cta\datacatalogue