At present, when creating/deleting any entity (Things, Valuestream etc.) programatically through CreateThing service does not return anything; which means the service is non-blocking. Maybe the actual creation of entity happens in some different thread. So if we are creating Things programatically in a loop, all things gets created in parallel without actually knowing if the first thing is created and committed to DB before creating the second thing.
This leads sometimes to getting errors of model access provider.
So if the Create/Delete thing returns something (maybe true false or thing Id sort), it would be easier to proceed and also it would help in preventing creation of Ghost Entities
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.