Tx Doctor / Solana error library / Cannot find non-zero liquidity bin array id
Solana error: Cannot find non-zero liquidity bin array id (0x1795)
The swap could not locate any bin array with liquidity in the direction it needs to trade. The populated range does not overlap the path from the active bin.
Why it happens
- Liquidity sits entirely on one side of the active bin, so one swap direction has nothing to fill against.
- LPs withdrew from the active range and left positions far away.
- The pool is new and only partially seeded.
- The swap amount and bin cap allow only a short walk that never reaches the populated range.
How to fix it
- Try the opposite direction, or reduce the bin cap requirement by re-quoting.
- Inspect the pool's liquidity distribution and confirm there is depth near the active bin.
- Use another pool for this pair if the distribution is one-sided.
- As an LP, add liquidity around the active bin so both directions can trade.
What it looks like in the logs
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x1795 RPC simulation: Transaction simulation failed: Error processing Instruction: custom program error: 0x1795 Wallet UI: "Transaction failed" — custom program error 0x1795 (6037)
One failure, three places it shows up: the raw transaction log, the RPC simulation error, and the wallet's short message. Match on the code, never on the wording.
The same number means something else on another program
Anchor assigns custom error codes by enum order starting at 6000, so this number is local to this program. The rows below show what the very same number means on the other programs.
| Program | 0x1795 = 6037 |
|---|---|
| Orca | Amount in above maximum |
What this means for your funds
Solana transactions are atomic: if any instruction fails, every state change in that transaction is reverted, so token balances end exactly where they started. The network fee is still charged, because validators did the work of executing and rejecting it. A failed transaction never moves your tokens to someone else.
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transactionRelated Solana errors
Zero trading tokens
Meteora AMM 6006 (0x1776)
Not the owner of the LP token account
Meteora AMM 6064 (0x17b0)
Zero liquidity
Meteora DLMM 6007 (0x1777)
Pair insufficient liquidity
Meteora DLMM 6012 (0x177c)
Position is not empty
Meteora DLMM 6030 (0x178e)
Position not empty — cannot close
Raydium CLMM 6003 (0x1773)