<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/PaymentCardReaderSession/ReadError/invalidPreferredAID",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader011PaymentCardB7SessionC9ReadErrorO19invalidPreferredAIDyA2EmF"
  },
  "title" : "PaymentCardReaderSession.ReadError.invalidPreferredAID"
}
-->

# PaymentCardReaderSession.ReadError.invalidPreferredAID

The preferred AID specified in the transaction request is invalid.

```
case invalidPreferredAID
```

## Discussion

This error occurs when you specify preferred AIDs or RIDs that aren’t between
the range of 5 to 16 bytes, or the list has too many entries.

---

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)