Error on Saving a Record in Anthology Student

Problem

On saving a record in Anthology Student, users would encounter the following error:

The error is logged in the following format:

2019-07-22 05:22:41.8646|25|Error|Cmc.Core.Workflow.WorkflowEngine|Workflow 'd65586b7-3cb1-447d-bd3c-81334b7f4471 (Workflow Definition Version Id: 8270)' threw an exception while executing activity '1.3: Http'.

Cause

The Flow URL configured in the Anthology Student syRegistry table is incorrect.

This may be occurring if the Flow URL has been regenerated because of an internal maintenance process in Microsoft Azure.

Resolution

The Flow URL in the Anthology Student syRegistry needs to be updated.

For each entity, a unique flow URL is configured in the Anthology Student syRegistry table. The table includes the Flow URL, i.e., the URL where integration data from Anthology Student needs to be posted.

Perform the following steps to update the affected Flow URL in the Anthology Student syRegistry table:

  1. Identify the failing Anthology Student Workflow. With the Workflow Definition Version Id mentioned in the trace file, identify the entity and the Workflow which has failed using the following query:
Select Name, EntityType from WorkflowDefinition with (nolock) where Id in (Select WorkflowDefinitionId from WorkflowDefinitionVersion with(nolock) where Id = <<WorkflowDefintionVersionId>>)
  1. Use the Index table at the end of this procedure to identify the name of the Anthology Reach Flow against the Anthology Student Workflow Name identified in step 1). Also note the Registry Key Name of the Flow. In scenarios where the original flow is copied and then edited, the copied flow must be referenced in step 4.
  2. Navigate to the Campus Management Data Integration solution (step 4 in the diagram) in https://make.powerapps.com (step 1), and:
    1. Select the Microsoft Dynamics org (step 2).

    2. Navigate to the Solutions menu (step 3).
  3. Navigate to the Flow as identified in the index table and open the Flow:

  4. Choose the Edit option in the top left corner.
  5. Open the first step in the flow by clicking on the title bar:

  6. Click the Copy button () adjacent to the “HTTP POST URL” field and copy the Flow URL.
  7. Using the copied Flow URL and the Registry Key name identified in step ii) update the Flow URL in the syRegistry table using the following query:
Update SyRegistry Set RegValue = '<FlowUrl>' where RegKey = '<RegKeyName>'

Verify if the operation is performed without any errors. The updated URL is picked by the Workflow and does not require an application restart.

Workflow - Flow Index

Workflow Name Flow Details
  • CNS Integration Agency Branch Deleted
  • CNS Integration Agency Branch Saved
  • Entity Name - Agency Branch
  • Registry Key - WSCnsCneAgencyBranchAccountFlowUrl
  • Flow Name - CNS-CNE Agency Branch - Account Integration (Engage)
  • CNS Integration ClassSection Deleted
  • CNS Integration ClassSection Saved
  • Entity Name - Class Section
  • Registry Key - WSCnsCneClassSectionCourseSectionFlowUrl
  • Flow Name - CNS-CNE Class Section - Course Section Integration (Engage)
  • CNS Integration College Deleted
  • CNS Integration College Saved
  • Entity Name - College
  • Registry Key - WSCnsCneCollegeAccountFlowUrl
  • Flow Name - CNS-CNE College - Account Integration (Engage)
  • CNS Integration Concentration Deleted
  • CNS Integration Concentration Saved
  • Entity Name - Concentration
  • Registry Key - WSCnsCneConcentrationAreaofStudyFlowUrl
  • Flow Name - CNS-CNE Concentration - Area of Study Integration (Engage)
  • CNS Integration Course Deleted
  • CNS Integration Course Saved
  • Entity Name - Course
  • Registry Key - WSCnsCneCourseCourseFlowUrl
  • Flow Name - CNS-CNE Course - Course Integration (Engage)
  • CNS Integration ExtraCurricularActivity Deleted
  • CNS Integration ExtraCurricularActivity Saved
  • Entity Name - Extracurricular Activities
  • Registry Key - WSCnsCneExtracurricularActivitiesExtracurricularActivitiesFlowUrl
  • Flow Name - CNS-CNE Extracurricular Activities - Extracurricular Activities Integration (Engage)
  • CNS Integration High School Deleted
  • CNS Integration High School Saved
  • Entity Name - High School
  • Registry Key - WSCnsCneHighSchoolAccountFlowUrl
  • Flow Name - CNS-CNE High School - Account Integration (Engage)
  • CNS Integration PreviousEducation Deleted
  • CNS Integration PreviousEducation Saved
  • Entity Name - Previous Education
  • Registry Key - WSCnsCnePreviousEducationEducationLevelFlowUrl
  • Flow Name - CNS-CNE Previous Education - Education Level Integration (Engage)
  • CNS Integration Program Delete
  • CNS Integration Program Saved
  • Entity Name - Program
  • Registry Key - WSCnsCneProgramProgramFlowUrl
  • Flow Name - CNS-CNE Program - Program Integration (Engage)
  • CNS Integration Program Group Deleted
  • CNS Integration Program Group Saved
  • Entity Name - Program Group
  • Registry Key - WSCnsCneProgramGroupAreaofInterestFlowUrl
  • Flow Name - CNS-CNE Program Group - Area of Interest Integration (Engage)
  • CNS Integration Degree Deleted
  • CNS Integration Degree Saved
  • Entity Name - Program Level
  • Registry Key - WSCnsCneProgramLevelDegreeFlowUrl
  • Flow Name - CNS-CNE Degree - Program Level Integration (Engage)
  • CNS Integration ProgramVersion Deleted
  • CNS Integration ProgramVersion Saved
  • Entity Name - Program Version
  • Registry Key - WSCnsCneProgramVersionProgramVersionFlowUrl
  • Flow Name - CNS-CNE Program Version - Program Version Integration (Engage)
  • CNS Integration Shift Deleted
  • CNS Integration Shift Saved
  • Entity Name - Shift
  • Registry Key - WSCnsCneShiftShiftFlowUrl
  • Flow Name - CNS-CNE Shift - Shift Integration (Engage)
  • CNS Integration StartDate Deleted
  • CNS Integration StartDate Saved
  • Entity Name - Start Date
  • Registry Key - WSCnsCneStartDateProgramVersionDetailFlowUrl
  • Flow Name - CNS-CNE Start Date - Program Version Detail Integration (Engage)
  • CNS Integration Student Deleted
  • CNS Integration Student Deleting
  • CNS Integration Student Saved
  • CNS Integration Student(Person) Saved
  • Entity Name - Student
  • Registry Key - WSCnsCneStudentContactFlowUrl
  • Flow Name - CNS-CNE Student - Contact Integration (Engage)
  • CNS Integration StudentEnrollmentPeriod Deleted
  • CNS Integration StudentEnrollmentPeriod Saved
  • CNS Integration StudentEnrollmentPeriod EnrollmentStatusChange
  • Entity Name - Student Enrollment Period
  • Registry Key - WSCnsCneStudentEnrollmentPeriodEnrollmentFlowUrl
  • Flow Name - CNS-CNE Student Enrollment Period - Enrollment Integration (Engage)
  • CNS Integration StudentExtraCurricularActivities Deleted
  • CNS Integration StudentExtraCurricularActivities Saved
  • Entity Name - Student Enrollment Term Summary
  • Registry Key - WSCnsCneStudentEnrollmentTermSummaryAcademicPeriodDetailsFlowUrl
  • Flow Name - CampusNexus Student - CampusNexus Engage Student Enrollment Term Summary - Academic Period Details Integration (Engage)
  • CNS Integration StudentPreviousEducation Deleted
  • CNS Integration StudentPreviousEducation Saved
  • Entity Name - Student Previous Education
  • Registry Key - WSCnsCneStudentPreviousEducationPreviousEducationFlowUrl
  • Flow Name - CNS-CNE Student Previous Education - Previous Education Integration (Engage)
  • CNS Integration Student Relationship Address Deleted
  • CNS Integration Student Relationship Address Saved
  • Entity Name - Student Relationship Address
  • Registry Key - WSCnsCneStudentRelationshipAddressAddressFlowUrl
  • Flow Name - CNS-CNE Student Relationship Address - Address Integration (Engage)
  • CNS Integration Term DeletedCNS Integration Term Saved
  • Entity Name - Term
  • Registry Key - WSCnsCneTermAcademicPeriodFlowUrl
  • Flow Name - CNS-CNE Term - Academic Period Integration (Engage)