Return error if variable to identify row could not be found.
Add example template document and php usage example.