Solved

IFS transformers issue

  • 21 September 2023
  • 2 replies
  • 136 views

Userlevel 1
Badge +2

We need to import XML file but we struggle with problems with every IFS prepared transformer.

  1. IFS_XML_TO_JSON

Here is the example input XML file (focus on the marked):

 

Transformer does not work for collections.
First line of collection works properly, but next lines have type changed to Integer.
As per IFS docs. we expect that all output datatypes for transformer should be text.

Here is the JSON output:

 

Does anyone resolved/worked-around this problem ?

 

  1. IFS_XML_TO_JSON_GENERIC

Here is the example input XML file:

 

This transformer also does not work for collections. First line of collection works properly, but next lines are wrongly parsed and type changed to Integer.

Here is the JSON output:

 

  1. We also tried transformer “MODEL_BASED_XML_TO_JSON” but it does not use subcollections at all (we tested on SalesMessageService.ReceiveCustomerOrder with subcollection “ExtCustOrdLines”)

 

Any hints are appreciated.

icon

Best answer by Krzysztof Ryszkowski 6 January 2024, 20:08

View original

2 replies

Userlevel 1
Badge +2

We managed to use our own xsl transformer together with MODEL_BASED_XML_TO_JSON transformer for action SalesMessageService.ReceiveCustomerOrder.

Input schema for MODEL_BASED_XML_TO_JSON in attached.

Issue with IFS_XML_TO_JSON GENERIC and IFS_XML_TO_JSON makes this two unusable for ReceiveCustomerOrder action.  

Userlevel 1
Badge +2

Issue solved with RU23R2

Reply