Hi,

When you create a query that doesn't return any results, you will get a "No result returned. Please check your query and the endpoint status." message. If you work with contextual filters, a filter that returns an empty resultset will always trigger this message.

    if (empty($sparql_result) || empty($sparql_result['result']['rows'])) {
      $view->result = array();
      vsm(t('No result returned. Please check your query and the endpoint status.'));
      return;
    }

Views has the "empty text" option so builders can customize their own empty alternative. I would suggest removing this message, or making it more of a debugging feature.

Comments

Anonymous’s picture

Status: Active » Postponed

Thanks for posting the issue, this makes sense. Don't have time to take care of it myself ATM, but can review any patches. Will probably take care of it after DrupalCon if no patches are posted.

stuartraetaylor’s picture

StatusFileSize
new824 bytes

I've attached what I am using at the moment, it may be of some use to someone.

The patch disables the default 'no results returned' message if the display has a No Results Behavior defined in the Advanced options (but not for individual fields).