XPATH Query for large dam:Assets | Community
Skip to main content
Level 2
October 16, 2015
Solved

XPATH Query for large dam:Assets

  • October 16, 2015
  • 1 reply
  • 959 views

I am trying to find assets larger than "XX" bytes in the repository using an XPATH query

Found the equality operation to work in my xpath query

/jcr:root/<folder to be looked in>/element(*, dam:Asset)[(jcr:content/metadata/@dam:size)=('2048')]

 

But when I use the operators for > or <, the query fails to return results although I know there are several such assets in my repository.Is the property having a Long datatype being read as a String? I tried applying 

/jcr:root/<folder to be looked in>/element(*, dam:Asset)[(jcr:content/metadata/@dam:size)>xs:Long('2048')]

but this doesn't work either. Any suggestions

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 Sham_HC

To retrieve the actual size of a DAM need to use https://forums.adobe.com/message/5016043

You would have to write a script to do this. The script would have to traverse through all the assets under folder and calculate the size of each asset. Look at OOB http://localhost:4502/etc/reports/diskusage.html

With said above Still would you like to proceed with depending on  dam:size?

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

To retrieve the actual size of a DAM need to use https://forums.adobe.com/message/5016043

You would have to write a script to do this. The script would have to traverse through all the assets under folder and calculate the size of each asset. Look at OOB http://localhost:4502/etc/reports/diskusage.html

With said above Still would you like to proceed with depending on  dam:size?