--- title: MarketingActivityUserError - GraphQL Admin description: An error that occurs during the execution of marketing activity and engagement mutations. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/MarketingActivityUserError md: https://shopify.dev/docs/api/admin-graphql/latest/objects/MarketingActivityUserError.md --- # Marketing​Activity​User​Error object An error that occurs during the execution of marketing activity and engagement mutations. ## Fields * code [Marketing​Activity​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/MarketingActivityUserErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [marketing​Activities​Delete​All​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivitiesDeleteAllExternal) mutation Deletes all external marketing activities. Deletion is performed by a background job, as it may take a bit of time to complete if a large number of activities are to be deleted. Attempting to create or modify external activities before the job has completed will result in the create/update/upsert mutation returning an error. * [marketing​Activity​Create​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityCreateExternal) mutation Creates a new external marketing activity. * [marketing​Activity​Delete​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityDeleteExternal) mutation Deletes an external marketing activity. * [marketing​Activity​Update​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityUpdateExternal) mutation Update an external marketing activity. * [marketing​Activity​Upsert​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityUpsertExternal) mutation Creates a new external marketing activity or updates an existing one. When optional fields are absent or null, associated information will be removed from an existing marketing activity. * [marketing​Engagement​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingEngagementCreate) mutation Creates a new marketing engagement for a marketing activity or a marketing channel. * [marketing​Engagements​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingEngagementsDelete) mutation Marks channel-level engagement data such that it no longer appears in reports. Activity-level data cannot be deleted directly, instead the MarketingActivity itself should be deleted to hide it from reports. *** ## <\~> MarketingActivityUserError Mutations ### Mutated by * <\~>[marketing​Activities​Delete​All​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivitiesDeleteAllExternal) * <\~>[marketing​Activity​Create​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityCreateExternal) * <\~>[marketing​Activity​Delete​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityDeleteExternal) * <\~>[marketing​Activity​Update​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityUpdateExternal) * <\~>[marketing​Activity​Upsert​External](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingActivityUpsertExternal) * <\~>[marketing​Engagement​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingEngagementCreate) * <\~>[marketing​Engagements​Delete](https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketingEngagementsDelete) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-MarketingActivityUserError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)