<!--
{
  "documentType" : "article",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/1537630-audio-graph-errors",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Audio Graph Errors"
}
-->

# Audio Graph Errors

## Topics

### Constants

[`var kAUGraphErr_CannotDoInCurrentContext: OSStatus`](/documentation/AudioToolbox/kAUGraphErr_CannotDoInCurrentContext)

To avoid spinning or waiting in the render thread (a bad idea!), many of the calls to AUGraph can return: `kAUGraphErr_CannotDoInCurrentContext`. This result is only generated when you call an AUGraph API from its render callback. It means that the lock that it required was held at that time, by another thread. If you see this result code, you can generally attempt the action again - typically the NEXT render cycle (so in the mean time the lock can be cleared), or you can delegate that call to another thread in your app. You should not spin or put-to-sleep the render thread.

[`var kAUGraphErr_InvalidAudioUnit: OSStatus`](/documentation/AudioToolbox/kAUGraphErr_InvalidAudioUnit)

[`var kAUGraphErr_InvalidConnection: OSStatus`](/documentation/AudioToolbox/kAUGraphErr_InvalidConnection)

The attempted connection between two nodes cannot be made.

[`var kAUGraphErr_NodeNotFound: OSStatus`](/documentation/AudioToolbox/kAUGraphErr_NodeNotFound)

The specified node cannot be found.

[`var kAUGraphErr_OutputNodeErr: OSStatus`](/documentation/AudioToolbox/kAUGraphErr_OutputNodeErr)

Audio processing graphs can only contain one output unit. This error is returned if trying to add a second output unit or if the graph’s output unit is removed while the graph is running.



---

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)