Regarding Acs common's list | Community
Skip to main content
neeraj_24412
Level 4
March 24, 2023

Regarding Acs common's list

  • March 24, 2023
  • 5 replies
  • 2240 views

Hi all,
I've created a list of countries using the acs commons , It's working on the author instance but not able to access this list on publish instance



Author Instance

 

Publish Instance

 

 

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

5 replies

Himanshu_Jain
Community Advisor
Community Advisor
March 24, 2023

Is this replicated to publish instance?

Himanshu Jain
neeraj_24412
Level 4
March 24, 2023

Yes @himanshu_jain 

 

Saju-Sam
March 24, 2023

Can you try using below snippet provided in below page using Pagemanger API with Generic list object and iterate the key and value respectively:
https://adobe-consulting-services.github.io/acs-aem-commons/features/generic-lists/index.html

 

 

neeraj_24412
Level 4
March 29, 2023

No luck,Same issue after using generic api

Manu_Mathew_
Community Advisor
Community Advisor
March 25, 2023

@neeraj_24412 Can you check the logs on the publisher, could be a permission-related issue for the user.

neeraj_24412
Level 4
March 27, 2023

No errors in log

 

AMANATH_ULLAH
Community Advisor
Community Advisor
March 25, 2023

@neeraj_24412 

From the code snipped attached, you are currently using resource resolver with anonymous user permissions.

Create a service user having permissions to generic lists and use the same service user to get resource resolver

Amanath Ullah
neeraj_24412
Level 4
March 29, 2023

But I am accessing publish instance from admin,I think permission isn't the issue here.

DEBAL_DAS
March 25, 2023

Earlier I used the similar approach as defined at Solved: Re: How can we populate a generic list in form of ... - Adobe Experience League Community - 462316 and it worked for me.

 

Again, I have tested the same on publish instance and I am able to populate list of Indian cities. 

 

I saw you have mentioned you have replicated both acs commons package and country list.

neeraj_24412
Level 4
March 27, 2023

Yes @debal_das 

neeraj_24412
Level 4
March 28, 2023

Hi @debal_das ,
Any other input on this?