Build index on tag field.
Check sd_script_decode error message.