A008 - Retrieve referral worklist: return msg 'failed to assign message to message'?

Tried Sandbox, and it works fine.

Then switched to Integration, the API only returned this msg:
{“fault”:{“faultstring”:“AssignMessage[AssignMessage.PopulateAsidFromApp]: failed to assign message to message”,“detail”:{“errorcode”:“steps.assignmessage.SetVariableFailed”}}}


Parameters:
$endpoint= ‘https://int.api.service.nhs.uk/referrals/FHIR/STU3/ReferralRequest/$ers.fetchworklist’;
$headers = [
“Accept: application/json”,
‘Content-Type: application/fhir+json’,
“Authorization: Bearer $accessToken”,
‘NHSD-eRS-Business-Function: SERVICE_PROVIDER_CLINICIAN’,
‘NHSD-End-User-Organisation-ODS: D82078’,];

Hi,

Would you please contact nhserspartners@nhs.net and the team will be able to assist.

Thanks
Matty

:dizzy_face:
I did send an email to the support team, on the same day.
Hopefully, someone could get back to me sooner before I got told off.
:scream:

Fixed!
Apparently, I was using an application that was not created by the account that we applied with ASID originally.

Check the ASID with APP Key