I've created a transformation to transform a singl...
# support
e
I've created a transformation to transform a single "page" event to an array of a page event and a new event named "entered_from_medium". In the transformation loggin this seems to work out good, but for some reason this event is not being processed by the sync to my DWH
The end result is this json after the trasnformation:
Copy code
[
  {
    "eventName": "entered_from_medium",
    "eventType": "entered_from_medium",
    "payload": {
      "anonymousId": "9964484c-6872-4eee-8995-3ce4ed934724",
      "channel": "web",
      "context": {
        "app": {
          "build": "1.0.0",
          "name": "RudderLabs JavaScript SDK",
          "namespace": "com.rudderlabs.javascript",
          "version": "2.21.0"
        },
        "campaign": {},
        "library": {
          "name": "RudderLabs JavaScript SDK",
          "version": "2.21.0"
        },
        "os": {
          "name": "",
          "version": ""
        },
        "page": {
          "initial_referrer": "https://www.google.nl/",
          "initial_referring_domain": "www.google.nl",
          "parameters": {
            "c": "120",
            "gclid": "Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
          },
          "path": "/zonnepanelen-in-brummen",
          "referrer": "https://www.google.nl/",
          "referring_domain": "www.google.nl",
          "search": "?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
          "tab_url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
          "title": "Zonneplan Zonnepanelen Brummen | Incl. Gratis Slimme Energie App",
          "url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
        },
        "screen": {
          "density": 0,
          "height": 0,
          "innerHeight": 0,
          "innerWidth": 0,
          "width": 0
        },
        "sessionId": 1679577180167,
        "sessionStart": true,
        "traits": {}
      },
      "integrations": {
        "All": true
      },
      "messageId": "64484c68-721e-4ec9-953c-e4ed93472422",
      "originalTimestamp": "2023-03-23T13:13:00.182Z",
      "properties": {
        "click_id": "Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
        "initial_referrer": "https://www.google.nl/",
        "initial_referring_domain": "www.google.nl",
        "medium": "google_cpc",
        "path": "/zonnepanelen-in-brummen",
        "referrer": "https://www.google.nl/",
        "referring_domain": "www.google.nl",
        "search": "?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
        "tab_url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
        "title": "Zonneplan Zonnepanelen Brummen | Incl. Gratis Slimme Energie App",
        "url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
      },
      "receivedAt": "2023-03-23T13:12:59.689Z",
      "request_ip": "2a02:a448:f6c4:1:c9f0:7f55:2c03:d07f",
      "rudderId": "c105696d-08b9-4f73-a0d5-0af4fe00af68",
      "sentAt": "2023-03-23T13:13:00.186Z",
      "timestamp": "2023-03-23T13:12:59.685Z",
      "type": "entered_from_medium",
      "userId": ""
    }
  },
  {
    "eventName": "page",
    "eventType": "page",
    "payload": {
      "anonymousId": "9964484c-6872-4eee-8995-3ce4ed934724",
      "channel": "web",
      "context": {
        "app": {
          "build": "1.0.0",
          "name": "RudderLabs JavaScript SDK",
          "namespace": "com.rudderlabs.javascript",
          "version": "2.21.0"
        },
        "campaign": {},
        "library": {
          "name": "RudderLabs JavaScript SDK",
          "version": "2.21.0"
        },
        "os": {
          "name": "",
          "version": ""
        },
        "page": {
          "initial_referrer": "https://www.google.nl/",
          "initial_referring_domain": "www.google.nl",
          "parameters": {
            "c": "120",
            "gclid": "Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
          },
          "path": "/zonnepanelen-in-brummen",
          "referrer": "https://www.google.nl/",
          "referring_domain": "www.google.nl",
          "search": "?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
          "tab_url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
          "title": "Zonneplan Zonnepanelen Brummen | Incl. Gratis Slimme Energie App",
          "url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
        },
        "screen": {
          "density": 0,
          "height": 0,
          "innerHeight": 0,
          "innerWidth": 0,
          "width": 0
        },
        "sessionId": 1679577180167,
        "sessionStart": true,
        "traits": {}
      },
      "integrations": {
        "All": true
      },
      "messageId": "64484c68-721e-4ec9-953c-e4ed93472422",
      "originalTimestamp": "2023-03-23T13:13:00.182Z",
      "properties": {
        "initial_referrer": "https://www.google.nl/",
        "initial_referring_domain": "www.google.nl",
        "path": "/zonnepanelen-in-brummen",
        "referrer": "https://www.google.nl/",
        "referring_domain": "www.google.nl",
        "search": "?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
        "tab_url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB",
        "title": "Zonneplan Zonnepanelen Brummen | Incl. Gratis Slimme Energie App",
        "url": "https://www.zonneplan.nl/zonnepanelen-in-brummen?c=120&gclid=Cj0KCQjw8e-gBhD0ARIsAJiDsaUVXmLgfV4gwLoUfsce36NwHqXEzHhB4xW8-imO1wo5iap2JOmc4SoaAh9xEALw_wcB"
      },
      "receivedAt": "2023-03-23T13:12:59.689Z",
      "request_ip": "2a02:a448:f6c4:1:c9f0:7f55:2c03:d07f",
      "rudderId": "c105696d-08b9-4f73-a0d5-0af4fe00af68",
      "sentAt": "2023-03-23T13:13:00.186Z",
      "timestamp": "2023-03-23T13:12:59.685Z",
      "type": "page",
      "userId": ""
    }
  }
]
Ok fixed this issue, I had to change the "messageId" to another unique id and the "type" to "track" instead of the same name as the event