Add Relationship : Adobe Experience Platform | Community
Skip to main content
August 15, 2022
Solved

Add Relationship : Adobe Experience Platform

  • August 15, 2022
  • 2 replies
  • 3226 views

Step 1: I have created Time-Series class named "weatherclass."

Step 2: Created schema named "weatherschema" offcourse with class "weatherclass". 

Step 3: "weatherschema" has primary identity as "zipcode" 

Step 4: Created Record schema called "profile" with identify "personalEmail.address"

Step 5: In "profile" schema, under "mailingaddress.postalcode" , when i am trying to establish "relationship" , between "profile" and "weatherschema" (which has Zipcode as primary identity").

 

i keep getting errors saying "select the profile which has primary identity in schema"

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by navin_kumar0601

@navin_kumar0601 To be used on Profile, Time-Series is meant to define an event for an individual, i.e. you need to attach it to an identity of a Profile.  Thus, in the Time-Series you need a Person identity.  You have zipcode as the identity.

So, if you want to capture and use weather and apply it to each person, use option 1.

  1. Duplicate the Event to everyone in the zipcode, giving each profile their own event (and add in the Person identity)
    • Use if you want to capture the weather for each person, everyday

hi @danny-miller  @anil_umachigi @atulchavan , I made it work , keep Weather Schema as Event (and not record). The way i approached the problem was different.

Step1: Created Weather (xevent) as Class and Profile (record) as Class

Step 2:Created Weather Schema (xevent)and Profile Scheme (record)

Step 3: Weather Schema has Zipcode (identity) , also nms Zipcode (new namespace)

Step 4: Profile Schema has email (identity) , also nms EmailAddress (default email)

Step 5: Now , I establish relationship between Profile Schema with Weather Schema.

Validation steps:

For validation to check if its work or not , here is my hypothesis.

H1:  For particular Zipcode (ex: 95501) in Profile Schema, I should able to get temperature in Weather Schema

CJA Validation: Create DV with required Dimensions and Metrics

 

Validation:

Under Profile Zipcode , you have Temperature (screenshot says Humidity, you could ignore it as well as value- I was playing around)

 

 

2 replies

Danny-Miller
Adobe Employee
Adobe Employee
August 15, 2022

@navin_kumar0601 I think the way you are trying to use Weather as an Event, while clever, isn't going to work.  You would need to either:

  1. Duplicate the Event to everyone in the zipcode, giving each profile their own event ... OR
    1. Use if you want to capture the weather for everybody, everyday
  2. Make Weather as a Lookup (by changing to Record behavior vs Time-Series).  
    1. Use if you want to capture the weather today and then overwrite it constantly

Edited:

Added some clarity on when to use which one.

August 15, 2022

Given weather is time-series based like today in zipcode (88888) has 80 F and tomorrow its 90F and so on. Why would it be record ?

 

Also, in weather i dont have any personal information.

navin_kumar0601AuthorAccepted solution
August 19, 2022

@navin_kumar0601 To be used on Profile, Time-Series is meant to define an event for an individual, i.e. you need to attach it to an identity of a Profile.  Thus, in the Time-Series you need a Person identity.  You have zipcode as the identity.

So, if you want to capture and use weather and apply it to each person, use option 1.

  1. Duplicate the Event to everyone in the zipcode, giving each profile their own event (and add in the Person identity)
    • Use if you want to capture the weather for each person, everyday

hi @danny-miller  @anil_umachigi @atulchavan , I made it work , keep Weather Schema as Event (and not record). The way i approached the problem was different.

Step1: Created Weather (xevent) as Class and Profile (record) as Class

Step 2:Created Weather Schema (xevent)and Profile Scheme (record)

Step 3: Weather Schema has Zipcode (identity) , also nms Zipcode (new namespace)

Step 4: Profile Schema has email (identity) , also nms EmailAddress (default email)

Step 5: Now , I establish relationship between Profile Schema with Weather Schema.

Validation steps:

For validation to check if its work or not , here is my hypothesis.

H1:  For particular Zipcode (ex: 95501) in Profile Schema, I should able to get temperature in Weather Schema

CJA Validation: Create DV with required Dimensions and Metrics

 

Validation:

Under Profile Zipcode , you have Temperature (screenshot says Humidity, you could ignore it as well as value- I was playing around)

 

 

AtulChavan
Community Advisor
Community Advisor
August 16, 2022

Hi @navin_kumar0601 ,
I assume you've created custom identity namespace for your zipcode. Which is a non people identifier type. All you need to do is enable your weather schema for profiling and you should be good. I could reproduce error without enabling for profile and got rid of that error the moment I enabled it for profiling. Please note don't forget to refresh window when you're done with changes. Let me know if this works

Before Enabling

After Enabling 


Edit : Adding schema and identity composition snapshots for your reference...

Identity setup 


Event Schema (Time-Series) i.e. weatherSchema


Record Schema 

 







AtulChavan
Community Advisor
Community Advisor
August 18, 2022

@navin_kumar0601 , did it work ?