underdue letter
We tested using the loa_underdue_letter script last year all ok. Introduced it a few months ago and just found out it's been failing. Only amendment made was with -q to name item types to include. Script run from the CRON. rep shows
Total loans processed : 0
Total loans output : 0
Total letters output : 0
Removed item types and ran for all sites all items and following error message
Undefined format "main::HEADER2_UDUE1" called at /users/report/wa/mis/loa_underd
ue_letter/select.pl line 69, chunk 22.
Which looks like an error in the select.pl which hasn't been changed. Any ideas anyone? Any help appreciated.
Bernadette
Bernadette Ryan
Electronic Services Support Manager
Learning Resources Centre
University of Glamorgan
e-mail:- bmryan@glam.ac.uk
tel:- 01443 482962



underdue letter
The error actually relates to the format.pl rather than select.pl directly.
The format.pl is made up of format areas defined with a label e.g. the start of one format block is
format HEADER2_UDUE1 =
The end of a format block is defined by a period as the first character of a row.
If this pattern is not followed you will get an error when the format block is called within the script. In this case it is called in the select.pl
In your case the problem is not with the HEADER2_UDUE1 but the block before in the format.pl, HEADER1. The period has been removed from this block.
It should be
format HEADER1 =
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressLine1
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressLine2
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressLine3
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressLine4
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressLine5
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressPostCode
@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<~
$LocationAddressPhoneNo
loansenq@glam.ac.uk
'@'
.
Thanks
Brian Crampton
Developer, Talis
Thanks Brian... Bernadette
Thanks Brian...
Bernadette