{"record":{"id":"db42a4b6826968a1","repo":"hyperledger/fabric","slug":"txid-s-unsuppored-transaction-transaction-has-db42a4","errorCode":null,"errorMessage":"txid [%s]: unsuppored transaction. Transaction has already performed a paginated query. Writes are not allowed","messagePattern":"txid \\[(.+?)\\]: unsuppored transaction\\. Transaction has already performed a paginated query\\. Writes are not allowed","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go","lineNumber":260,"sourceCode":"\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":242,"sourceCodeEnd":264,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go#L242-L264","documentation":"Returned by checkPaginatedQueryPerformed when a write is attempted after the simulator already executed a paginated query. The pagination state would make the write's view inconsistent, so the simulator forbids writes post-pagination.","triggerScenarios":"Thrown at core/ledger/kvledger/txmgmt/txmgr/tx_simulator.go:260 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Separate paginated queries and writes into different transactions"],"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"}