Skip to main content

Testing AEP streaming ingestion in a development sandbox

By 16Labs · Updated

Short answer: send a synthetic XDM record to your HTTP API streaming inlet with ?syncValidation=true, check that the response reports "syncValidation": {"status": "pass"}, then poll the Profile access API until the profile appears. Do it in a development sandbox. The 16Labs AEP Lab ships these steps as ready-made recipes in a suite.

The request

Streaming record data goes to the inlet URL of an HTTP API streaming connection:

POST https://dcs.adobedc.net/collection/{INLET_ID}?syncValidation=true
Content-Type: application/json
Authorization: Bearer {ACCESS_TOKEN}
x-gw-ims-org-id: {IMS_ORG_ID}

The body has a header (schema reference, IMS org id, dataset id, source name) and a body with xdmMeta and xdmEntity. An authenticated inlet without a valid token answers 401.

Why syncValidation

syncValidation=true makes the inlet validate the record against its schema and tell you the result in the response, instead of failing later in a batch you have to go and find. Adobe describes it as intended for development, and it is limited to 60 requests per minute per connection. That fits a test suite. It does not fit load testing.

Steps in the AEP Lab

  1. Set up the streaming connection, dataflow and a Profile-enabled dataset once in your development sandbox (the AEP Lab guide walks through it), and paste the inlet URL into your AEP Lab connection.
  2. Generate a synthetic profile set. Every identity follows the synthetic rules: rr- emails on example domains, 555-01xx phone numbers, ECIDs starting with 99.
  3. Run a suite with the streaming recipes. Each request uses syncValidation and asserts the pass status.
  4. The Profile lookup recipe polls GET /data/core/ups/access/entities with the synthetic identity until the profile appears, with backoff.

What usually goes wrong

  • Validation fails: the response says which field. Common causes are a missing required field, a wrong schemaRef content type, or an identity field that isn't in the schema.
  • Ingestion passes but no profile appears: the dataset or schema isn't enabled for Profile, or the identity namespace in the record doesn't match the schema's primary identity.
  • Records arrive, but in the wrong profile: check the identity map and your merge policy.

Related