microsoft / Recurring-Integrations-Scheduler

Recurring Integrations Scheduler (RIS) is a solution that can be used in file-based integration scenarios for Dynamics 365 Finance and Dynamics 365 Supply Chain Management.
Other
137 stars 61 forks source link

StatusCode "InternalServerError" when attempting to perform an upload job in RIS #175

Open Ashley-Finney opened 5 months ago

Ashley-Finney commented 5 months ago

Describe the bug When running an upload job in RIS, the job errors showing StatusCode "InternalServerError" in the .status file. e.g.

"StatusCode": "InternalServerError",
"ReasonPhrase": "Internal Server Error",

Full .status file attached (with key's and URLs removed - uploaded as .txt file) EMPLOYEES20240417200512.status.txt

Steps To Reproduce .CSV file is copied to the "Input" folder ready for processing. Job runs automatically at set time. File is sent to the "UploadError" folder .success file is generated in the "UploadError" folder.

Expected behavior When a job file has processed correctly, the file is moved into the "UploadSuccess" folder and subsequently imported into D365 via the Data Management job entity staging table.

Screenshots Event Viewer error log showing Internal Server Error. No other errors are in the log. Event Viewer error log showing Internal Server Error

Event Viewer log showing a dequeue Activity ID of all zeros.jpg. Are all zeros correct? Event Viewer log showing a dequeue Activity ID of all zeros

RIS validation is successful (this is version 2.4 but version 3.4 is also successful). RIS validation successful

Recurring Integration Scheduler version (please complete the following information): Tested with the below versions and pointing towards both the below environments.

Dynamics 365 version (please complete the following information): Production =

Microsoft hosted tier 2 TEST environment =

Additional context In Production we have version 2.4 set up and running with the same files getting imported and processed ok.

I have followed the setup steps of both RIS and the required Microsoft Entra ID requirements etc. but maybe I'm missing something somewhere? I have also compared both environment config on the D365 import job side and I believe it to be correct, although maybe I'm missing something? https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/recurring-integrations

Event Logs attached as a .txt file as i cannot upload a .evtx file (Production URL removed) RIS event logs.txt