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: jalfano
About
User Name: jalfano
Forum Rank: Member
Real Name:
Location NY
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Tuesday, October 5, 2010
Last Visit: Thursday, April 26, 2018 11:35:41 AM
Number of Posts: 15
[0.08% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Vertical Tab Filter
Posted: Thursday, March 17, 2011 4:04:18 PM
I have another issue with vertical tabs, this time instead of tokenizing on them I want to just flat out replace them with a space character. I am trying to use Replace or Translate and using \x0B as the string to replace but it doesn't seem to be working.

Mapforce seems to be translating this value into  when it goes into the XML file. Later on the next step that XML file's values go into another flat file and this crashes Mapforce.

Can someone tell me how I can filter out the vertical tab from the original flat file?

Topic: Tokenize special characters
Posted: Thursday, March 17, 2011 3:36:21 PM
Island,

Thank you for that example. I actually found another way to do it too so I'll share in case anyone else would like to know.

I was able to use a tokenize-regexp function with \x0B as the string constant input to the pattern. This is the hex code for vertical tab. I then had to send that information to a separate XML file.

Either works.

Thank you!
Topic: Tokenize special characters
Posted: Wednesday, March 16, 2011 6:32:16 PM
I have a field that contains single characters delimited by the Vertical Tab character (hex 0B). What is the best way to parse this data out?

Examples would be:

W
W(vt)B
W(vt)B(vt)I

This is flat file data for a race field that will be split out into multiple races per record.

Thank you
Topic: Merge/Split files using Mapforce
Posted: Thursday, December 2, 2010 8:54:57 PM
I have two flat files (a contact file and an address file) and I need to merge data from the contact and address file into one flat file using the contact's ID field which exists in both files.

I looked at the MergeMultipleFiles.mfd and MergeMultipleFiles_List.mfd and I don't think those solve my problem.

The only way I was thinking I could do this is to create an intermediate XML file with a child element for the addresses and do a node filter by matching the contact ID from both files and filtering the rows of the address file to the child address element in the XML file. In this case it's a 1:1 relationship so once that's done I could map the data from the XML file back out to the original destination flat file.

Does that sound right? Any better suggestions?

Thanks,

John
Topic: Address Fields
Posted: Wednesday, October 27, 2010 7:02:29 PM
kkspb, it looks like that would work for one field at a time but does it work for multiple fields?

Say I have a home address with Address, city, state, zip fields and a mailing address with Address, City, State, Zip fields. If the mailing address fields are blank (say the address line 1 field is blank) then use the entire group of home address fields.

Do I have to load these into an intermediate file and do node level operations on it?
Topic: [Solved] Speed issue with filters as data grows
Posted: Tuesday, October 26, 2010 4:49:24 PM
I am also having similar performance issues with large files when I join / filter data. I have some files that take 1-5 hours to map and the files are only 1-2 MB in size. The mapping is going from flat file to XML.

Can someone give any general hints on avoiding these situations like the one jayeagar describes above?

Thanks,

John
Topic: Address Fields
Posted: Tuesday, October 19, 2010 3:26:33 PM
Say we have the following two files

File1: PersonID | PersonFirstName | PersonLastName | PersonAddress1 | PersonCity | PersonState | PersonZip

File2: PersonID | ContactID | ContactFirstName | ContactLastName | ContactAddress1 | ContactCity | ContactState | ContactZip

I have a function that accepts Address1, City, State, Zip and maps it to an address in the output file. So the person's address fields get mapped to their address record and the contact's address fields get mapped to their address record. However, if the contact's address1 field is blank, I want to use the person's address fields.

How do I do the logic for this?

Thanks!
Topic: Missing Elements
Posted: Monday, October 18, 2010 5:32:18 PM
I found another solution which seems to be working, so I'll post in case anyone else has this issue.

If you go into the properties of the source there is a checkbox that says "Treat empty fields as absent" which is checked by default. When I uncheck that box the elements now appear without having to map them as empties.
Topic: Missing Elements
Posted: Thursday, October 14, 2010 6:31:11 PM
I'm using XML as my destination and it seems that sometimes certain elements are excluded from the generated XML. I'm thinking this may be occurring because there is no data for that record but I have to do more research.

My question is, is there any way to always force creation of an element if it's in your target xsd?

Thanks!


Topic: Transposing Columns to Rows
Posted: Wednesday, October 13, 2010 7:25:42 PM
I got a copy working based on the example provided above. Thank you so much for your help!

Looks like we'll be getting the enterprise version :)

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