Skip to content

Conversation

@tomrf1
Copy link
Member

@tomrf1 tomrf1 commented Jan 9, 2026

While migrating across a promo from the old table to the new table I saw a failure.
This happened because the old table had an empty landingPage object. This caused the new item to contain:
"landingPage":{}
which dynamodb rejected with the error:
ERROR [syncHandler.ts:79::<anonymous>] Failed to process record: Error: Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.

The solution here is to check if the landingPage.title field is defined.

@tomrf1 tomrf1 added the fix Departmental tracking: fix label Jan 9, 2026
@tomrf1 tomrf1 merged commit 7a06ef1 into main Jan 9, 2026
58 of 59 checks passed
@tomrf1 tomrf1 deleted the tf-sync-lp branch January 9, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants