Retryable SetFacetOperation logging
The PatchFacetOperation operation performs updates to calculated facets and creates one or more SetFacetOperation operations in the process.
Historically, if the SetFacetOperation failed, another operation was created according to the retry strategy (so the whole operation does not fail but is retried). However, this error still appeared in the logs. For example:
Historically, when the PatchFacetOperation operation was successful, it did not write a log entry.
The extending xConnect logging feature improves the logging of retryable SetFacetOperation operations. Errors are written to the log only if the whole PatchFacetOperation operation fails. When the SetFacetOperation fails under a PatchFacetOperation operation, it writes [Debug] information to the log file instead.
Retryable SetFacetOperation log output example
Every PatchFacetOperation is assigned a unique ID. You can find all child operations with this ID. When the MinimumLevel of logging is set to Warning, then only failed PatchFacetOperation operations appear in the log. For example:
The log contains:
-
The ID of the
PatchFacetOperation. For example,#f917f8a7-c7ea-458d-b589-b6accf217870. -
The number of the suboperation within the
PatchFacetOperationoperation. For example,Operation #2. -
The entity where the error occurred. For example,
Contact {5f056110-fbd9-0000-0000-0625942c1bac}. -
The name of the facet where the operation failed. For example,
ContactBehaviorProfile, InteractionsCache, EngagementMeasures.
When you set the MinimumLevel to Debug, it logs all retried operations and successful operations. For example:
Failed operation log:
Successful operation log:
The log contains:
-
The ID of the
PatchFacetOperationso you can find all related operations. For example,#220a6442-af3c-4716-ae50-671bd56b43b7. -
The number of the suboperation within the
PatchFacetOperationoperation. For example,Operation #2. -
The retry attempt.
-
The entity where the error occurred. For example,
Contact {5f056110-fbd9-0000-0000-0625942c1bac}. -
The name of the facet where the operation failed. For example,
ContactBehaviorProfile, InteractionsCache, EngagementMeasures. -
The status of the operation:
Successfully Completed Operation,Failed Sub Operation, orConflict.