bug/2544 Fix shared dataExtension fields not resolved in journey UPDATECONTACTDATA activity#2546
Merged
JoernBerkefeld merged 5 commits intodevelopfrom Mar 14, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] [BUG] Fix shared dataExtension fields resolution in journey update contact activity
#2038 Fix shared dataExtension fields not resolved in journey UPDATECONTACTDATA activity
Mar 14, 2026
2 tasks
Coverage ReportCommit:aefcc76Base: develop@f8ce74c Details (changed files):
|
…ivity Co-authored-by: JoernBerkefeld <1917227+JoernBerkefeld@users.noreply.github.com>
…ngleSharedDe Co-authored-by: JoernBerkefeld <1917227+JoernBerkefeld@users.noreply.github.com>
…hared DE helpers Co-authored-by: JoernBerkefeld <1917227+JoernBerkefeld@users.noreply.github.com>
09f26c0 to
aefcc76
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three bugs in journey
UPDATECONTACTDATAactivity processing when working with shared dataExtensions:retrieveFieldsForSingleDe(undefined), causing a SOAP error and triggering a full scan of alldataExtensionFieldrecords.dataExtensionFieldcache and always failed for shared DEs.journeywithoutdataExtension:DataExtension.attachFields()(called during DE retrieve) attaches fields to DE objects in memory but does not populatecache.dataExtensionField. The handler must always fetch fields on-demand.Changes
DataExtensionField.jsisSharedDe(customerKey)— checks the DE'sCategoryIDagainst the parent-BU folder cache; returnstrueif the folder'sContentTypeis infolderTypesFromParentretrieveFieldsForSingleSharedDe(customerKey)— temporarily swapsbuObject/clientto parent BU, callsretrieveFieldsForSingleDe(), then restores — same pattern asDataExtension.retrieveSharedForCache; includes null-guard for misconfigured credentialsretrieveFieldsForSingleDeAuto(customerKey)— routes to shared or local retrieval automatically, eliminating repeated ternary logic at call sitesJourney.js—UPDATECONTACTDATAin both_postRetrieveTasks_activitiesand_preDeployTasks_activitiesretrieveFieldsForSingleDe(undefined)→ SOAP crash → full field scandataExtensionFieldcacheisSharedDe()→ correct BUretrieveFieldsForSingleDeAuto()withalreadyFetchedDeguardTests
mcdev retrieve cred/bu -m journey— all journeys including local-DE and shared-DEUPDATECONTACTDATA(existing)mcdev retrieve cred/bu -m journey dataExtension— new: combined retrieve; verifiesDataExtension.attachFields()does not pollutecache.dataExtensionFieldand field resolution still uses the correct per-DE fetch path for both local and shared DEsUPDATECONTACTDATAjourneys (added in initial fix commit)Documentation
No wiki changes required.
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.