<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEError-swift.struct/locationNotAvailable",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "s:SC7MEErrorLeV20locationNotAvailableSoAAVvpZ"
  },
  "title" : "locationNotAvailable"
}
-->

# locationNotAvailable

An error code that indicates a specific sample isn’t contiguous, spans more than one file, or is for some other reason unsuitable to read directly from a file.

```
static var locationNotAvailable: MEError.Code { get }
```

## Discussion

If a sample isn’t contiguous, spans more than one file, or is for some other reason unsuitable to read directly from a file, use [`loadSampleBufferContainingSamples(to:completionHandler:)`](/documentation/MediaExtension/MESampleCursor/loadSampleBufferContainingSamples(to:completionHandler:)) instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)