{"record":{"id":"af46e5cdaea0260d","repo":"hyperledger/fabric","slug":"txid-s-unsuppored-transaction-paginated-queri","errorCode":null,"errorMessage":"txid [%s]: unsuppored transaction. Paginated queries are supported only in a read-only transaction","messagePattern":"txid \\[(.+?)\\]: unsuppored transaction\\. Paginated queries are supported only in a read-only transaction","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go","lineNumber":252,"sourceCode":"\nfunc (s *txSimulator) checkBeforePvtdataQueries() error {\n\tif s.writePerformed {\n\t\treturn errors.Errorf(\"txid [%s]: unsuppored transaction. Queries on pvt data is supported only in a read-only transaction\", s.txid)\n\t}\n\ts.pvtdataQueriesPerformed = true\n\treturn nil\n}\n\nfunc (s *txSimulator) checkPvtdataQueryPerformed() error {\n\tif s.pvtdataQueriesPerformed {\n\t\treturn errors.Errorf(\"txid [%s]: unsuppored transaction. Transaction has already performed queries on pvt data. Writes are not allowed\", s.txid)\n\t}\n\treturn nil\n}\n\nfunc (s *txSimulator) checkBeforePaginatedQueries() error {\n\tif s.writePerformed {\n\t\treturn errors.Errorf(\"txid [%s]: unsuppored transaction. Paginated queries are supported only in a read-only transaction\", s.txid)\n\t}\n\ts.paginatedQueriesPerformed = true\n\treturn nil\n}\n\nfunc (s *txSimulator) checkPaginatedQueryPerformed() error {\n\tif s.paginatedQueriesPerformed {\n\t\treturn errors.Errorf(\"txid [%s]: unsuppored transaction. Transaction has already performed a paginated query. Writes are not allowed\", s.txid)\n\t}\n\treturn nil\n}\n","sourceCodeStart":234,"sourceCodeEnd":264,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go#L234-L264","documentation":"Returned by checkBeforePaginatedQueries when a paginated range-scan or query is attempted after the simulator has performed a write. Paginated queries are only permitted in read-only simulations; mixing them with writes is rejected to keep results consistent.","triggerScenarios":"Thrown at core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go:252 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Issue paginated queries before any writes, or in a separate read-only transaction"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}