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.

Profile: that
About
User Name: that
Forum Rank: Advanced Member
Real Name:
Location AT
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Friday, June 16, 2006
Last Visit: Wednesday, March 19, 2025 3:45:54 PM
Number of Posts: 500
[2.74% of all post / 0.07 posts per day]
Avatar
Last 10 Posts
Topic: Coalesce function needed
Posted: Wednesday, March 19, 2025 3:27:45 PM
I cannot identify anything in your image, but let's imagine that your SQL queries produce a string each. In that case, you could create a variable component and use "duplicate input" to create an input for the result each SQL statement. To get only the first value, use the "first-items" function on the output of the variable component. That should do something very similar to the COALESCE function.
Topic: Splitting records with multiple values ​​in MS Excel.
Posted: Monday, December 9, 2024 12:12:55 PM
RobPastoor wrote:
As far as I know, I only have one record/line in my MS Excel target file for each record/line that I want to map from my source file.


It only depends on what you connect to the target "Rows" node.
The most important basic rule of MapForce is: a connection will create one target item for each source item. So if you connect the output of the tokenize function to target "Rows", you will get one row per token.

RobPastoor wrote:
I don't see how I can use an option such as maxOccures="Unbounded" in MS Excel, such as with an XSD/XML target file.


The "Rows" node in an Excel component is always unbounded.

RobPastoor wrote:
Or can you, if it's not too much to ask, create a simple mapping that includes this?


I did a quick mapping with CSV instead of Excel, and without multiplying the position.
Topic: Splitting records with multiple values ​​in MS Excel.
Posted: Thursday, December 5, 2024 1:51:29 PM
You need a tokenize function on your related articles column to get the correct number of items that you can map to output rows.
For the position number, the "position" function looks promising (on the output of "tokenize"), you just have to multiply its output by 10.
Topic: JSON schema item rest
Posted: Thursday, December 5, 2024 1:27:15 PM
Without knowing your schema, this can be because the default version of JSON Schema has changed in that release, or that release had a bug, or that release fixed a bug.

Release 2021 is over 4 years old - what does the current version do?
Topic: Excel file without metadata
Posted: Thursday, December 5, 2024 12:27:27 PM
Since MapForce does not use that metadata field for anything, it is very unlikely to be the actual reason for your problem. Do you get any error messages or just no data?

XLSX files are actually ZIP files, so there are likely more differences inside. If you send such a non-working XLSX file to Altova Support, I am sure they can figure out why MapForce does not like it.
Topic: Problem with splitting ETIM XML file.
Posted: Tuesday, November 12, 2024 11:59:26 AM
You originally said "I expect a combination of 1 FeatureCode, 1 FeatureName and 1 UnitCode", which is what you are getting now.

How do you define "do not belong together"? These combinations of FeatureCode and UnitCode actually seem to appear in your input file.
Topic: Problem with splitting ETIM XML file.
Posted: Monday, November 11, 2024 1:12:20 PM
Looks like you are missing a Join component to join corresponding features and units together.
Topic: How to deal with a large mapping window?
Posted: Thursday, September 26, 2024 3:27:55 PM
The larger your window, the less you have to scroll.

If your mapping is too large and you have to scroll a lot:

* Extract logical parts of your mapping to user-defined functions.
* Get a big screen (30" 4K or bigger) - working with big diagrams of any kind on a small screen is a productivity killer.
* Zoom out to see more of your mapping.
* Temporarily move components closer together if you have to connect multiple nodes between them.
Topic: Expand All / Collapse All
Posted: Thursday, August 22, 2024 11:32:19 AM
dnieuwkamp wrote:
Is there a button or hotkey to Expand or Collapse all the fields within a component?


The same as in all tree controls on Windows: "*" on the keypad expands descendants of the currently selected node recursively. In addition, MapForce supports "/" on the keypad to collapse recursively.
Topic: Mapping unbounded XML-element, and only the last one is in output file.
Posted: Wednesday, July 10, 2024 11:05:10 AM
RobPastoor wrote:

The unbounded elements should be concatenated, separated by a slash.

How can I solve this?


Insert a string-join component in the right place.

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