|
|
#1 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,364
Karma: 79528341
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 10:09 PM. |
|
|
|
|
|
#2 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,364
Karma: 79528341
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 10:20 PM. |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Template: Specifying that an identifier does not exist | ownedbycats | Library Management | 7 | 03-31-2021 09:46 PM |
| Importing Books-- often Unknown by Unknown | MarjaE | Library Management | 4 | 02-10-2019 07:17 PM |
| How to produce author_sort using a template but only if it is not "Unknown"? | geras | Library Management | 0 | 05-17-2018 07:21 PM |
| How would one create an identifier template? | Sidetrack | Library Management | 0 | 06-06-2014 02:38 AM |
| Template error value:unknown field null | sfuller | Calibre | 4 | 06-13-2011 04:02 PM |