Skip to content

[BUG] Operation is not valid due to the current state of the object Error When Query Does not Return a Result Set #769

Description

@SiPurdy

Describe the bug
Within XrmToolBox, when running a query which does not return data, an Operation is not valid due to the current state of the object Error is returned.

To Reproduce
The following query demonstrates the issue.

insert into account (name) values ('Test Account')

Expected behavior
Query should execute with no error.

Screenshots
Image

Image

Environment (please complete the following information):

  • XrmToolbox version 1.2025.10.74
  • Results of SELECT @@VERSION:
Microsoft Dataverse - 9.2.26051.148
	SQL 4 CDS - 10.4.0.0
	May 27 2026 09:37:25
	Copyright © 2020 - 2025 Mark Carrington

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