(#1369) - Added utils function to distinguish id errors

#1369