When executing a query using aggregates, I get the following exception:
Microsoft.Azure.Documents.BadRequestException:
{"Errors":["Cross partition query only supports 'VALUE <AggreateFunc>' for aggregates."]}
---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A0B00
My request code:
var store = "1234";
var sumResults = client.CreateDocumentQuery(
UriFactory.CreateDocumentCollectionUri("my-data-db", "my-collection"),
$"SELECT SUM(t.totalAmount) FROM t where t.siteData.siteID = '{store}'");
It took me a while to figure out that this works great when the build platform is installed on x86, but the installation fails on x64.
I am using the latest version of package 1.12.2
Any ideas on how to make the x64 version work?
source
share