Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Setting EAs on new files created with iw_ostream
backback
TeamSite 6.7.2 SP2, Win2003, using FormsPub.
I'm generating a bunch of HTML files from a single template and need to set some EAs on those HTML files.
The issue I'm running into is that when the HTML files are initially generated with iw_ostream, the EAs are not being set.
The error in iwutild_cmdout.log is "ERROR:02006: Error locating Y:\default\main\<path_to_file>". If I generate a new set of 8 HTML files, the EAs are all blank, if I click Generate on the DCT immediately after the first generation, the EAs ARE set (and no errors appear in the log). So as far as I can see, that rules out permissions or anything like that.
I thought that maybe iw_ostream had not finished creating the HTML files when iwextattr was trying to set the EAs, which would seem to make sense given the above error message.
So I removed the call to set the EAs from the loop that generates the HTML files and put it in its own loop after the iw_ostream loop. No Joy. So I thought I'd give it a bit more time by putting a sleep statement in the EA loop immediately before setting the EAs, still no joy and I've tried giving it up to 30 seconds.
I can post code, but as the template works if the pages are generated a second time, I'm guessing that this is something I'm not understanding about iw_ostream and not a problem with the code per se.
Any ideas would be greatly appreciated.
Thanks.
Find more posts tagged with
Comments
jbonifaci
What happens when you run the iwextattr command from the command line (not the command you think it is running, but the one you are logging so that you have the exact command your code is trying to execute)?
~Jeff
backback
Thank you Jeff!! You've given me the push I needed!
Rather than doing the simple thing and using iwpt_get_dcr_name() to get the info I was after, I was foolishly bending over backwards to get the DCR name with iwextattr... This is the first serious template development I've done for around 30 months - it might be starting to tell.