Changes
Created page with "= EventNotification Processing Feedback = EventNotifications inform UBIK about changes to synchronised objects in external systems. Because a single notification may affect o..."
= EventNotification Processing Feedback =
EventNotifications inform UBIK about changes to synchronised objects in external systems. Because a single notification may affect one or multiple objects, UBIK provides processing feedback indicating both the overall processing state and, in case of failures, detailed information about what went wrong.
Detailed processing information is represented by <code>NotificationProcessingResult</code>. Error details are persisted in the EventNotification property <code>NotificationLog</code> only when processing encounters an error.
== Processing States ==
=== NotProcessed ===
The notification has been received and stored, but processing has not yet taken place.
There is therefore no processing result or error information yet.
=== SuccessfullyProcessed ===
The notification was processed successfully and all affected objects were successfully imported, updated or deleted.
No <code>NotificationLog</code> is persisted for successful notifications. Instead, the successful processing result is provided dynamically:
<syntaxhighlight lang="json">
{
"Status": "SuccessfullyProcessed",
"Errors": []
}
</syntaxhighlight>
=== PartlyProcessed ===
The notification was processed and at least one affected object was processed successfully, while processing of at least one other object failed.
The <code>NotificationLog</code> contains details about the failed objects and the reason for each failure.
=== ProcessedWithError ===
Processing was attempted, but none of the affected objects could be processed successfully.
The <code>NotificationLog</code> contains the available error information for the failed processing operations.
=== NoProcessorFound ===
UBIK could not determine the necessary processing configuration for the notification. Object processing therefore could not be performed.
The <code>NotificationLog</code> contains details explaining why the notification could not be processed.
== NotificationLog ==
Detailed failure information is stored in the EventNotification's <code>NotificationLog</code> property as JSON.
<syntaxhighlight lang="json">
{
"Status": "PartlyProcessed",
"Errors": [
{
"Object": {
"SystemType": 8,
"SystemUid": "A5EWSOMYK6",
"DbKey": "db1",
"ProjectUid": "A3X1DY8S10",
"WorkingOverlayId": "A43NKY92H4"
},
"Code": "ObjectProcessingFailed",
"Message": "Description of the processing problem."
}
]
}
</syntaxhighlight>
Each error provides:
* <code>Code</code>: the type of processing error.
* <code>Message</code>: a human-readable description of the problem.
* <code>Object</code>: identification of the affected object, where the error can be assigned to a specific object.
The object identifier consists of:
* <code>SystemType</code>
* <code>SystemUid</code>
* <code>DbKey</code>
* <code>ProjectUid</code>
* <code>WorkingOverlayId</code>
For errors that apply to the notification as a whole rather than an individual object, <code>Object</code> may be omitted.
=== Historic Notifications ===
Historic notifications may not contain a <code>NotificationLog</code>. In this case, a fallback <code>NotificationProcessingResult</code> consists of the notification's existing status and an empty <code>Errors</code> collection.
== Failure Reasons and Troubleshooting ==
=== No Matching Login Found ===
'''Reason:''' <code>NoMatchingLoginFound</code>
UBIK could not find a configured Service Login (<code>ComosLogin</code>) matching the notification's <code>DbKey</code>, <code>ProjectUid</code> and <code>WorkingOverlayId</code>.
'''How to resolve:''' Verify that an appropriate Service Login is configured for this combination.
=== No Template/CDevice/DocumentType Information Found ===
'''Reason:''' <code>NoTemplateCDeviceInfoFound</code>
UBIK attempted to resolve the template, CDevice or DocumentType for the referenced object, but the required data could not be retrieved from Comos via the REST API.
'''How to resolve:''' Check the ServiceLogs for additional information.
=== Multiple InterfaceAdministrations Found ===
'''Reason:''' <code>MultipleInterfaceAdministrationsFound</code>
More than one <code>InterfaceAdministration</code> matches the login and template/CDevice/DocumentType of the referenced object, making the processing configuration ambiguous.
'''How to resolve:''' Check the configured <code>InterfaceAdministration</code> objects and ensure the affected object can be assigned unambiguously to one configuration.
=== No InterfaceAdministration Found ===
'''Reason:''' <code>NoInterfaceAdministrationsFound</code>
No <code>InterfaceAdministration</code> configured to process the referenced object could be found for the relevant login and template/CDevice/DocumentType.
'''How to resolve:''' Check the <code>InterfaceAdministration</code> configuration and ensure an appropriate configuration exists.
=== Proxy Not Imported ===
'''Reason:''' <code>ProxyNotImported</code>
The object was processed, but the resulting proxy did not receive a ComosUID. The corresponding proxy is still in creation state because its first export has not finished.
'''How to resolve:''' Check the ServiceLogs for more information.
=== Unexpected Error ===
'''Reason:''' <code>UnexpectedError</code>
An unexpected exception occurred while evaluating the notification.
'''How to resolve:''' Review the error <code>Message</code> for more information.
== Quick Troubleshooting Overview ==
{| class="wikitable"
! Failure reason
! What to check
|-
| <code>NoMatchingLoginFound</code>
| Service Login / <code>ComosLogin</code> configuration for <code>DbKey</code>, <code>ProjectUid</code> and <code>WorkingOverlayId</code>
|-
| <code>NoTemplateCDeviceInfoFound</code>
| ServiceLogs and Comos REST API data retrieval
|-
| <code>MultipleInterfaceAdministrationsFound</code>
| Ambiguous <code>InterfaceAdministration</code> configuration
|-
| <code>NoInterfaceAdministrationsFound</code>
| Missing <code>InterfaceAdministration</code> configuration
|-
| <code>ProxyNotImported</code>
| ServiceLogs and proxy import/export
|-
| <code>UnexpectedError</code>
| Error <code>Message</code> for exception details
|}
== Summary ==
Successfully processed EventNotifications do not generate persistent log data. If processing fails completely or partially, the EventNotification's <code>NotificationLog</code> contains structured feedback identifying the failure and, where possible, the affected object.
EventNotifications inform UBIK about changes to synchronised objects in external systems. Because a single notification may affect one or multiple objects, UBIK provides processing feedback indicating both the overall processing state and, in case of failures, detailed information about what went wrong.
Detailed processing information is represented by <code>NotificationProcessingResult</code>. Error details are persisted in the EventNotification property <code>NotificationLog</code> only when processing encounters an error.
== Processing States ==
=== NotProcessed ===
The notification has been received and stored, but processing has not yet taken place.
There is therefore no processing result or error information yet.
=== SuccessfullyProcessed ===
The notification was processed successfully and all affected objects were successfully imported, updated or deleted.
No <code>NotificationLog</code> is persisted for successful notifications. Instead, the successful processing result is provided dynamically:
<syntaxhighlight lang="json">
{
"Status": "SuccessfullyProcessed",
"Errors": []
}
</syntaxhighlight>
=== PartlyProcessed ===
The notification was processed and at least one affected object was processed successfully, while processing of at least one other object failed.
The <code>NotificationLog</code> contains details about the failed objects and the reason for each failure.
=== ProcessedWithError ===
Processing was attempted, but none of the affected objects could be processed successfully.
The <code>NotificationLog</code> contains the available error information for the failed processing operations.
=== NoProcessorFound ===
UBIK could not determine the necessary processing configuration for the notification. Object processing therefore could not be performed.
The <code>NotificationLog</code> contains details explaining why the notification could not be processed.
== NotificationLog ==
Detailed failure information is stored in the EventNotification's <code>NotificationLog</code> property as JSON.
<syntaxhighlight lang="json">
{
"Status": "PartlyProcessed",
"Errors": [
{
"Object": {
"SystemType": 8,
"SystemUid": "A5EWSOMYK6",
"DbKey": "db1",
"ProjectUid": "A3X1DY8S10",
"WorkingOverlayId": "A43NKY92H4"
},
"Code": "ObjectProcessingFailed",
"Message": "Description of the processing problem."
}
]
}
</syntaxhighlight>
Each error provides:
* <code>Code</code>: the type of processing error.
* <code>Message</code>: a human-readable description of the problem.
* <code>Object</code>: identification of the affected object, where the error can be assigned to a specific object.
The object identifier consists of:
* <code>SystemType</code>
* <code>SystemUid</code>
* <code>DbKey</code>
* <code>ProjectUid</code>
* <code>WorkingOverlayId</code>
For errors that apply to the notification as a whole rather than an individual object, <code>Object</code> may be omitted.
=== Historic Notifications ===
Historic notifications may not contain a <code>NotificationLog</code>. In this case, a fallback <code>NotificationProcessingResult</code> consists of the notification's existing status and an empty <code>Errors</code> collection.
== Failure Reasons and Troubleshooting ==
=== No Matching Login Found ===
'''Reason:''' <code>NoMatchingLoginFound</code>
UBIK could not find a configured Service Login (<code>ComosLogin</code>) matching the notification's <code>DbKey</code>, <code>ProjectUid</code> and <code>WorkingOverlayId</code>.
'''How to resolve:''' Verify that an appropriate Service Login is configured for this combination.
=== No Template/CDevice/DocumentType Information Found ===
'''Reason:''' <code>NoTemplateCDeviceInfoFound</code>
UBIK attempted to resolve the template, CDevice or DocumentType for the referenced object, but the required data could not be retrieved from Comos via the REST API.
'''How to resolve:''' Check the ServiceLogs for additional information.
=== Multiple InterfaceAdministrations Found ===
'''Reason:''' <code>MultipleInterfaceAdministrationsFound</code>
More than one <code>InterfaceAdministration</code> matches the login and template/CDevice/DocumentType of the referenced object, making the processing configuration ambiguous.
'''How to resolve:''' Check the configured <code>InterfaceAdministration</code> objects and ensure the affected object can be assigned unambiguously to one configuration.
=== No InterfaceAdministration Found ===
'''Reason:''' <code>NoInterfaceAdministrationsFound</code>
No <code>InterfaceAdministration</code> configured to process the referenced object could be found for the relevant login and template/CDevice/DocumentType.
'''How to resolve:''' Check the <code>InterfaceAdministration</code> configuration and ensure an appropriate configuration exists.
=== Proxy Not Imported ===
'''Reason:''' <code>ProxyNotImported</code>
The object was processed, but the resulting proxy did not receive a ComosUID. The corresponding proxy is still in creation state because its first export has not finished.
'''How to resolve:''' Check the ServiceLogs for more information.
=== Unexpected Error ===
'''Reason:''' <code>UnexpectedError</code>
An unexpected exception occurred while evaluating the notification.
'''How to resolve:''' Review the error <code>Message</code> for more information.
== Quick Troubleshooting Overview ==
{| class="wikitable"
! Failure reason
! What to check
|-
| <code>NoMatchingLoginFound</code>
| Service Login / <code>ComosLogin</code> configuration for <code>DbKey</code>, <code>ProjectUid</code> and <code>WorkingOverlayId</code>
|-
| <code>NoTemplateCDeviceInfoFound</code>
| ServiceLogs and Comos REST API data retrieval
|-
| <code>MultipleInterfaceAdministrationsFound</code>
| Ambiguous <code>InterfaceAdministration</code> configuration
|-
| <code>NoInterfaceAdministrationsFound</code>
| Missing <code>InterfaceAdministration</code> configuration
|-
| <code>ProxyNotImported</code>
| ServiceLogs and proxy import/export
|-
| <code>UnexpectedError</code>
| Error <code>Message</code> for exception details
|}
== Summary ==
Successfully processed EventNotifications do not generate persistent log data. If processing fails completely or partially, the EventNotification's <code>NotificationLog</code> contains structured feedback identifying the failure and, where possible, the affected object.
