IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Newbie: Mapping XML to EDIFACT Options · View
JohanIb
Posted: Wednesday, April 29, 2020 1:13:39 PM
Rank: Newbie

Joined: 4/28/2020
Posts: 2
Location: The Netherlands
Hi there,

I'm trying out mapforce and building a mapping from XML to EDIFACT. I think I configured it the way I should but I still get warnings and errors.
- Input value of function core.format-date: There is no simple content available, thus the function will never be called. (Both input paths are filled so why content is not available it beats me)
- F1082: The target expects content, but no content is available. (I mapped this field, there should be data)
- Path: Interchange(1 of 1..*) / Group(1 of 1..*) / Message_ORDERS(1 of 1..*) / SG29(1 of 0..200000) / PIA(0 of 0..25)

I'm looking for examples on how to do this, but I can't find anything. Is there anyone who can help me? Maybe you have an example for me I can have a look at or somebody is maybe willing to look at my mapping?

I would be enormous grateful!!
Best wishes,
Johan
diggers
Posted: Sunday, May 3, 2020 3:57:27 PM
Rank: Member

Joined: 8/26/2017
Posts: 11
Location: UK
Can you post the source and target files, or better still attached your mfd including the source xml file.
that
Posted: Monday, May 4, 2020 10:25:07 AM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 487
Location: AT
Usually such messages as "no content is available" are triggered by mapping from some XML element that doesn't have simple content (such as an element that can only contain child elements, or and element with empty content) to some target that expects simple content, e.g. a string.

So I recommend checking your source XML schema - maybe you auto-generated it from an XML instance file that had empty content in that field.
JohanIb
Posted: Tuesday, May 12, 2020 9:44:07 AM
Rank: Newbie

Joined: 4/28/2020
Posts: 2
Location: The Netherlands
that wrote:
Usually such messages as "no content is available" are triggered by mapping from some XML element that doesn't have simple content (such as an element that can only contain child elements, or and element with empty content) to some target that expects simple content, e.g. a string.

So I recommend checking your source XML schema - maybe you auto-generated it from an XML instance file that had empty content in that field.


Yes thank you, this was exactly the case! I thought the XML file would be leading, but in fact the XSD is leading.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.