claude-memory/graph/fixes/sf-cajson-mapping-config-copy-paste-bug-in-contact-required-49d3de.md
2026-02-26 12:58:17 -06:00

1.9 KiB

id type title tags importance confidence created updated relations
49d3de63-9123-4d3b-b45b-614927b6afe3 fix sf-ca.json mapping config: copy-paste bug in Contact required_platform_fields + missing CloudSQL fields
esb-monorepo
sf-ca
object-handler
mapping
bug
fix
0.7 0.8 2026-02-26T18:57:20.932938+00:00 2026-02-26T18:58:17.935724+00:00
target type direction strength edge_id
ca8d0390-7ff9-4ca7-b033-3656d653c2be RELATED_TO incoming 0.8 6d3dfef5-7a75-47e5-a812-ab7577b6d42b
target type direction strength edge_id
65cdb31b-e86f-4465-a321-378e1f704e6f CAUSES outgoing 0.85 bfe2c279-396c-4984-9867-a15f0d7895c8
target type direction strength edge_id
5ac9e4b8-d83f-4409-8f61-224027e1156b RELATED_TO outgoing 0.7 49966d04-cbd2-496f-9530-6b91a50cc6ba

sf-ca.json Mapping Config: Known Issues

File Location

packages/py-esb-integrations/src/esb_integration/mappings/sf-ca.json

Current State

Mapping already exists with:

  • Account -> CommercialAquaticsAccount
  • Contact -> ContactStaff

Both types are already registered in VALID_OBJECT_TYPES and ObjectFactory.

Bug 1: Copy-Paste Error in Contact required_platform_fields

Contact's required_platform_fields includes Account-specific fields that are NOT present in Contact's field_aliases:

  • Account_Status__c
  • Operating_Entity__c
  • Primary_Email__c

These are Account fields that were likely copied when the Contact block was scaffolded. Will cause validation failures at runtime.

Bug 2: Missing CloudSQL Routing Fields

Both Account and Contact mappings are missing:

  • db_platform_code
  • db_source_code

These fields are required for CloudSQL silver layer routing. Will be addressed in ESB-51 after real Salesforce data confirms actual field names from the SF-CA instance.

Resolution Plan

Defer fixes to ESB-51 — need real raw data from the Salesforce CA instance before finalizing field names.