Hi @Strömberg Johannes ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
Logic Apps is correctly inserting the EDIFACT release indicator (UNA4, your ?) before every character that your agreement declares as a separator (in your case you configured the repetition separator UNA5 as a whitespace). Because you told the encoder that the space is a separator, the encoder escapes spaces in data by prefixing them with the release indicator — which is exactly the All? Ok.? Status? is? green you see.
Please try below and share your findings.
- Don’t use whitespace as the repetition separator (UNA5).
Reason: UNA5 is the repetition separator — if it’s set to a space, any space in a free-text data element is treated as a repetition separator and therefore must be escaped. Remove the whitespace value or choose a non-conflicting character (or leave UNA5 unset) so ordinary spaces are not treated as separators. - Only generate a UNA segment when you need non-standard separators. The docs say to use the UNA segment only if your interchange uses non-standard separator characters; if you don’t need a custom repetition separator, don’t set it / don’t apply UNA. This avoids making space a special character.
- How to change it in the portal (where to click — per docs):
- Open your Integration Account → Agreements → edit the relevant agreement.
- Under the agreement’s Send / Character Sets and Separators section, change the UNA/Repetition Separator (UNA5) — either clear it (no char) or set a safe single character that will not appear in free-text. Save the agreement.
- Test using the EDIFACT encode action (after changing agreement): use the Encode to EDIFACT message by agreement name action in your Logic App and verify output. The EDIFACT connector/encode action is documented in the Logic Apps EDIFACT guide.
If the trading partner requires a space as repetition separator
If the partner actually insists on a space as the repetition separator, you have two unpleasant choices (both non-standard and partner-specific):
- Pre-escape or transform free-text content so it does not contain raw spaces (ugly and likely unacceptable), or
- Agree with the partner to use a different repetition separator (recommended) so free text does not need escaping.