Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM Adaptive Forms - Analytics Integration/Report

Avatar

Former Community Member

Hi all

I'm working with AEM Form, i have some forms created. Now i'm trying to integrate them with Analytics. The integration is working, I am getting the data on my SiteCatalyst Report Suite and i can display them on my graphics.

The problem is with the Summary Report into AEM. When i select the form and i clicked on Analytics Report, i get "No analytics data found for the selected date range."

[img]2015-06-24_15-38-36.png[/img]

and searching on my error.log i found this exception:

com.adobe.aem.formsndocuments.analytics.report.util.ReportingUtils JSONException while creatiing the result object
org.apache.sling.commons.json.JSONException: JSONObject["globalData"] not found.
 at org.apache.sling.commons.json.JSONObject.get(JSONObject.java:372)
 at org.apache.sling.commons.json.JSONObject.getJSONObject(JSONObject.java:466)
 at com.adobe.aem.formsndocuments.analytics.report.util.ReportingUtils.replaceHashWithSom(ReportingUtils.java:183)
 at com.adobe.aem.formsndocuments.analytics.report.servlet.AnalyticsReportingServlet.getReportJson(AnalyticsReportingServlet.java:171)
 at com.adobe.aem.formsndocuments.analytics.report.servlet.AnalyticsReportingServlet.doPost(AnalyticsReportingServlet.java:86)

org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.NullPointerException: null
 at com.adobe.aem.formsndocuments.analytics.report.servlet.AnalyticsReportingServlet.getReportJson(AnalyticsReportingServlet.java:175)
 at com.adobe.aem.formsndocuments.analytics.report.servlet.AnalyticsReportingServlet.doPost(AnalyticsReportingServlet.java:86)
 at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:148)
 at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
 at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
 at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:533)
 at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
 at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
 at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)

I configured the "AEM Forms Analytics Configuration" (see attached image)

[img]2015-06-24_15-39-53.png[/img]

any idea?

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

raghav gupta wrote...

Are you still getting this error ? Is this Adaptive Form or Mobile Form ? Can you try after deleting analytics cached data i.e. deleting "analyticsdatanode" node ? It should be similar to this path - /content/dam/formsanddocuments/<formPath>/jcr:content/metadata/analyticsdatanode

 

YES!!! Is working, you saved me. 

One thing to add, i deleted the node on /content/dam/formsanddocuments/<formPath>/jcr:content/analyticsdatanode, into metadata the node analyticsdatanode doesn´t exist.

Thank you very much, raghav gupta

smiley

View solution in original post

5 Replies

Avatar

Level 1

Are you still getting this error ? Is this Adaptive Form or Mobile Form ? Can you try after deleting analytics cached data i.e. deleting "analyticsdatanode" node ? It should be similar to this path - /content/dam/formsanddocuments/<formPath>/jcr:content/metadata/analyticsdatanode

Avatar

Employee

Did you create follow the section  "Creating Cloud Service Framework" below from the doc https://helpx.adobe.com/aem-forms/6/configure-analytics-adaptive-forms.html 

Avatar

Former Community Member

Thanks!

Yes, i created the Analytics Configuration and the framework. And both are working because i'm getting the data on my SiteCatalyst Report Suite.

Avatar

Correct answer by
Former Community Member

raghav gupta wrote...

Are you still getting this error ? Is this Adaptive Form or Mobile Form ? Can you try after deleting analytics cached data i.e. deleting "analyticsdatanode" node ? It should be similar to this path - /content/dam/formsanddocuments/<formPath>/jcr:content/metadata/analyticsdatanode

 

YES!!! Is working, you saved me. 

One thing to add, i deleted the node on /content/dam/formsanddocuments/<formPath>/jcr:content/analyticsdatanode, into metadata the node analyticsdatanode doesn´t exist.

Thank you very much, raghav gupta

smiley

Avatar

Level 1

victor.toledo_dh wrote...

raghav gupta wrote...

Are you still getting this error ? Is this Adaptive Form or Mobile Form ? Can you try after deleting analytics cached data i.e. deleting "analyticsdatanode" node ? It should be similar to this path - /content/dam/formsanddocuments/<formPath>/jcr:content/metadata/analyticsdatanode

 

YES!!! Is working, you saved me. 

One thing to add, i deleted the node on /content/dam/formsanddocuments/<formPath>/jcr:content/analyticsdatanode, into metadata the node analyticsdatanode doesn´t exist.

Thank you very much, raghav gupta

smiley

 

Yes, you deleted the correct node. It was a typo error.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----