Skip to main content
Question

about ListBreaker

  • February 27, 2019
  • 5 replies
  • 22 views

Forum|alt.badge.img

Hi folks

I've tried using ListBreaker to transform list indexes into attributes,

it does exactly what I am searching to do

my reader is a JSON file, depending to the file used, the workspace begins then stays in pause,

without giving result

i join the data and workspace

I use FME 2019 last build 19214 64b

regards

5 replies

takashi
Evangelist
  • February 27, 2019

I looked at the definition of the ListBreaker and found there is a defect that the loop would repeat infinitely if the specified list didn't exist. In your data, the 196th feature doesn't have the "mere{}" list.

@Mark2AtSafe, could you please check the implementation of the custom transformer?


mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • February 27, 2019

Thanks for checking that out Takashi. Yes, I didn't have a test in there for an empty or missing list. I've added something in there that will output the features as rejected in that case. The new version is on the hub and it should work OK for you now, @pascalmortz


takashi
Evangelist
  • February 28, 2019
mark2atsafe wrote:

Thanks for checking that out Takashi. Yes, I didn't have a test in there for an empty or missing list. I've added something in there that will output the features as rejected in that case. The new version is on the hub and it should work OK for you now, @pascalmortz

Hi @Mark2AtSafe, thanks for updating the transformer.

I sometimes use the BulkAttributeRenamer (Regular Expression Replace) to convert list elements to regular attributes whose names are suffixed by the original index. The method definitely works in FME 2018 and earlier, but I noticed that it doesn't work with FME 2019 beta (build 19215).

This screenshot illustrates the issue that appeared on FME 2019 beta. Is it an intentional change or an unexpected regression to be fixed?


Forum|alt.badge.img
  • Author
  • February 28, 2019

Thanx for all

I test now.


Forum|alt.badge.img
  • Author
  • February 28, 2019
mark2atsafe wrote:

Thanks for checking that out Takashi. Yes, I didn't have a test in there for an empty or missing list. I've added something in there that will output the features as rejected in that case. The new version is on the hub and it should work OK for you now, @pascalmortz

Ok It works properly, thanx a lot


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings