Skip to content

Elastic table queries return Generic SQL Error (Sql Number: 208) #1140

@chriswaters78

Description

@chriswaters78

Summary

Querying an elastic table with FetchXmlBuilder throws a Generic SQL Error.

Setup

I have created an elastic table 'Generic Details' and created an advanced find query with the following xml:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="tn_genericdetails">
    <attribute name="tn_genericdetailsid" />
    <attribute name="ttlinseconds" />
    <attribute name="partitionid" />
    <attribute name="createdon" />
  </entity>
</fetch>

These are just the standard fields added to an elastic table on first creation.

When I run this advanced find query I get the full list of elastic rows as expected.

Actual Result

When I try the equivalent query in FetchXmlBuilder it spins for 10 seconds or so before returning this error:

Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 208

Expected Result:

FetchXml queries for Elastic tables should work the same in FetchXmlBuilder as they do in advanced find and via the API.

Version

I am testing with the latest 1.2025.3 release of FetchXmlBuilder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions