Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (&).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)


An unexpected error occurred.

System.Exception: An unexpected error occurred.
   at IncidentReporter.API.BLL.IotDevicesBLL.<GetUnassociatedIotDeviceById>d__26.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IotDevicesBLL.cs:line 1299


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.SupersetClient.<PostGuestTokenAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 95
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.SupersetClient.<MintGuestTokenAsync>d__14.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.EmbedBll.<GetGuestTokenAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmbedBll.cs:line 120


System.Exception: No company associated with the given organisation and user.


Unhandled Exception in Web API

System.InvalidOperationException: The given header was not found.
   at System.Net.Http.Headers.HttpHeaders.GetValues(String name)
   at IncidentReporter.API.Handlers.AcmAuthorise.GetToken(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\AcmAuthorise.cs:line 214
   at IncidentReporter.API.Handlers.AcmAuthorise.OnActionExecuting(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\AcmAuthorise.cs:line 37
   at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutingAsync(HttpActionContext actionContext, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


System.Exception: User details not found for the given user and organisation.


System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template 729cd5ae-86ca-40f6-8b50-30296d02f23e not found","instance":"/api/v1/render","error_code":"NOT_FOUND"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.PdfExportSwitchHelper.<TryRenderPdfViaJsReportAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 64


System.Exception: The file path you provided is not Valid
   at DocumentService.Pdf.PdfDocumentGenerator.GeneratePdfByTemplate(String toolFolderAbsolutePath, String templatePath, List`1 metaDataList, String outputFilePath)
   at IncidentReporter.API.Helpers.ExportBreakdownMaintenancePDFHelper.ExportBreakdownMaintenancePDF(BreakdownMaintenanceResponseDto breakdownMaintenance, String organisationName, String organisationBannerRelativePath, String outputAbsoluteFilePath, String moduleCustomName, String transitionHistoryJson) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportBreakdownMaintenancePDFHelper.cs:line 217


An unexpected error occurred.


System.IO.FileNotFoundException: Could not find file 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'.
File name: 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at InspectionV2PDFHelper.<ExportInspectionV2PDFAsync>d__1.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\InspectionV2PDFHelper.cs:line 82
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 900


System.InvalidCastException: Null object cannot be converted to a value type.
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
   at IncidentReporter.API.BLL.CategoryConfigurationsBll.ExtractModuleAssociationConfigs(String configJson, Int32 orgId, Int32 sourceModuleId, Int32 categoryId, Int32 userId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\CategoryConfigurationsBll.cs:line 652
   at IncidentReporter.API.BLL.CategoryConfigurationsBll.<UpdateCategoryConfigurationAsync>d__7.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\CategoryConfigurationsBll.cs:line 308

Labeller - CIL

Standard: In correction position and should not be opened during running
Action: Notify the line supervisor immediately if any deviation

1) Remove broken glass and old labels
2) Clean the machine base with cloth

Standard:
Machine base is clear of all debris
Clean of debris/dust

1) Inspect the bottle table - ensure it is working properly.  Level with no missing parts

5. Clean & Inspect - Sensors (8 units) Infeed starvation, Outfeed jam, Hunter, Label gap sensor

1) Wipe with dry cloth
2) Check the working of sensor

Free of dirt, no damage
Wave fingers in front of PE / reflector to ensure state change as appropriate                                                                                Clean of debris/dust

1) Inspect condition of the Wiper Pads
2) Clean the wiper pads using cloth

Free of damage, free of debris, dirt and adhesive build up
Replace the tape
Clean of debris/dust

1) Clean with cloth
2) Ensure the rollers have free movements and no debris is at the base of rollers.
3) Test that rollers are turning freely with the same level of tension, inspect for damage
4) Verify knurling in the web

Free of debris, dirt and adhesive build up
Free movement of rollers
Clean of debris/dust

9. Clean & Inspect - Dancing Arm Rollers

14. Clean - Rewinder Unit (Disposal Unit)

Free of debris, dirt and adhesive build up
Clean of debris/dust

15. Clean - Machine Base (Deep cleaning - shutdown task)

1) Remove broken glass and debris
2) Clean the machine base

Standard: Machine base is clear of all debris
Action: Clean of debris/dust

16. Lubricate - Auto Lubricator (Hunter)

Level should be reduced and if the level of auto lubricator less than 75% inform to Line supervisor.


Filler - CIL

1) Clean the rinser/Rinser Tanks/Filters

Standard: Free of glass pieces and dirt                                                                                Action: Clean of glass pieces/dust/particles/filters

2. Clean & Inspect - Capper Hopper, Chute and Feeder

1) Clean the Hopper/Chute & Feeder
2) Check & Clean the Sensors of Chute and Feeder

Standard: Hopper/ Chute & Feeder must be free from Dust.                                    Action: Clean with White Cloth for removing all the Dust & Dirts
Standard: All Sensors must be clean & Working properly                                         Action: Sensors should be cleaned with Cloth to remove dust and to be checked visually

Remove the excess glass, caps, product and other debris.

Standard: Nozzle free from blockage                                                                          Action: If any nozzle blocked, stop the machine and clean

5. Inspect - Filling valve side guide spring

Check for free movement of guide springs and center springs

Standard: Verify the movement of springs and it should not be stuck.
Action: If stuck, lubricate with food grade grease oks 475

1) Check spring for free movement
2) Check the Skirt & Thread rollers

Standard: Capping head rollers not sticking and free movement                                        Action: Rollers clean of restriction

1) Inspect condition of each unit. Verify alignment to the cam follower, check pu tubbing and check complete assembly

1) Check the bottle Gripper
2) Check the Nozzle Alignment
3) PU tubing free from blockages.                                                   4) Look for water leakage in pu tube

Look for tightness & condition of the Chain Sprockets and lubricate it

1) Check for leaks, bent.
2) Check the rubber parts

If leaks or bent are found notify to Operator and rectify it.
If any rubber parts wear out/damage notify to Operator and replace it.

1) Inspect the stars top screw nuts are in place and secure
2)  Ensure that guides are tight

11. Lubricate - Auto Lubricator in the lower side of the machine

Make sure its half full or more oil
If not Notify the same with executive and fill it with 20W40 oil


1) Clean the rinser/Rinser Tanks/Filters

Standard: Free of glass pieces and dirt                                                                                Action: Clean of glass pieces/dust/particles/filters

1) Clean the Hopper/Chute & Feeder
2) Check & Clean the Sensors of Chute and Feeder

Standard: Hopper/ Chute & Feeder must be free from Dust.                                    Action: Clean with White Cloth for removing all the Dust & Dirts
Standard: All Sensors must be clean & Working properly                                         Action: Sensors should be cleaned with Cloth to remove dust and to be checked visually

Remove the excess glass, caps, product and other debris.

Standard: Nozzle free from blockage                                                                          Action: If any nozzle blocked, stop the machine and clean

Check for free movement of guide springs and center springs

Standard: Verify the movement of springs and it should not be stuck.
Action: If stuck, lubricate with food grade grease oks 475

1) Check spring for free movement
2) Check the Skirt & Thread rollers

Standard: Capping head rollers not sticking and free movement                                        Action: Rollers clean of restriction

1) Inspect condition of each unit. Verify alignment to the cam follower, check pu tubbing and check complete assembly

1) Check the bottle Gripper
2) Check the Nozzle Alignment
3) PU tubing free from blockages.                                                   4) Look for water leakage in pu tube

Look for tightness & condition of the Chain Sprockets and lubricate it

1) Check for leaks, bent.
2) Check the rubber parts

If leaks or bent are found notify to Operator and rectify it.
If any rubber parts wear out/damage notify to Operator and replace it.

1) Inspect the stars top screw nuts are in place and secure
2)  Ensure that guides are tight

Make sure its half full or more oil
If not Notify the same with executive and fill it with 20W40 oil


System.InvalidOperationException: JSReport render failed. Status: 404. Response: {"type":"about:blank","title":"Not Found","status":404,"detail":"Template 9f79e03b-9341-42fd-ae1e-e2698346e8ce not found","instance":"/api/v1/render","error_code":"NOT_FOUND"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 70
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.PdfExportSwitchHelper.<TryRenderPdfViaJsReportAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\PdfExportSwitchHelper.cs:line 64