Fix: Medical-Objects Trinity “System Error. Code: 5. Access Is Denied”

Medical-Objects logo

Short answer: If Trinity, the Medical-Objects referral client, shows “System Error. Code: 5. Access is denied.” on every computer, something is stopping its automatic update from running. On practices that use application allowlisting such as ThreatLocker, the update program trinity.upgrade.exe is being blocked and needs to be approved. If Medical-Objects shows an “unknown error” for one person after an update, their local Medical-Objects settings folder is usually damaged and needs to be cleared so it can rebuild.

A medical practice emailed us a photo of a small Trinity error box that had appeared on every computer that morning, over the Bp Premier start screen, with a security notice in the corner. At another practice, a practice manager got an “unknown error” in Medical-Objects on her own computer after the software updated, while everyone else was fine. Both problems came down to the Medical-Objects update process. Here is what we found and how to fix them.

Fixed by Rohan Colley, Senior Systems Administrator, and the GCIT service desk, working with Medical-Objects support. Written up by Elliot Munro, CISO.

Symptoms

On every computer, a small Trinity window appears, often at start-up:

System Error. Code: 5. Access is denied.

At the same time, a security notification may appear in the corner of the screen:

To protect you from cybersecurity threats, trinity.upgrade.exe has been blocked from executing. If you want to run this application, you can Request Access to the application.

Trinity System Error. Code: 5. Access is denied, with a notice that trinity.upgrade.exe has been blocked from executing

A related problem, on one computer only, after a Medical-Objects update:

  • Medical-Objects shows “unknown error” when the user opens it or tries to work in it.
  • Other users at the practice are fine, and the Medical-Objects services on the server are running.

People also search for this as “Trinity error code 5”, “Medical-Objects access is denied”, “trinity.upgrade.exe blocked” or “Medical-Objects unknown error after update”.

Affected Software

  • Application: Medical-Objects Trinity (the Medical-Objects Referral Client) and the Medical-Objects client on workstations. Capricorn, the download client, runs separately on the server.
  • Platform: Windows workstations and Remote Desktop servers in medical practices
  • Related Services: application allowlisting (ThreatLocker in our case), the user’s local AppData folder

Cause

Trinity “Code: 5. Access is denied.” Windows error code 5 means a program was refused permission to do something. Trinity updates itself by starting a separate program, trinity.upgrade.exe. Practices that use application allowlisting only let approved programs run, and a new update program from the vendor isn’t approved yet. The allowlisting tool blocks it, Trinity’s update fails with “Access is denied”, and the message appears on every computer that tries to update.

“Unknown error” after an update. Medical-Objects keeps per-user files in the user’s local AppData folder. If an update is interrupted for one user, those files can be left in a state the new version can’t read. Medical-Objects support found exactly this on our practice manager’s profile.

Resolution

Fix 1: Allow the Trinity update to run

  1. Confirm the block. In your allowlisting console (ThreatLocker in our case), search the audit log for trinity.upgrade.exe around the time the error appeared.
  2. Approve the Trinity update program for the practice’s computers, using the vendor’s signing certificate or file hash rather than a broad path rule. If your IT provider manages the allowlisting, send them the screenshot and ask them to review the request.
  3. Let Trinity run its update, or restart the computers. Check the next morning that the error hasn’t returned.
  4. If Trinity still won’t update, update it by hand. Medical-Objects’ guide explains how to shut Trinity down from its system tray icon, download the current installer and run Referral-setup.exe.

Fix 2: Clear the damaged local settings for one user

  1. Ask the user to close Medical-Objects completely and check Task Manager that no Medical-Objects processes are still running for them.
  2. Press Windows + R, type %localappdata%\MedicalObjects and press Enter.
  3. Rename the folders inside it (for example add .old to the end) rather than deleting them, so you can go back if needed.
  4. Open Medical-Objects again. It rebuilds its local files. Check the error has gone.
  5. If you’re not sure which folders are safe to clear, call Medical-Objects support on (07) 5456 6000 and have them guide you. That’s what we did.

Important Notes

  • Don’t turn allowlisting off. Approve the specific update program instead. Turning protection off for the whole practice to get an update through leaves every clinical computer exposed.
  • Expect it after vendor updates. Medical software vendors change their update programs from time to time. A brief learning period for one application, or a rule based on the vendor’s certificate, saves repeat tickets.
  • Check results are still flowing. After any Medical-Objects problem, check the delivery report or results inbox to make sure nothing was missed while it was broken.

Clinical messaging not coming through? Get in touch with our team.

Was this article helpful?
Ready to secure and simplify your IT? Talk to a GCIT expert today.