We are trying to connect the referral service by using the APIs (A008, A005, A006, A007, A013, A014, A022, and A028) to retrieve worklist. The messages are being exchanged successfully but the response contain errors (500 - Internal Server error)
- Service Provider Clinician
Referral info is not populating when referral is interfaced into our EPR. This seems to be ODS specific in our testing environment. We do not get this error for our existing Trust but for new test ODS locations/Trusts in test eRS we are repeatedly encountering this internal server error.
It looks Like Frimley NHS Trust had the same issue and we use the same APIs and EPR as them. https://developer.community.nhs.uk/t/receiving-500-internal-server-error-when-retrieving-referrals-for-review-worklist-via-apis/965.
Please can I ask that this issue is resolved for us also.
Application: 1nOkJtCu01LIpNP8KBGM5d2WDYHzI4ai
(E0A 100072)
User: qMG8c6xnKrmg2IzCW6F0e0bPx6K5ovQg
(E0A 100080)
Hi Abbey - I’ve done a search and we don’t recognise that application ID. could you sign into the portal and find the application ID and repost it please. You should see your apps under ‘my applications and teams’ as below. https://onboarding.prod.api.platform.nhs.uk/
Hi Tony,
This is in our INT testing environment that we are having issues with.
I also don’t have access to the my apps/teams section in my dev account
Hi Abbey - we really need to test appid - or correlation id to try and troubleshoot a bit more - this could be many things and potentially unrelated to the post you shared.
For example, I think we enabled x2 apps in INT previously for your org, but if you have created a new one - this would not work.
Let us know a little more about what your setup looks like 
Hi Tony,
Could this be because we have different end points for our new test Orgs in INT? do you also need details of the new Orgs created in test eRS?
This could well be - we provide a test org - which in this case is I believe was K5G2F
So when that happened the UUID provided would have been associated with K5G2F
Also, the app restricted application would have been setup to work against K5G2F also - meaning no referrals from another ODS code would be retrievable - which is correct behaviour.
However a working application that makes an unallowed call - I would have expected to present a more meaningful error - like ‘No asid configuration’ or ‘no legitmate relationship’ - but you’re just getting a straight 500 - as if the application you or someone has created is not configured at all?
Abbey and I have had calls since this was raised - there was a space on one of the attributes. Now unblocked