Skip to main content
Level 2
Nov 8, 2026 8:28 PM UTC
Question

Create External Audience using local file via API

Hi, trying to find a way to create external audience using file on local device via API but without establishing any connection with cloud storage.

 

I followed a tutorial that recommended : Create custom Namespace (NPI) - externalaudiences > Create schema using segment definition class > upload segment definition > create profile membership schema > upload membership status. 

 

But this didn’t work.

4 replies

Level 2
Nov 8, 2026 8:36 PM UTC

​@Anil_Umachigi if you could help

Translate
SaurabhCh3
User Group Leader
User Group Leader
Nov 9, 2026 2:15 PM UTC

Hello ​@graceful_Rainbow7403 

Via API without any cloud storage, a pure local-file upload is not supported — the self-built "custom namespace + segment definition schema + profile membership schema" path you followed is not how externally generated audiences work, which is why it failed. Here's the accurate picture.

The two supported ways to create an externally generated audience

1. Audience Portal UI "Import audience" (Custom Upload) — the only true no-cloud-storage, local-file path. In Adobe Experience Platform (AEP), go to Audiences → Import audience, select your CSV straight from your computer, preview the sample, then set the primary identity column and its identity namespace (e.g. the email column → Email namespace). Every other column becomes a non-durable payload attribute — usable for personalization but not written to the profile. Ingestion completes within about an hour. This genuinely requires no S3/GCS/Azure connection.

2. External Audiences API endpoint — API-driven, but it needs a source location. The supported API is the Segmentation Service /external-audience endpoint (prefixed /core/ais, not /core/ups). It does not accept a raw local file in the request body — its required sourceSpec must point to where the file lives. So "via API with a local file and zero storage" is not possible; the file has to land somewhere AEP can read.

Translate
Level 2
Nov 18, 2026 4:34 PM UTC

Thanks for the answer ​@SaurabhCh3  . I try the second route ie creating external audience via api and file from sftp. I do see the schema and dataset getting generated and it holds data but for some reason the AJO is unable to find the audience or find the schema in datasource > fieldgroup. I do see a schema against the external audience id but it throws error -

 {"code":2301,"family":"CONFIG_ERROR","message":"Can't generate XDM pivot format structure from XDM registry for entity  <schema_url> ","service":"vyg-authoring-api","version":"4b9b303","context":"com.adobe.voyager.service.authoring.restapis.v1_0.DataProvidersService:793","schema":"dataProviders$metlife-dev"}

 

Any idea or thoughts on this?

Translate
ReenaJohn
Community Advisor
Community Advisor
Nov 23, 2026 9:36 AM UTC

​@graceful_Rainbow7403 

Good to hear the SFTP route is generating the schema and dataset and that the data is landing. The error usually comes from the AJO authoring layer. It means AJO is not able to resolve the schema from the XDM registry when it builds the data source field group. So the ingestion seems fine and the problem is in how AJO is reading the schema.

 

Some suggestions -

Ad hoc schema. Externally generated audiences create an ad hoc schema and dataset behind the scenes. Ad hoc schemas do not appear in the normal Schema Library list unless you turn on the option to show them. They also as per docs and what is shown in ui aren't profile-enabled (exception is FAC generated external audience), so AJO may not be able to treat them as a regular data source. Check how your schema is listed.

Sandbox. Confirm that the sandbox where the audience was created is the same one selected in AJO, and that you are opening the same audience ID in both.

Where are you looking in AJO. The audience itself should be selectable as an audience, for example in a journey's audience read or audience qualification. The payload attributes from an external audience are non-durable, and I would not expect them to show up as a regular field group under data sources. Are you trying to select the audience, or to personalize with its payload attributes.

Timing. If the audience or schema was created very recently, try again after some time in case the registry hasn't caught up.

Could you share what you're trying to do in AJO, is it to use the audience in a journey, or personalize with its payload attributes.

 

If none of the above resolves the issue, i would recommend that you open a ticket with the full error response.

 

Warm rega

rds,

 

Reena John

 

Translate