---
title: "assessmentSession(_:failedToUpdateTo:error:)"
framework: automaticassessmentconfiguration
role: symbol
role_heading: Instance Method
path: "automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsession(_:failedtoupdateto:error:)"
---

# assessmentSession(_:failedToUpdateTo:error:)

Tells the delegate that a configuration update failed.

## Declaration

```swift
optional func assessmentSession(_ session: AEAssessmentSession, failedToUpdateTo configuration: AEAssessmentConfiguration, error: any Error)
```

## Parameters

- `session`: The session that you attempted to update.
- `configuration`: The configuration that you attempted to update the session with.
- `error`: An error that describes the reason for the failure.

## Discussion

Discussion After you call a session’s update(to:) method, the session calls this delegate method if the update fails. If the update succeeds, the session calls assessmentSessionDidUpdate(_:) instead.

## See Also

### Responding to configuration changes

- [assessmentSessionDidUpdate(_:)](automaticassessmentconfiguration/aeassessmentsessiondelegate/assessmentsessiondidupdate(_:).md)
