Added error function for add and update sync from device