Skip to content

No target data returned #1021

@dsws

Description

@dsws

We also have a ticket open with Adobe for this issue #E-000984379

Expected Behaviour

Adobe Target data to return in propositions?

Actual Behaviour

No target data being returned

Reproduce Scenario (including but not limited to)

import React, { useEffect } from "react";

const AbTesting = ({ children }) => {
  useEffect(() => {
    initAdobeSDK();
    return () => {};
  }, []);
  return children;
};
export default AbTesting;

const initAdobeSDK = () => {
  import("@adobe/alloy").then((alloy) => {
    const instance = alloy.createInstance({ name: "alloy" });
    instance("configure", {
      edgeConfigId: "xxxx-xxx-xxx-xxx",
      orgId: "xxxxxx@AdobeOrg",
    });

    instance("sendEvent", {
      renderDecisions: true,
      xdm: {
        commerce: {
          order: {
            purchaseID: "a8g784hjq1mnp3",
            purchaseOrderNumber: "VAU3123",
            currencyCode: "USD",
            priceTotal: 999.98,
          },
        },
      },
    })
      .then(function (result) {})
      .catch(function (error) {});
  });
};

Steps to Reproduce

  1. Create a Datastream with service Target
  2. Init SDK
  3. Send event with renderDecisions true

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions