Removed faulty EXISTS check that was causing "0" error. Added debug logging and better error messages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>