Skip to main content
Question

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

  • September 23, 2022
  • 8 replies
  • 43 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
  • September 24, 2022

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


JennaKAtSafe
Safer
Forum|alt.badge.img+7

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
  • September 27, 2022

Hello Jenna,

Seems to be an issue with 2022 Desktop and Server.

StringReplacer 


evieatsafe
Safer
  • Safer
  • September 29, 2022
herfried wrote:

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
  • 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
  • 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
  • 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

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.


Reply


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