Skip to content
Search to learn about InterSystems products and solutions, career opportunities, and more.

Advisory: Incomplete Query Results with ‘ORDER BY DESC’ – HealthShare

February 11, 2021 – Advisory: Incomplete Query Results with ‘ORDER BY DESC’ – HealthShare

InterSystems has corrected a defect that can cause incomplete query results.  This defect affects the platforms underlying HealthShare and HealthShare Health Connect:

Customers using HealthShare Personal Community should evaluate the number of proxy relationships they have established or removed. Customers that have established or removed proxy relationships more than 64,000 times are at risk for this defect.

Other than Personal Community, this defect does not affect query logic in the HealthShare or HealthShare Health Connect software.  However, Customers that have developed custom queries using the functions provided by InterSystems IRIS for Health, could be affected if they have the following HealthShare products and versions:

  • HealthShare 2019.2, 2020.1 and 2020.2
  • Health Connect 2019.1.0, 2019.1.1, 2020.1.0

A query can trigger the defect only if it meets all of the following conditions:

  • The query contains an ORDER BY clause sorting in descending (DESC) order.
  • The field used for that sorting is the table’s row ID.
  • The query contains conditions on multiple indexed fields.
  • The query selects data from only one table.
Users can modify an individual query to ensure correct results by replacing:
ORDER BY

DESC

with


ORDER BY

+0 DESC

The corrections for this defect are identified as DP-402745 and DP-403046 and will be included in all future product releases. They are also available via Ad hoc distribution from the InterSystems Worldwide Response Center (WRC).

If you have any questions regarding this Advisory, please contact the Worldwide Response Center.
RELATED TOPICS

Latest Alerts & Advisories

Oct 22, 2026
Advisory ID Products Affected Risk Category & Score Explicit Requirements DP-456155 All existing InterSystems interoperability products and solutions that use browser-based XSLT, including:
Oct 09, 2026
We’re excited to introduce the new InterSystems Software Distribution Platform, available beginning October 8 at downloads.intersystems.com.
Sep 12, 2026
This problem affects all versions of Unified Care Record and Information Exchange prior to 2026.2.
Jul 23, 2026
The 2026.2 release of InterSystems IRIS® data platform, InterSystems IRIS® for Health™, and HealthShare® Health Connect is now Generally Available (GA). This is a Continuous Delivery (CD) release.
Jul 22, 2026
There are 6 alerts in the HealthShare HS2026-01 Alert communication. Alert Summaries are shown in the table below. Alert details are contained in the PDF document: HS-2026-01-Alert-Document
Jul 22, 2026
There are 4 alerts in the HealthShare HS2026-02 Alert communication. Alert Summaries are shown in the table below. Alert details are contained in the PDF document: HS-2026-02-Alert-Document
Jul 22, 2026
This problem affects the following products: