set type of servicereference to idInvalid when string parse not possible