Does anyone have any sample code they can share to see how to trap errors during an automated dataload process? Currently, all I can see is that the dataload process executed and completed but it does not tell you if something happened in between. I'm having no luck capturing if an error was encountered during the import or validate steps.
","kudosSumWeight":0,"postTime":"2021-12-29T12:40:39.788-08:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"tags":{"__typename":"TagConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"TagEdge","cursor":"MjUuM3wyLjF8b3wxMHxfTlZffDE","node":{"__typename":"Tag","id":"tag:Data Integration","text":"Data Integration","time":"2021-11-30T13:02:22.914-08:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}},{"__typename":"TagEdge","cursor":"MjUuM3wyLjF8b3wxMHxfTlZffDI","node":{"__typename":"Tag","id":"tag:Workflow","text":"Workflow","time":"2021-07-30T07:25:19.827-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}}]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:3818_1"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":5285},"visibilityScope":"PUBLIC","canonicalUrl":null,"seoTitle":null,"seoDescription":null,"isEscalated":null,"placeholder":false,"originalMessageForPlaceholder":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"archivalData":null,"customFields":[],"body":"Does anyone have any sample code they can share to see how to trap errors during an automated dataload process? Currently, all I can see is that the dataload process executed and completed but it does not tell you if something happened in between. I'm having no luck capturing if an error was encountered during the import or validate steps.
"},"Conversation:conversation:3818":{"__typename":"Conversation","id":"conversation:3818","solved":false,"topic":{"__ref":"ForumTopicMessage:message:3818"},"lastPostingActivityTime":"2022-04-26T15:18:10.219-07:00","lastPostTime":"2022-04-26T15:18:10.219-07:00","unreadReplyCount":9,"isSubscribed":false},"ModerationData:moderation_data:3818":{"__typename":"ModerationData","id":"moderation_data:3818","status":"UNMODERATED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Revision:revision:3818_1":{"__typename":"Revision","id":"revision:3818_1","lastEditTime":"2021-12-29T12:40:39.788-08:00"},"ForumReplyMessage:message:3831":{"__typename":"ForumReplyMessage","id":"message:3831","conversation":{"__ref":"Conversation:conversation:3818"},"author":{"__ref":"User:user:545"},"revisionNum":2,"uid":3831,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:WorkflowDI"},"subject":"Re: Trapping WF Import/Validate/Load Errors","readOnly":false,"editFrozen":false,"moderationData":{"__ref":"ModerationData:moderation_data:3831"},"parent":{"__ref":"ForumTopicMessage:message:3818"},"body":"Here's an example that executes a direct connect import and captures the status. If the status of wfUC_Import contains an error, the code logs the message, sends out an e-mail, and exits the rule. If no error is found, it logs a successful completion and moves on to the next step.
Here's the actual code:
'Define the Workflow unit cluster 'Execute Data management load to process the workflow channels |
Here's an example that executes a direct connect import and captures the status. If the status of wfUC_Import contains an error, the code logs the message, sends out an e-mail, and exits the rule. If no error is found, it logs a successful completion and moves on to the next step.
Here's the actual code:
'Define the Workflow unit cluster 'Execute Data management load to process the workflow channels |