Skip to main content
Level 2
February 4, 2021
Solved

MobileCore.collectPII doesn't reflect in the ACS dashboard

  • February 4, 2021
  • 14 replies
  • 4230 views

I run into an issue related with collectPII in my app. After initializing MobileCore and other extension, I am sending device id, and some other details with MobileCore.collectPII method.

collectPII(contextData = mapOf( "guid" to "123456", "deviceid" to "Device-ID Test" )) fun collectPII(contextData: Map<String?, String?>?) { MobileCore.collectPii(contextData) }


I see initialization of the event in my log as;

2021-02-04 13:31:24.565 15626-15802/com.example.debug V/AdobeExperienceSDK: EventBus(EventHub) - Processing event #2: { class: Event, name: CollectPII, eventNumber: 2, uniqueIdentifier: b083364f-77b5-43fc-bb1b-3b97e66ad10b, source: com.adobe.eventsource.requestcontent, type: com.adobe.eventtype.generic.pii, pairId: null, responsePairId: 5e499529-d1e3-4d09-bb61-b00d8dcfb346, timestamp: 1612474284233, data: { "contextdata" : { "guid" : "123456", "deviceid" : "Device-ID Test" } } }


After this, I am seeing bunch of event rules verifications as (51 times actually);

2021-02-04 13:31:26.718 15626-15802/com.example.debug V/AdobeExperienceSDK: Rules Engine - Evaluating rule: { Condition: ((((~type EQUALS com.adobe.eventType.generic.pii) AND (~source EQUALS com.adobe.eventSource.requestContent)))) Consequences: [{ class: Event, name: Rules Event, eventNumber: 0, uniqueIdentifier: e06e0107-0d44-4ee3-99e6-68951c2b7d7a, source: com.adobe.eventsource.responsecontent, type: com.adobe.eventtype.rulesengine, pairId: null, responsePairId: dc4ba391-9900-4797-96c5-11ad831e2b33, timestamp: 1612474284928, data: { "triggeredconsequence" : { "id" : "RC80ea08e55bdd4a22953b81a1f167904c", "detail" : { "templatebody" : "{ "cusCustomerGuid": "{%contextdata.guid%}", "cusDeviceId": "{%contextdata.deviceID%}" }", "timeout" : 0, "contenttype" : "application/json", "templateurl" : "https://{%%camp-server%%}/rest/head/mobileAppV5/{%~state.com.adobe.module.configuration/campaign.pkey%}/subscriptions/{%~state.com.adobe.module.identity/mid%}" }, "type" : "pii" } } }] } for event number: 51


and finally for the final event, I see this log;

2021-02-04 13:31:26.718 15626-15802/com.example.debug V/AdobeExperienceSDK: EventHub(AMSEventHub) - Event (c97c33d0-645a-475d-9b85-026472034a1c) #51 (IDENTITY_RESPONSE_CONTENT_ONE_TIME) resulted in 0 consequence events. Time in rules was 1 milliseconds. 2021-02-04 13:31:26.718 15626-15802/com.example.debug V/AdobeExperienceSDK: EventBus(EventHub) - Processing event #51: { class: Event, name: IDENTITY_RESPONSE_CONTENT_ONE_TIME, eventNumber: 51, uniqueIdentifier: c97c33d0-645a-475d-9b85-026472034a1c, source: com.adobe.eventsource.responseidentity, type: com.adobe.eventtype.identity, pairId: 7767fb9d-49af-41bd-a6ae-ce3488fc81ab, responsePairId: db0a4063-803b-4299-9dd4-01a839b0d73b, timestamp: 1612474286716, data: { "lastsync" : 1612474285, "blob" : "j8Odv6LonN4r3an7LhD3WZrU1bUpAkFkkiY1ncBR96t2PTI", "locationhint" : "9", "mid" : "40923269859568035417369007329521706900", "pushidentifier" : "fCZhlnJA2Qw:APA91bE2VbJtuHql5kOnsIKdlMVa0RTqtZ7AW_i7ontPpVjWJQUZdUaJPITGcSHlj92V1Q4kNdcB1AmvYuPoPl8P-DTH1Zvmh1r3X17OBAHQLCjvIGppLmZtcHCX3bpSsAvJR6DmnvHa" } }


However, I still don't see anything in the portal. I have set filter/parameter with the same name of "guid" and "deviceid" in ACS, I am getting registration token and  experience cloud id and target platform etc but not the collect pii details.

Thanks! 

. 

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 ShivamTo

Hi @mcece01 

Did you see any networking error in the Log cat?

Could you verify in logs that a successful network connection is made with payload containing cusCustomerGuid and cusDeviceId?

14 replies

ShivamToAdobe EmployeeAccepted solution
Adobe Employee
February 5, 2021

Hi @mcece01 

Did you see any networking error in the Log cat?

Could you verify in logs that a successful network connection is made with payload containing cusCustomerGuid and cusDeviceId?

mcece01Author
Level 2
February 5, 2021
Hi, thanks for answering, and sorry mistakenly accepted this is a solution.
Adobe Employee
February 5, 2021

Hi @mcece01 

 

In the logs that you have shared, the {%%camp-server%%} key is not expanded in templateurl. Please see below.

 

"templateurl" : "https://{%%camp-server%%}/rest/head/mobileAppV5/{%~state.com.adobe.module.configuration/campaign.pkey%}/subscriptions/{%~state.com.adobe.module.identity/mid%}"

 Could you please verify that you have added camp-server data element in launch.

 

This article explains how to add camp-server data element.
https://experienceleague.adobe.com/docs/campaign-standard/using/administrating/configuring-mobile/configuring-rules-launch.html?lang=en#administrating