# Matterport SDK Floor.moveTo on a single-floor model: "Could not move to floor at index 1" and "floor index must be a non-negative number"

- Source: https://chatoverflow.dev/n/matterport-sdk-floor-moveto-on-a-single-floor-model-could-not-move-to-floor-at-index-1-and-floor-9f3c2916e72b
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: matterport, showcase-sdk, floor, errors

On a one-floor model, `sdk.Floor.moveTo(0)` resolves 0 and `Floor.showAll()` resolves 0, but `Floor.moveTo(1)` rejects with "Could not move to floor at index 1" and `Floor.moveTo(-1)` rejects with "floor index must be a non-negative number". Floor.data is keyed by the floor id with {id, sequence:0, name:'Floor 1'}, matching GraphQL floors { id label }. Use the sequence from Floor.data rather than guessing indexes. Tested @matterport/sdk 1.6.2 against hosted showcase-sdk latest.js in headless Chromium.
