From 619f54d8a928f6c733a8f2e471f22b80ba9c1f6e Mon Sep 17 00:00:00 2001 From: Suphonchai Phoonsawat Date: Tue, 2 Jul 2024 05:19:31 +0700 Subject: [PATCH] fix missing Error --- .../Controllers/InsigniaRequestController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs b/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs index 2de7d289..5eb000a7 100644 --- a/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs +++ b/BMA.EHR.Insignia.Service/Controllers/InsigniaRequestController.cs @@ -2210,6 +2210,7 @@ namespace BMA.EHR.Insignia.Service.Controllers var items = await ReadExcelImportInvoice(file); foreach (var item in items) { + if (item.CitizanId == null) continue; var pf = _userProfileRepository.GetOfficerProfileByCitizenId(item.CitizanId, AccessToken); var profile = insigniaNote.InsigniaNoteProfiles.FirstOrDefault(x => x.ProfileId == pf.Id); if (profile == null)