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)
error using iwpt_compile
kellyrmilligan
I am generating some files in an external task in my workflow. The script portion is below
my $tpl = "/iwmnt/default/main/Med_Policies/WORKAREA/Policies/templatedata/index_pages/$dir/presentation/index.tpl";
my $indexDcr = "/iwmnt/default/main/Med_Policies/WORKAREA/Policies/templatedata/index_pages/$dir/data/index";
my $ifile = "/iwmnt/default/main/Med_Policies/WORKAREA/Policies/medpolicies_il/$dir/index.htm";
logthis ("The PT is :$tpl\n");
logthis ("The DCR is : $indexDcr\n");
logthis ("The File to be generated is: $ifile\n");
### Now generate the HTM file.
my $cmd2 = "$iwhome/bin/iwpt_compile.ipl -pt $tpl -iw_pt-dcr $indexDcr -iw_include-location /iwmnt/default/main/Med_Policies/Policies/medpolicies_il/$dir -ofile $ifile";
&cmd($cmd2);
## Now set the extended attributes for the gen'd file.
my $resultindex = setTemplatingEAs(File=>$ifile,DCR=>$indexDcr,Type=>$category,PT=>$tpl);
my $jobfile = $ifile;
$jobfile =~ s|^$workdir/(.*)$|$1|;
$task->AddFile($jobfile,"Attached Accordingly\n");
logthis is a little sub routine that spits stuff to a log, where I receive the following:
<ERROR>
In 'docroot' mode, -iw_include-location <path> must be used
</ERROR>
/usr/iw-home/bin/iwextattr -s "TeamSite/Templating/PrimaryDCR=index" "/iwmnt/def
ault/main/Med_Policies/WORKAREA/Policies/medpolicies_il/administrative/index.htm
":
ERROR:02005: Error locating /iwmnt/default/main/Med_Policies/WORKAREA/Policies/m
edpolicies_il/administrative/index.htm
/usr/iw-home/bin/iwextattr -s "TeamSite/Templating/PrimaryDocumentType=policies/
administrative" "/iwmnt/default/main/Med_Policies/WORKAREA/Policies/medpolicies_
il/administrative/index.htm":
ERROR:02005: Error locating /iwmnt/default/main/Med_Policies/WORKAREA/Policies/m
edpolicies_il/administrative/index.htm
/usr/iw-home/bin/iwextattr -s "TeamSite/Templating/PrimaryPT=index.tpl" "/iwmnt/
default/main/Med_Policies/WORKAREA/Policies/medpolicies_il/administrative/index.
htm":
ERROR:02005: Error locating /iwmnt/default/main/Med_Policies/WORKAREA/Policies/m
edpolicies_il/administrative/index.htm
When I manually generate this file, it appears to work. and when there already is an index file, and I run the workflow, I don't get the error locating etc... stuff.
Any ideas?
Find more posts tagged with
Comments
james1
One suggestion that has been repeated in these forums many times is: give the "iwextattr" CLT *vpaths*, not file system paths, e.g. "/default/main/..." instead of "/iwmnt/default/main/...".
-- James
--
James H Koh
Interwoven Engineering