Grant Consent Error

When we are trying to request for grant consent and we are facing error for the patient reference id not available.