Good morning.
I've been facing all morning a FME crash that I do not understand. So far I have tested my workspace with two version: FME 2018.1 and FME 2020.0 both 32-bits. The process fails with both of them.
My source data is a Personal Database (MDB) without spatial information. In one table I have data about "group layers" and in other about "layers".
A group can contain layers and other groups. I must build a JSON with that info.
To build the JSON with the groups, I have used the following JSONTempalter:
ROOT contains:
{
"version": "1",
"tipo": "3",
"servicios" : [
fme:process-features("GRUPO")
]
}
GRUPO contains:
{
"Nombre_ES": fme:get-attribute("NOMBRE_ES"),
"Nombre_EN": fme:get-attribute("NOMBRE_EN"),
"grupos" : [
fme:process-features("SUBGRUPO", "PARENTID", fme:get-attribute("ID"))
]
}
And SUBGRUPO contains:
{
"Nombre_ES": fme:get-attribute("NOMBRE_ES"),
"Nombre_EN": fme:get-attribute("NOMBRE_EN"),
"grupos" : [
fme:process-features("SUBGRUPO", "PARENTID", fme:get-attribute("ID"))
]
}
That works fine and I get a JSON with the tree of groups and subgroups.
Now I want to add the layers in each group, so I have changed the templates as follows.
GRUPO:
{
"Nombre_ES": fme:get-attribute("NOMBRE_ES"),
"Nombre_EN": fme:get-attribute("NOMBRE_EN"),
"grupos" : [
fme:process-features("SUBGRUPO", "PARENTID", fme:get-attribute("ID"))
],
"capas" : [
fme:process-features("SUBCAPA", "PARENTID", fme:get-attribute("ID"))
]
}
SUBGRUPO:
{
"Nombre_ES": fme:get-attribute("NOMBRE_ES"),
"Nombre_EN": fme:get-attribute("NOMBRE_EN"),
"grupos" : [
fme:process-features("SUBGRUPO", "PARENTID", fme:get-attribute("ID"))
],
"capas" : [
fme:process-features("SUBCAPA", "PARENTID", fme:get-attribute("ID"))
]
}
And I have created a new subtemplate called SUBCAPA:
{
"Nombre_ES": fme:get-attribute("NOMBRE_ES"),
"Nombre_EN": fme:get-attribute("NOMBRE_EN"),
"Tipo" : fme:get-attribute("TIPO")
}
Whenever I run that, FME crashes with this error:
Even though that message appears, FME doesn't close. But the LOG doesn't have any kind of further information about the error. Here the last lines:
2020-04-03 11:04:49| 1.6| 0.0|STATS |Tester_2_PASSED Feature Counter -1 18(TeeFactory): Cloned 179 input feature(s) into 179 output feature(s)
2020-04-03 11:04:49| 1.6| 0.0|STATS |Tester_2_FAILED Feature Counter -1 2147680271(TeeFactory): Cloned 37 input feature(s) into 0 output feature(s)
2020-04-03 11:04:49| 1.6| 0.0|STATS |JSONTemplater_4_GRUPO_INPUT_FACTORY(TeeFactory): Cloned 15 input feature(s) into 15 output feature(s)
2020-04-03 11:04:49| 1.6| 0.0|STATS |JSONTemplater_4_SUBGRUPO_INPUT_FACTORY(TeeFactory): Cloned 56 input feature(s) into 56 output feature(s)
2020-04-03 11:04:49| 1.6| 0.0|STATS |JSONTemplater_4_SUBCAPA_INPUT_FACTORY(TeeFactory): Cloned 179 input feature(s) into 179 output feature(s)
2020-04-03 11:04:49| 1.6| 0.0|INFORM|JSONTemplater_4(XMLTemplaterFactory): All features received
Error running translation.
My workspace draft looks like this:
Does anyone know what could be the issue?
Thanks for any help provided!
Best answer by trentatsafe
View original