It would be really nice if some transaction mechanism could be setup in ThingWorx services. This transaction can be commited or rollbacked if developper catch an exception and explicitly rollback the transation.
For instances, as a pseudo algo:
Insert line in datatable
Insert Value Stream
Rollback called -> Every previous operation should be reversed.
Such mechanism may bring some more confidence about data integrity inside ThingWorx.