I have processor that takes messages from storage queue. This message has some visibillity timeout. But sometimes processor takes more time than timeout, so another instance of processor takes message to process again (second time it is not possible to go through all flow in processor as I have some validation). Second time message is processed faster than and became deleted before all flow is finished in first time.
But when flow is finished it also wants to delete message that is already deleted. As result I get error:
Message="Unable to translate bytes [92] at index -1 from specified code page to Unicode.
Is it possible to check if message is delete before trying to delete it second time?