cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Hybris: Sitemap.xml is limiting to certain number of urls

ashishakulkarni
Explorer
1,999

Hi,

I was trying to run sitemap generator job, the job runs fine producing sitemap.xml with urls for Products.

But, I am able to see only about 1000 product urls in the file, however the catalog has about 100K products.

Also, the configurations to limit number of sitemap urls is 50K, still only 1K product urls are written to file.

Any configuration/properties to check?

Thanks,

Ashish Kulkarni.

Accepted Solutions (0)

Answers (4)

Answers (4)

sapienthybris
Explorer

Hi ,

I am using V1905 and found that this property value overrides the value of the max row property which will be configured at the cronjob level.

It means,if you have a scenario

where URL to be populated is =2261 and properties are configured like this

directive.foreach.maxloops = 1024 and siteMapUrlLimitPerFile =5000

In this case the file is generating only 1024 lines as the directive.foreach.maxloops is configured with value 1024.So this scenario happens if the value of siteMapUrlLimitPerFile = 5000 which is > directive.foreach.maxloops = 1024.

If you have configured siteMapUrlLimitPerFile =1000 (which is <1024 ), in this case three files will be populated with two files having 1000 lines and one file having 261.

And this seem to be the OOTB behaviour.

tklostermannhf
Explorer

Thanks guys, was wasting a complete day thinking that a wrong product restriction handling is causing this. I think this should be documented as a hint in the site map configuration wiki page. Especially when you have a default max. limit of 50000 entries per page.

former_member661399
Discoverer

Not sure if you have found this solution yet but adding this here.

# limit the number of iterations in #for loops - 1024 should suffice for most scenarios: directive.foreach.maxloops = 1024

This property is in velocity.properties file. Change this to the limit you need.

0 Kudos

Hello Ashish,

Even am also facing the same issue. Did you find any solution for this.

Thanks,

madhuri