on 2019 Nov 18 5:01 AM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ashish,
Even am also facing the same issue. Did you find any solution for this.
Thanks,
madhuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.