Recurring problem with particle functions

Thanks for taking the time to respond - always greatly appreciated. Couple of things… firstly, i’m dealing with a Particle.function - not a Particle.publish function in the bit of my code that’s failing. Yes, I use Particle publish in the Ubidots “broadcast” but that does not seem to be the problem - infact I can simulate it working fine while the other bit (the particle function) just dies until the Photon is reset (I’ve now established a soft reset System.reset() triggered by a millis timer will fix the problem). But it is a massive reliability problem for me.
While I get that webhooks are great and more secure than the Ubidots library, I had a lot of reliability problems with the webhooks when I first started this project (see here if you’re into history… Webhooks, the console and Ubidots) and the Ubidots library just worked.
I may revisit on a future iteration, but for now I’m trying to satisfy a commercial brief that is way over schedule.