# Error enrolling user to workflow

**URL:** <https://community.hubspot.com/t/error-enrolling-user-to-workflow/94120>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [November 15, 2023, 7:06pm UTC](https://community.hubspot.com/t/error-enrolling-user-to-workflow/94120 "2023-11-15T19:06:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobrien94](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kobrien94/32/75439_2.png) [@kobrien94](https://community.hubspot.com/u/kobrien94)\
**Post date:** [November 15, 2023, 7:06pm UTC](https://community.hubspot.com/t/error-enrolling-user-to-workflow/94120/1 "2023-11-15T19:06:16Z")

</div>

Endpoint: /automation/v2/workflows/{workflowID}/enrollments/contacts/{email}

Some cases I am getting this response:

{ “status”: “error”, “message”: “com.hubspot.apicaller.exceptions.ApiErrorResponseException: Api[name=automationplatform, httpMethod=POST, subPath=/automationplatform/v1/enrollments/flow/enroll/from-classic] Failed to process your request. Error code was ‘412’. Error message was:\n{\“status\”:\“error\”,\“message\”:\“Unable to enroll object PortalFlowObject{portalId=, flowId=, objectTypeId=ObjectTypeId{legacyObjectType=CONTACT}, objectId=, flowObjectType=CONTACT} due to membership in unenrollment list UnenrollmentListEvaluationResult{status=MATCHES\_UNENROLL, list=AssociatedListBase{portalId=, listId=, flowId=, listType=CLASSIC\_GOAL\_LIST}}\”,\“correlationId\”:\”\“,\“type\”:\“GOAL\_LIST\”}”, “correlationId”: “”, “type”: “GOAL\_LIST” }

What does this mean? I can’t find any information on it.

---

<div class="post-metadata">

**Author:** ![kobrien94](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kobrien94/32/75439_2.png) [@kobrien94](https://community.hubspot.com/u/kobrien94)\
**Post date:** [November 15, 2023, 7:08pm UTC](https://community.hubspot.com/t/error-enrolling-user-to-workflow/94120/2 "2023-11-15T19:08:58Z")

</div>

Endpoint: /automation/v2/workflows/{workflowID}/enrollments/contacts/{email}

In some cases I am getting this response:

{ “status”: “error”, “message”: “com.hubspot.apicaller.exceptions.ApiErrorResponseException: Api[name=automationplatform, httpMethod=POST, subPath=/automationplatform/v1/enrollments/flow/enroll/from-classic] Failed to process your request. Error code was ‘412’. Error message was:\n{\“status\”:\“error\”,\“message\”:\“Unable to enroll object PortalFlowObject{portalId=, flowId=, objectTypeId=ObjectTypeId{legacyObjectType=CONTACT}, objectId=, flowObjectType=CONTACT} due to membership in unenrollment list UnenrollmentListEvaluationResult{status=MATCHES\_UNENROLL, list=AssociatedListBase{portalId=, listId=, flowId=, listType=CLASSIC\_GOAL\_LIST}}\”,\“correlationId\”:\”\“,\“type\”:\“GOAL\_LIST\”}”, “correlationId”: “”, “type”: “GOAL\_LIST” }

What does this mean? I can’t find any information on it.

---

<div class="post-metadata">

**Author:** ![kobrien94](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kobrien94/32/75439_2.png) [@kobrien94](https://community.hubspot.com/u/kobrien94)\
**Post date:** [December 5, 2023, 2:34pm UTC](https://community.hubspot.com/t/error-enrolling-user-to-workflow/94120/3 "2023-12-05T14:34:13Z")

</div>

Issue was that the goal in the workflow was already completed for the user I was trying to enroll. This code returned when I tried to add the client back into the work and they were instantly flagged as complete because of the goal set.
