Explore product-specific spaces to ask questions, share insights, and learn best practices.
Recently active
Hi all, We have a requirement to show the cascading dropdown in AEM metadata UI editor. The dropdown values are exceed more than 15k+ values, same values are saved into node and showing it in UI which resulted slowness of metadata UI page. We are trying to reduce the slowness and improve the performance by adding the values in Json instead of node values. Can you provide any other suggestions to improve the performance if you faced earlier.
I have to do translation of AEM assets inside the AEM as cloud as service through global link connector. please guide me how it will done. I am new for translation process. Thanks in advance for your reply. Thanks
What is the best way to retire, remove, or expire tags on AEM DAM without majorly affecting the content that's associated with the retired tags?
Hi Team, Our AEM project test cases are Junit4 based. Recently we added Junit 5 dependency as well in POM.Line causing below exception (with JUNIT 4, It used to work perfectly fine)context.load().json("/empFile.json", "/emp");empFile.json:{"empID": "xx57jmf","empType": "regular","personalinfo": {"name": "ABC","geo": [{"id": "geo_456","coordinate": "xf73hj"},{"id": "geo_456","coordinate": "xf73hj"}],"education": [{"state": "Milan","duration":"4"}]}} Almost all test cases are throwing below error: org.apache.sling.jcr.contentparser.ParseException: Multivalue array must not contain maps/objects.
Hello,I extended and customized the properties of the dam mnt/overlay/dam/gui/content/assets/v2/foldersharewizard folder by inserting a new field -->Location CF .I am experiencing this problem: the data that appears in the new field is not saved.I simply extended under /apps the following path "dam/gui/content/assets/v2/foldersharewizard" and added my property in tab1 My content.xml : <?xml version="1.0" encoding="UTF-8"?><jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" jcr:primaryType="cq:Page"> <jcr:content jcr:primaryType="nt:unstructured" jcr:title="AEM Assets | Folder Properties" sling:resourceType="granite/ui/components/shell/propertiespage" backHref="${granite:concat(&quot;/asset
Hi Team, We have some pages, categorised based on tags, when we create a translation project for language copy those tags are not listed in created translation job card for the language. Number of tags are always 0 but I can add tags after opening the project so can someone guide me further to add referenced while creating the project. Thanks Umesh Thakur
Why are my uploaded transparent PNG assets being published to the CDN with a white background?
public class CanonicalURL extends WCMUsePojo {public LinkCreator linkCreatorUtil;public String path; @9944223public void activate() throws Exception {linkCreatorUtil = getSlingScriptHelper().getService(LinkCreator.class);path = get("path", String.class);if (path == null) {path = getCurrentPage().getPath();}}can some one help in writing junit test case for this?because mocking getSlingScriptHelper() is not working.lenient().when(wcmUsePojo.getSlingScriptHelper()).thenReturn(slingScriptHelper);lenient().when(slingScriptHelper.getService(LinkCreator.class)).thenReturn(linkCreator);
Hi, We had a requirement to listen for every modification of an asset and send the asset details to the client API. Since each modification generates multiple events, we added a map to check if the path already exists; if it does, the API should not be triggered. However, sometimes the map fails to update due to multiple threads running concurrently. private static final ConcurrentHashMap<String, Long> processedPaths = new ConcurrentHashMap<>(); For the event path(sling:members node change) - thread id:185/content/dam/projects/product-images/mixedmediasets/img-1/jcr:content/related/s7Set/sling:membersThe processedPaths map contains:{ /content/dam/projects/product-images/temporary-imageset-folder/img-2 = 1741863896578 } - ( old data- previous executed gtin) During the if condition check, it verifies whether the event path- img-1 exists in processedPaths and time is > or < 30sec.(Checking for path: /content/dam/projects/product-images/mixedmediasets/
In my website, I have a need to change the sling:resourceType for my homepage. I am introducing a new field to the homepage properties specifically. I have: Created a new component for my homepage under apps/mysite/components/pages/home-pageUpdated the sling:resourceType to point to this component for conf/mysite/settings/wcm/templates/home-page/initial and conf/mysite/settings/wcm/templates/home-page/structureUpdated the JCR directly in my local sandbox's homepage, and verified that everything works as expected However, in AEMaaCS, I cannot access the JCR and modify content there directly. I am noticing that even though the template is updated and deployed, the existing homepage is still leveraging the prior sling:resourceType. What is the best way to get the sling:resourceType updated in AEMaaCS without losing existing content?
Hi All, I am trying to create a translation job where the job gets created successfully but on trying to rename the job it usually keeps loading with 500 server error pointing to issue with granite.min.js. Also noticed console errors like DuplicateDefinitionError as below in coralUi3 when project is opened. Trying to rename the projectIf we scroll to bottom of the page with many jobs on the page we see DuplicateDefinitionError again.Try to rename the job when the scroll is in between the page rename works fine w/o any errors in console.so the issue is mostly on scrolling to the bottom page.Any suggestions to fix and what could have caused the issue?
Dear All, I have one scheduler called asset test in my AEM6.5SP22 environment. This scheduler runs at 8:30 AM, on every Monday. The scheduler scans through "/content/dam/asset zone" for all newly created assets, checks for missing metadata and sends notification email to the author who created the asset as shown below ********************** ASSET SCHEDULER IN AEM 6.5 ********************@Designate(ocd = AssetTest.Config.class) @Component(service = Runnable.class) public class AssetTest implements Runnable { @ObjectClassDefinition(name = "Test Asset Creation Notifier", description = "Cron-job with SQL statement to send emails to users who uploaded assets. Expensive Query not to be run during business hours.") public static @interface Config { @AttributeDefinition(name = "Cron-job expression", description = "Cron-job task scheduled to run every monday at 8:30 AM") String scheduler_expression() default "0 30 8 ? * MON *"; @AttributeDefinition(name = "Con
Hi Team, We have a custom process step, where based on logic we are starting the workflow/terminating the workflow. We are terminating the workflow by using the below line. wfsession.terminateWorkflow(item.getWorkflow()); This does terminate the workflow and safely completes whatever we need, but it throws an error in the backendjava.lang.IllegalStateException: Workflow is already finished. at com.adobe.granite.workflow.core.WorkflowSessionImpl.terminateWorkflow(WorkflowSessionImpl.java:546) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017] at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:198) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017] at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017] at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24] at org
I create a profile schema containing some attributes that are updated with new values using an external process. What I want to do is have the updates in a file (e.g. JSON) with the userID and the columns to update. When I tried this simple approach, the new data does load, but the rest of the profile attributes are no longer there. I was doing this using the Datasets UI to load more data. What is the best way to update profile data from the UI? API is ok as well, it is just harder to demonstrate.
Hi Guys , I jsut have two questions regarding sling dynamic include I will provide the steps i followed , please correct if anything is 1. Include the SDI as a dependency in the ui.apps pom.xml<!-- Sling dynamic include --><dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.dynamic-include</artifactId></dependency>2. Embed the SDI as a package for deployment in ui.apps pom.xml<embedded> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.dynamic-include</artifactId> <target>/apps/my-site/install</target></embedded>3. Include the SDI as a dependency in the parent pom.xml<!-- Sling dynamic include --> <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.dynamic-include</artifactId> <version>3.1.2</version> </dependency>4. create o OSGI config ;ui.conf
Hi Team, How to instatiate a servlet if runmode is dev or stage? If it's path based we can get the runmode from backend and pass it to the fe and in fe we can check if the runmode from be is dev we can use ajax call and call servlet by path, but if it's resourcetype based servlet how to instatiate servlet by resourcetype based on dev runmode.
Hi,I have a client specification I would like to ask for the best practice advice. So the requirement is that I am only allowed to create one Experience Event Schema (This schema captures both Transaction Data and the Login Data). In terms of ingesting the data, which way is recommened amongst the two:1. Create one single schema that captures both Login and Transaction data?2. Create two separate schema, one for storing Login Data,and one for storing Transaction data?Please advice onto which solution is the best practices, and both of these have any flaws and also any other alternatives would be greatly appreciated.Best regards,Sching
I am having a captcha functionality where I am using jquery captcha(https://github.com/honguangli/jquery-captcha/blob/master/js/jquery-captcha.js) functionality. Where I was loading those scripts using clientlibs. It is working properly in author env. I was getting the below error in publisher. I tried removing cache in browser and server. Restarted the server and invalidated the clientlibs. I was getting the same error. Any one can helpme to get some solution!
我将再次使用 datepicker 在对话框中配置时间。但是我使用了标头 applysTime: 打印出新的 Date (properties.applysTime 的getTime()),并且 “headerpapplysTime”: “2025-03-05T15:14:00.000Z” 比我配置的要长 6 小时。我的配置如下
Hi All, Has anyone done JUnit test execution in parallel mode in AEM Cloud? If yes, are any changes needed in Cloud Manager that we need to reach out to Adobe for? I have tried updating junit-platform.properties under /src/test/resources but could not see any improvement in deployment time. Please could someone advise. Thanks, Ram
Issue Overview I am working in AEM and need to hide the "Publish" button that appears when hovering over individual folders in a specific path. Currently, the button is displayed dynamically for each folder, and when the cursor is removed, it disappears automatically. I have tried using the granite:hide property, but it only applies to a single folder at a time. Since I have around 10 folders, I would like to know if there is a way to apply the granite:hide property globally so that it affects all folders instead of configuring it manually for each one. Please provide any other ways to solve the issue ??
Hi Team I am not able access the following repo URLs.Could you please help me. https://downloads.experiencecloud.adobe.com/content/maven/publichttps://repo.adobe.com/nexus/content/groups/public RegardsBishnu
Hi Team,We are using the below unpkg at customheaderlibs.html <script src="//unpkg.com/@ungap/custom-elements"></script> Problem Statement: The dependency is being delivered via UNPKG, a public CDN for npm packages. When it attempts to load and takes longer than expected, it affects the page load time for authors and publishers on the end website. However, if it fails to load, it does not impact the page load time. Any one faced this issue and how we can overcome and what is best way to deal this type of issue. Kindly suggest Thanks
I am facing below issue about property indexing.I have two property indexes (cqModel, cqTags )defined at "/content/dam/personal-site/oak:index". Interesting thing is if I move these property indexes to '/oak:index" default out of the box location, property indexes picked by query. But not when indexes defined at "/content/dam/personal-site/oak:index". content that needs indexing will be at /content/dam/personal-site/faqs folder. sample queries to try: select [jcr:path], [jcr:score], * from [dam:AssetContent] as a where [data/cq:model] = '/conf/pi/CF-Models/settings/dam/cfm/models/faq-model' and isdescendantnode(a, '/content/dam/pi/test-sreeni/faq2') select [jcr:path], [jcr:score], * from [dam:AssetContent] as a where [data/master/cq:tags] in('we-retail:gender', 'we-retail:activity') and isdescendantnode(a, '/content/dam/pi/test-sreeni/faq2') select [jcr:path], [jcr:score], * from [dam:AssetContent] as a where [data/cq:model] = '/conf/pi/CF-Mode
Getting the below issue on drop of any adaptive core form component in the AEM page parsys and unable to see the component on page:org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.apache.sling.scripting.sightly.SightlyException: Compilation errors in org/apache/sling/scripting/sightly/apps/core/fd/components/form/accordion/v1/accordion/accordion__002e__html.java: Line 50, column 2205 : com.adobe.cq.forms.core.components.models.form.Panel cannot be resolved to a type Line 51, column 2336 : com.adobe.cq.forms.core.components.models.form.FormStructureParser cannot be resolved to a type I have followed below documents for the Adaptive Core forms set up in local with the latest version in dependency:Setup AEM form on AEM as a cloud service | by Imran Khan | MediumHow to enable Adaptive Forms Core Components on AEM Forms as a Cloud Service
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.