Admissions in Dynamics 365, Student Records in Oracle: Replacing the Nightly SQL Job That Keeps Breaking
Harden the job this week with a column contract, schema checks, alerts and idempotent upserts, then replace it with an agreed interface, staged loads into Dataverse and reconciliation after every run.
When a nightly SQL job between Dynamics 365 admissions and an Oracle student information system keeps breaking, harden it first, then replace it. This week: write down the column contract the job depends on (every field, type, length and allowed value on both sides), add a schema check that stops the load before it writes anything when the contract no longer matches, make failures raise an alert to a named person, and switch inserts to idempotent upserts on alternate keys so a rerun is safe. Then build the durable design: an agreed, versioned interface owned by both teams, staged loads into Dataverse through Azure Integration Services, alerting when the source schema changes, and reconciliation counts after every run.
Why does a nightly SQL job between Dynamics 365 and an Oracle student system keep breaking?
Because it depends on an agreement nobody wrote down. The job assumes a column exists, has a certain type and length, and holds values from a certain list, on both the Oracle side and the Dynamics 365 side. When the student system team adds a programme code, widens a field or renames a column in an upgrade, or the CRM team adds a choice value to the application status in Dataverse, the job either fails at 2am or, worse, succeeds and writes wrong data. Nobody is told until admissions staff notice offers going to the wrong programme.
Direct database jobs also tend to bypass the parts of each platform that protect data. Writing straight into Dataverse tables is not supported, so a job of this kind usually runs through an intermediate database or a tool that calls the Dataverse API, often with retry and error handling that was added in a hurry. Reading straight from Oracle tables ties the job to the physical schema of a product that the vendor and your own team change on their own schedule.
- A schema change on either side, made in good faith by a team that did not know the job existed.
- A new code or choice value, such as a programme, campus or application status, that the mapping does not know.
- Partial runs that leave half the applicants updated and no safe way to rerun.
- Duplicates, because the job inserts instead of matching on a stable key.
- Silent failure: the job logs an error to a table nobody reads.
What can you harden this week without replacing the job?
Four changes turn a fragile job into a predictable one, and none needs a new platform. Each one can be done by the people who own the job today, and together they buy the time to build the durable design properly instead of in a crisis before the next admissions cycle.
| Change | What it does | How to do it |
|---|---|---|
| Explicit column contract | States what the job depends on, so a change is a visible decision | A versioned document or table listing every field, type, length, nullability and allowed values, signed off by both system owners |
| Schema check before load | Stops the run before it writes when the contract no longer matches | Compare the source and target metadata with the contract at the start of every run and abort on any difference |
| Fail loud | Makes a failure someone's problem the same night | An alert to a named person and a shared channel, with the step, the record and the error, never only a log table |
| Idempotent upserts on alternate keys | Makes a rerun safe and stops duplicates | Match records on a stable business key such as the student or applicant identifier, defined as an alternate key in Dataverse, and update or insert accordingly |
What does a durable integration between admissions and the student record system look like?
The durable design replaces the shared assumption with an agreed interface. Both teams agree what an applicant, an offer, an enrolment and a programme look like when they cross the boundary, version that definition, and change it only through a small change process with notice. Each side maps its own internal schema to the interface, so an internal change on one side no longer breaks the other.
Data then moves in stages. Oracle publishes changed records through a supported route, such as a view, an export or an API the student system team owns. The integration lands them in a staging area, validates them against the interface version, and loads valid records into Dataverse through the Dataverse API with upserts on alternate keys. Invalid records go to an error queue with the reason, for a person to fix, while the rest of the run completes. The same pattern runs in the other direction when admissions decisions must reach the student record system. We build this on Azure Integration Services with logging, retries and monitoring, as described on Dynamics 365 Azure Integration Services.
- Interface: an agreed, versioned definition of applicant, offer, enrolment and programme, owned jointly.
- Source extract: a view, export or API owned by the student system team, never a read of internal tables.
- Staging: records land, are validated against the interface version and are kept for replay.
- Load: upserts into Dataverse on alternate keys through the Dataverse API, in batches sized for the platform limits.
- Error queue: rejected records with the reason, assigned to a named owner, while valid records continue.
How do you get an alert when the Oracle schema or the source data changes?
Monitor the contract, not just the job. At the start of each run, compare the source structure with the interface version and raise an alert on any difference before data moves. Track simple health signals per run: records extracted, records loaded, records rejected, and the run duration. A sudden drop in extracted records or a jump in rejections is a change upstream, even if no column changed.
Send alerts to the people who can act: the integration owner for technical failures, the admissions data owner for rejected records, and both system owners when the interface itself no longer matches. Azure Monitor and Application Insights cover the technical side; a short daily summary for the admissions office covers the business side, so the first person to notice a problem is not an applicant.
How do you prove both systems agree after every run?
With reconciliation counts that compare outcomes, not just job status. After each run, count applicants by status and programme in Dynamics 365 and in the student record system for the same cycle, and report any difference with the records behind it. Once a week, compare a sample of full records field by field. Admissions and registry then work from numbers both teams trust, and a broken mapping shows up as a count difference the morning after, not at census date.
If this job is one of many point-to-point connections around the CRM, start with an inventory before redesigning them one by one. Ranking integrations by business impact and replacing them without a big-bang rewrite is covered on rationalising point-to-point integrations, so this page does not repeat it.
Should admissions stay in Dynamics 365 at all?
Usually yes, if the CRM side works: applicant journeys, communications and recruitment events are what Dynamics 365 and Dataverse do well, and the integration is the weak point, not the platform. Fix the integration first and judge the CRM on its own merits afterwards. If an institution would rather not carry Microsoft licensing for recruitment and admissions, a custom CRM connected to the student record system through the same agreed interface is a valid alternative, and the interface design on this page applies to it unchanged.
What does Solzet do in an admissions and Oracle integration, and what does it not do?
Solzet works on the Dynamics 365 and integration side. We document the column contract, add the schema checks, alerting and idempotent upserts to the existing job so it stops breaking, then design and build the durable integration on Azure Integration Services with staging, an error queue, monitoring and reconciliation reports, using our own senior consultants and developers. We work with your student system team or its vendor to agree the interface and the supported extract route on the Oracle side. Solzet integrates with Oracle systems; it does not implement or customise the Oracle student information system itself, and we say that at the start.
We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why does our nightly SQL job between Dynamics 365 and Oracle keep failing?
Because it depends on an unwritten agreement about columns, types and values on both sides. A schema change, a new code value or a partial run breaks it, and failures are often logged where nobody looks. Write the contract down and check it before every load.
What is the quickest way to stop the job breaking?
Document the column contract, add a schema check that aborts the run before writing when the contract no longer matches, send failures to a named person, and make loads idempotent upserts on alternate keys so a rerun is safe and creates no duplicates.
Can we write directly into Dataverse tables from a SQL job?
No. Direct writes to Dataverse tables are not supported; data must go through the Dataverse API or a tool that uses it. That is also where alternate keys, validation and auditing work, which a direct database write would bypass.
What does a durable Dynamics 365 and Oracle student system integration look like?
An agreed, versioned interface owned by both teams, an extract the student system team supports, a staging area that validates records against the interface, upserts into Dataverse on alternate keys, an error queue for rejected records, alerting on schema changes and reconciliation counts after every run.
How do we know the admissions and student record systems agree?
Run reconciliation counts after every load: applicants by status and programme for the same cycle in both systems, with the records behind any difference, plus a weekly field by field sample. A broken mapping then shows up the next morning.
Does Solzet implement Oracle student information systems?
No. Solzet works on Dynamics 365, Dataverse and the integration layer, and agrees the interface and extract route with your student system team or vendor. Solzet does not implement or customise Oracle systems.
Where should you go next?
Dynamics 365 Azure Integration Services
Integration design and delivery on Azure, with logging, retries and monitoring.
Rationalising point-to-point integrations
Inventory, rank and replace fragile integrations without new middleware.
Integration emergency triage
What to do first when a Dynamics 365 integration fails in production.
Dynamics 365 consulting
Customer Engagement and Dataverse design and delivery.
Custom CRM development
A CRM without Microsoft licensing, connected through the same interface.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.