Content Fragment Model is not working for AEM 6.4 | Community
Skip to main content
Level 2
September 6, 2019
Solved

Content Fragment Model is not working for AEM 6.4

  • September 6, 2019
  • 3 replies
  • 2373 views

Hi Team

we recently migrated from 6.2 to 6.4 . Content Fragment Model is not working in the Production Environment. but It's working fine on lower Environments (Dev & UAT)

I'm seeing below Error. in this path /libs/granite/configurations/content/view.html/conf

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 user05162

This is a known issue and fixed in AEM 6.5

For now, you can overlay "/libs/dam/cfm/models/console/components/models/datasources/childdatasource/childdatasource.jsp"

Change line 159 from

String sql = "SELECT * FROM [cq:Page] AS p WHERE p.[jcr:path] LIKE '"+pathExpression+"' ORDER BY [jcr:path]";

To

String sql = "SELECT * FROM [cq:Page] AS p WHERE ISDESCENDANTNODE(p,'/conf') AND p.[jcr:path] LIKE '"+pathExpression+"' ORDER BY [jcr:path]";

Also, increase the limit reads to a higher number from [1] till you stop getting the warning

[1] http://<host>:<port>/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Dsettings%2Ctype %3DQueryEngineSettings

3 replies

Umesh_Sondhi
Level 4
September 6, 2019

hi,

You can get some idea from this thread Not Showing Content Fragment Models in AEM 6.4

thanks

Adobe Employee
September 6, 2019

Try to change the limit reads to a higher number from [1] till you stop getting the warning

[1] http://<host>:<port>/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Dsettings%2Ctype%3DQueryEngineSettings

user05162Adobe EmployeeAccepted solution
Adobe Employee
September 15, 2019

This is a known issue and fixed in AEM 6.5

For now, you can overlay "/libs/dam/cfm/models/console/components/models/datasources/childdatasource/childdatasource.jsp"

Change line 159 from

String sql = "SELECT * FROM [cq:Page] AS p WHERE p.[jcr:path] LIKE '"+pathExpression+"' ORDER BY [jcr:path]";

To

String sql = "SELECT * FROM [cq:Page] AS p WHERE ISDESCENDANTNODE(p,'/conf') AND p.[jcr:path] LIKE '"+pathExpression+"' ORDER BY [jcr:path]";

Also, increase the limit reads to a higher number from [1] till you stop getting the warning

[1] http://<host>:<port>/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Dsettings%2Ctype %3DQueryEngineSettings