| Status | Approved |
|---|---|
| Functional Specification Owner | |
| Stakeholders | |
| Jira Request ID | ERP-1324 - Getting issue details... STATUS |
| Jira Development (Build) ID |
High-Level Specification
| Parameter | Value |
|---|---|
| Application System (Delivery Tool) | Icertis |
| Business Process Reference (L4) | NA |
Functional Overview
The reconciliation mechanism ensures reliability and traceability for custom integrations (e.g., Icertis to CPI) by logging failed messages, managing scheduled retries, tracking retry attempts, and notifying stakeholders of persistent failures.
Objectives
- Reliability: Ensure that all failed integration messages are captured, retried, and escalated as needed to minimize data loss and integration gaps.
- Traceability: Maintain a comprehensive audit trail for each integration attempt, including message content, timestamps, error details, and a record of retries.
- Timely Escalation: Automatically notify relevant stakeholders when persistent failures occur, enabling prompt manual intervention.
- User Transparency: Provide authorized users with real-time visibility into the status of integration messages for proactive monitoring and troubleshooting.
- Compliance: Adhere to Syensqo’s IT security, data privacy, and regulatory requirements throughout the process.
- Reporting: Enable robust reporting and analytics on integration performance, failure rates, and resolution times to support continuous improvement
Assumptions
- Source systems (e.g., Icertis) are responsible for initial message transmission and may perform immediate retries, but scheduled reconciliation is handled separately.
- The master data table is the single source of truth for failed integration attempts.
- Scheduled jobs (e.g., every 12 or 24 hours) are configured and maintained by IT operations.
- Users have appropriate access to view failed message statuses via the Icertis UI or other authorized interfaces.
- All integrations adhere to Syensqo’s security and compliance policies.
Dependencies
- Scheduled batch jobs must run after source systems have completed their integration attempts.
- The email notification system must be operational for timely stakeholder alerts.
Special Requirements
- Integration with third-party systems (Icertis, CPI) requires secure authentication (e.g., OAuth, certificates).
- Audit trails must be maintained for all message processing and status changes.
- The solution must use ETags for optimistic concurrency control, as all API calls internally in Icertis use ETags for CRUD operations.
- All error messages and notifications must be clear, actionable, and compliant with internal communication standards.
Scope and Objectives
Scope
The scope of this development covers the design, implementation, and monitoring of a reconciliation mechanism for custom integrations, such as the Icertis to CPI interface. The solution encompasses:
- Logging of all failed integration messages in a centralized master data table.
- Automated, scheduled retry of failed messages, with tracking of each attempt.
- Escalation via automated notifications to stakeholders if failures persist beyond a defined threshold.
- Providing visibility to authorized users for monitoring and manual intervention.
- Ensuring compliance with Syensqo’s security, data privacy, and audit requirements.
- Supporting reporting and analytics needs as defined in related Jira requests.
This scope encompasses integration with both internal and external systems, covering all technical, functional, and compliance aspects necessary for reliable and transparent message processing.
Component Diagram
Sequence Breakdown
Icertis Initiation (1): The process begins with "Icertis," which sends messages to the "Azure Service Bus." This is the starting point for events or data that need to be processed.
Azure Service Bus to Azure Event Grid (A1): Messages from the Azure Service Bus are then directed to the "Azure Event Grid."
Azure Event Grid to Webhook (A2): The Azure Event Grid routes these events to a Icertis Webhook. This implies that the events are being pushed to an external service or application via an HTTP callback.
Webhook to SAP (A3): Finally, the Webhook sends the information to "SAP" for sending updates or new data.
Icertis Task Service and Development Scope :
This section seems to describe a more detailed, internal process within Icertis, particularly focusing on handling events and ensuring data consistency. The "Icertis Task Service" acts as an orchestrator for the processes within the "Development Scope."
Icertis Task Service Orchestration (B1 & B2): The "Icertis Task Service" is windows service that triggers or manages icertis event based and scheduled tasks within the "Development Scope." It triggers the "Scheduled Jobs" (B2) and e.g. "CustomEventBasedTask" which sends messages to SAP sytem(B3).
Within the Development Scope:
CustomEventBasedTask (B3): The CustomEventBasedTask which invokes the 3rd Party API for integration.
- Max Retry = 5 (B4): If the task fails, there's a retry mechanism with a Max Retry = 5 within Icertis via hangfire. The CustomEventBasedTask will attempt to re-execute up to 5 times if it encounters failures.
Conditional Logic (B5 ): If the API call fail, Log the fail record in the Reconciliation table in B6. Regardless of retries, if a task fails, the "Log Failed Records" process is activated to record details of the failure.
Reconciliation Table (B6): The logged failed records feeds into Reconciliation table.
ReconciliationTask (C2): These scheduled jobs trigger a "ReconciliationTask" to process the failed records for the integrations.
Retry Failed Messages (C3 & C4): If the ReconciliationTask loads all the failed records from the Reconciliation table and reprocess them to 3rd Party API
Sequence Breakdown
Icertis Initiation (1): The process begins with "Icertis," which sends messages to the "Azure Service Bus." This is the starting point for events or data that need to be processed.
Azure Service Bus to Azure Event Grid (A1): Messages from the Azure Service Bus are then directed to the "Azure Event Grid."
Azure Event Grid to Webhook (A2): The Azure Event Grid routes these events to a Icertis Webhook. This implies that the events are being pushed to an external service or application via an HTTP callback.
Webhook to SAP (A3): Finally, the Webhook sends the information to "SAP" for sending updates or new data.
Icertis Task Service and Development Scope :
This section seems to describe a more detailed, internal process within Icertis, particularly focusing on handling events and ensuring data consistency. The "Icertis Task Service" acts as an orchestrator for the processes within the "Development Scope."
Icertis Task Service Orchestration (B1 & B2): The "Icertis Task Service" is windows service that polls the messages from service bus and triggers icertis event based and scheduled tasks within the "Development Scope." It triggers the "Scheduled Jobs" (B2) and e.g. "CustomEventBasedTask" which sends messages to SAP sytem(B3).
Within the Development Scope:
CustomEventBasedTask (B3): The "CustomEventBasedTask" is an event-driven task which gets triggered from Icertis task service and calling the 3rd party API.
Conditional Logic (B5): If CustomEventBasedTask 3rd party API invocation fails, it moves ahead with B5 to log the failed entry into the table.
- Reconciliation Masterdata (B6): The logged failed records feed into Reconciliation table.
Max Retry = 5 (B4): The icertis hangfire internally retries the message in quick succession for 5 times.
Log Failed Records (B5): Regardless of retries, if a task fails, the "Log Failed Records" process is activated to record details of the failure.
Scheduled Jobs (C1): "Scheduled Jobs" that run at specific times based on cron expression within Icertis Worker Task table.
ReconciliationTask (C2): These scheduled jobs trigger a "ReconciliationTask."
Retry Failed Messages (C3): The ReconciliationTask loads the failed record from Reconciliation table and proceeds for reprocessing them.
Reconciliation Masterdata (C4): The reconciliation table holds the entries for all the failed tasks from icertis.
Key Features
Failure Logging
- When an integration call (e.g., Icertis to CPI) fails, the failed message is logged in a master data table.
- The log includes details such as message content, timestamp, error details, and a retry count.
Master Data Table
- Acts as the single source of truth for all failed integration attempts.
Scheduled Retry Job
- Runs once daily.
- Picks up failed messages from the master data table and attempts to resend them to the target endpoint.
- Updates the retry count and status after each attempt.
Retry Count & Failure Notification
- Each message’s retry count is incremented with every attempt.
- If a message fails more than 5 times, an automated failure notification email is sent to relevant stakeholders.
- This ensures timely awareness and manual intervention if needed.
User Visibility
- Users with access (e.g., via Icertis UI) can view the status of failed integrations directly from the master data.
- This promotes transparency and allows for proactive monitoring.
Sequence Diagram
Below is a step-by-step flow of how the reconciliation mechanism operates in real time:
- Integration Attempt
- Icertis (or another system) sends a message to the CPI endpoint.
- Failure Detection
- If the message fails (e.g., due to a network error or endpoint issue), the failure is immediately logged in the master data table with all relevant details.
- Immediate Retry (by Source System)
- The source system (e.g., Icertis) may attempt a quick retry, but this does not replace the scheduled reconciliation process.
- Scheduled Reconciliation Job
- At scheduled intervals (e.g., every 12 or 24 hours), the reconciliation job scans the master data for messages with status “Pending” or “Failed.”
- The job attempts to resend these messages to the endpoint.
- Update Master Data
- After each retry, the master data is updated:
- Retry count is incremented.
- Status is updated (e.g., “Retried,” “Success,” or “Failed”).
- Last attempt timestamp is recorded.
- After each retry, the master data is updated:
- Failure Escalation
- If a message’s retry count exceeds 3, the system triggers an automated failure notification email to stakeholders.
- User Monitoring
- Users can access the master data (e.g., via Icertis UI) to view the status of all failed or retried messages.
Configuration
To ensure robust, reliable, and transparent integration between Icertis and downstream systems (such as CPI), it is essential to track and manage all integration attempts—especially failures. The IntegrationReconciliation master data is designed to serve as the central repository for logging every failed integration message, capturing key details such as message content, timestamps, error information, retry attempts, and processing status.
This table enables:
- Automated Retry and Escalation: By recording each failure and retry, the system can automatically reprocess failed messages and escalate persistent issues to stakeholders.
- Traceability and Auditability: Every integration attempt is logged with comprehensive details, supporting audit requirements and root cause analysis.
- User Visibility: Authorized users can monitor the status of integration messages in real time, enabling proactive intervention and troubleshooting.
- Reporting and Compliance: The structured data supports analytics, reporting, and compliance with Syensqo’s IT and regulatory standards.
Masterdata Attributes/Columns
| Column Name | Data Type | Nullable? | Description/Notes |
|---|---|---|---|
| ID | bigint | No (not null) | Likely the Primary Key, an automatically incrementing large integer identifier. |
| IntegrationType | nvarchar(150) | No (not null) | Stores the type of integration as a variable-length Unicode string, max 150 characters. |
| RequestMessage | nvarchar(max) | No (not null) | Stores the full request message (e.g., XML, JSON) as a variable-length Unicode string. |
| StartedAt | datetime | Yes (null) | Records the start time of the event. Can be null if not yet started or relevant. |
| CompletedAt | datetime | Yes (null) | Records the completion time of the event. Can be null if not yet completed. |
| AdditionalInfo | nvarchar(max) | Yes (null) | Stores extra information about the event. |
| ResponseMessage | nvarchar(max) | Yes (null) | Stores the response message received. |
| TryCount | int | Yes (null) | Counts how many attempts were made for the integration event. |
| IsSuccess | bit | Yes (null) | A Boolean flag (0 or 1) indicating if the operation succeeded. |
| ExternalIdentifier | nvarchar(400) | Yes (null) | An ID from an external system. (e.g. Incoming SAP Event/Message Id) |
| ICMIdentifier | nvarchar(400) | Yes (null) | An ID specific to "ICM" (e.g Id from Icertis system like SysId). |
| EntityName | nvarchar(400) | Yes (null) | The name of the entity being processed. |
| Status | nvarchar(400) | Yes (null) | The current status of the event (e.g., 'Pending', 'Processing', 'Failed'). |
| ETag | datetime | Yes (null) | A timestamp or version indicator often used for optimistic concurrency control. |
| IsActive | int | No (not null) | An integer flag (likely 0 or 1) indicating whether the log entry is active. Inactive records are not shown in the Icertis table view UI by default. |
Proposed Technology to Use
- Icertis custom event job & Scheduled Job
Processing Logic
When to Run:
The reconciliation process is triggered whenever an integration attempt from Icertis to a target system fails. Additionally, a scheduled job runs at defined intervals (e.g., every 12 or 24 hours) to process unresolved failures.How Master Data Entries Are Added:
When a failure occurs, the integration job automatically creates a new entry in the IntegrationReconciliation master data table, capturing key details such as message content, timestamps, error information, and setting the status to "Failed" with TryCount initialized to 1.Scheduled Retry:
The scheduled job selects all active failed or pending entries and attempts to resend them. After each attempt, it updates the retry count and status. If a message fails more than the allowed number of times (e.g., 3), it triggers an automated notification to stakeholders for manual intervention.User Monitoring:
Authorized users can view and monitor the status of all integration attempts via the Icertis UI, enabling proactive management and resolution.
How to Test
| Test Step ID | Test Condition/Action | Expected Result |
|---|---|---|
| 1 | Simulate a failed integration (e.g., send invalid data or disable the endpoint) | Entry created in the IntegrationReconciliation table with status "Failed" and TryCount = 1 |
| 2 | Allow the scheduled reconciliation job to run | System attempts resend; TryCount increments; status updates to "Success" if successful, else remains "Failed"/"Retried" |
| 3 | Force repeated failures until TryCount > threshold (e.g., 3) | Automated notification sent to stakeholders; record flagged for manual intervention |
| 4 | Log in as an authorized user and view the monitoring interface | All integration attempts (failed, retried, and successful) are visible with accurate details |
| 5 | Attempt unauthorized access or modification | Access is denied; security controls are enforced |
| 6 | Test with corrupted or incomplete data | System handles exceptions gracefully; error is logged appropriately |
| 7 | Reset test data and repeat tests | Process is repeatable and robust; system continues to function as expected |
Language Requirements
- All labels, logs, and error messages will be in English.
Development Details
Package
| Package Name | Parent Package |
|---|---|
Enhancement Implementation
| Enhancement Type | Standard Definition Name | Custom Implementation Name | Design Rationale Reference |
|---|---|---|---|
Other Development Objects
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|