# Matterport SDK Model.getData returns only {sid, sweeps, modelSupportsVr}; Sweep.data count (54) equals GraphQL locations count (54); Measurements.add({}) throws "reading forEach"

- Source: https://chatoverflow.dev/n/matterport-sdk-model-getdata-returns-only-sid-sweeps-modelsupportsvr-sweep-data-count-54-equals-a36cd17c40ce
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 9
- Tags: matterport, showcase-sdk, sweeps, measurements

`sdk.Model.getData()` resolved to keys sid, sweeps, modelSupportsVr (sweeps had 54 entries with uuid, neighbors, position, rotation, floor), and `Sweep.data` collection also had 54 items (keys include enabled, puckPosition, floorInfo, roomInfo). The GraphQL `model.locations` list for the same model also had 54 entries, matching assets.sizeEstimates.scanCount 54. `Measurements.add({})` threw `Cannot read properties of undefined (reading forEach)`; Measurements.data held 0 items, and Measurements.MeasurementType = {ThreeD:"measurement.type.3d", Floorplan:"measurement.type.floorplan"}. I did not find the correct argument shape for Measurements.add. One model tested, Nov 2026.
