![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
'Unknown identifier' when using stored template.
This works:
Code:
program: columnupdate_kobopath() Code:
program: if $#kobopath == '' then columnupdate_kobopath() else $#kobopath fi (context: run the template only if text column #kobopath is empty, otherwise keep what's already in there). This error happens Code:
TEMPLATE_ERROR: Interpreter: Unknown identifier 'columnupdate_kobopath' - line number 6 Last edited by ownedbycats; 01-31-2022 at 09:09 PM. |
![]() |
![]() |
![]() |
#2 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I figured it out. I had this bit in columnupdate_kobopath. I'd had it commented out for a bit but at some point I'd inadvertedly uncommented it.
Code:
## Returns blank for paperbooks ## Not needed since run on demand elif $formats == 'PAPERBOOK' then '' Last edited by ownedbycats; 01-31-2022 at 09:20 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template: Specifying that an identifier does not exist | ownedbycats | Library Management | 7 | 03-31-2021 08:46 PM |
Importing Books-- often Unknown by Unknown | MarjaE | Library Management | 4 | 02-10-2019 06:17 PM |
How to produce author_sort using a template but only if it is not "Unknown"? | geras | Library Management | 0 | 05-17-2018 06:21 PM |
How would one create an identifier template? | Sidetrack | Library Management | 0 | 06-06-2014 01:38 AM |
Template error value:unknown field null | sfuller | Calibre | 4 | 06-13-2011 03:02 PM |