Skip to main content
Question

StringReplacer - different behavior after update from FME Server 2021 to 2022

  • September 23, 2022
  • 8 replies
  • 57 views

Hi,

Ich use a String Replacer that cleans all values from "??".

Mode: Replace Text

Case Sensitive No

Text to replace ??

Replacement Text

(Replacement Text is empty as just I want to delete all ??)

 

This Workt fine in FME Server 2021

on FME Server 2022 I get an Error:

"StringReplacer_4 (StringReplacerFactory): Internal error: Failed to build ICU replace pattern. String was '"Große Mohreng. 9, 1020 ??, Österreich"', replacement pattern was '??' "

 

 

 

 

8 replies

  • Author
  • 10 replies
  • September 24, 2022

ist is not the '??' string but the 'Ö' character, that causes the error.


JennaKAtSafe
Safer
Forum|alt.badge.img+8
  • Safer
  • 192 replies
  • September 26, 2022

Hello @herfried​, could you share the log files/error message from FME Desktop? I would also suggest running the workspace on FME Desktop to see if the issue is to do with Desktop or Server.


  • Author
  • 10 replies
  • September 27, 2022

Hello Jenna,

Seems to be an issue with 2022 Desktop and Server.

StringReplacer 


evieatsafe
Safer
  • Safer
  • 295 replies
  • September 29, 2022

Hello Jenna,

Seems to be an issue with 2022 Desktop and Server.

StringReplacer 

Hi @herfried​ unfortunately, I am unable to reproduce your issue with the StringReplacer. Could you share your workspace?

Alternatively, if you want to simply make the values empty strings I may suggest the AttributeManager to set and replace the values of those attributes to empty strings.

Hope this helps,

Evie


  • Author
  • 10 replies
  • October 4, 2022

Workspace attached.

Workaround:

Input: 'Große ?? Gasse'

If I replace the 'ß' with 'SOME_STRING' than the replacement of '??' works fine.

 


bergstrand
Participant
Forum|alt.badge.img+1
  • Participant
  • 1 reply
  • November 9, 2022

I experience the same issue (build 22623). It is the "ß" character that causes the issue for me. As a workaround, I changed mode for the StringReplacer to "Replace Regular Expression".


Forum|alt.badge.img+2
  • 1891 replies
  • November 14, 2022

@bergstrand​ to workaround this issue you can either use regex using text to replace: \\?\\? or switch to Case Sensitive = No


setld_solutions
Contributor
Forum|alt.badge.img+8
  • Contributor
  • 27 replies
  • March 24, 2023

FME Desktop 2022.2.4 - Seems like replacing ( ) { } ? * with nothing on a big string like webpage body is also having issues. Small strings like page title work fine.

 

I don't believe 2022.0 had this issue.