Tx Doctor / Solana error library / Position is not empty

Meteora DLMM 6030 (0x178e)0x178e

Solana error: Position is not empty (0x178e)

The position still holds liquidity or fees, so it cannot be closed. DLMM requires a clean position before the account is reclaimed.

Why it happens

How to fix it

  1. Remove all liquidity, claim fees, then close — in that order.
  2. Check the position's liquidity fields before sending close.
  3. Withdraw the exact remaining amount rather than a rounded figure.
  4. Keep withdraw and close as separate steps if you are debugging ordering.

What it looks like in the logs

Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x178e

RPC simulation:
  Transaction simulation failed: Error processing Instruction : custom program error: 0x178e

Wallet UI:
  "Transaction failed" — custom program error 0x178e (6030)

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.

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 transaction

Related 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)

Cannot find non-zero liquidity bin array id

Meteora DLMM 6037 (0x1795)

Position not empty — cannot close

Raydium CLMM 6003 (0x1773)