Solved

FME crashes with JSONTemplater


Userlevel 2
Badge +19

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:

0684Q00000ArBlcQAF.png

 

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:

0684Q00000ArC0NQAV.png

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:

0684Q00000ArBxUQAV.png

Does anyone know what could be the issue?

Thanks for any help provided!

icon

Best answer by trentatsafe 3 April 2020, 20:19

View original

4 replies

Badge +6

Hello @oscard,

Would you mind submitting a support case, we can definitely take a look to see why this is crashing.

 

If you can submit a case here, please: https://www.safe.com/support/report-a-problem/
Userlevel 2
Badge +19

Hello @oscard,

Would you mind submitting a support case, we can definitely take a look to see why this is crashing.

 

If you can submit a case here, please: https://www.safe.com/support/report-a-problem/

Thanks!

 

 

I have just submitted the case: C153474
Userlevel 2
Badge +19

It seems the new version of FME solves this issue according to the Change Log:

 

 

------------------------------ FME 2020.0.1.1 b20222 20200416 ------------------------------ 
JSONTemplater/XMLTemplater: Fixed crashes in some recursive template situations [FMEENGINE-63979] C153474

I will test as soon as I can!

Userlevel 2
Badge +19

It seems the new version of FME solves this issue according to the Change Log:

 

 

------------------------------ FME 2020.0.1.1 b20222 20200416 ------------------------------ 
JSONTemplater/XMLTemplater: Fixed crashes in some recursive template situations [FMEENGINE-63979] C153474

I will test as soon as I can!

I have just tested the new version and this issue is fixed!

 

 

Thanks!

Reply