Skip to Content
0
Former Member
Oct 11, 2006 at 11:23 AM

Ignore fields in File Content Conversion

1336 Views

Hi all,

I need to read first 9 fields in Content conversion from text file and ignore all the others.The problem is I don't know exactly the number of fields(it varies from file to file).

I try to use the following in my content conversion:

item.fieldSeparator = ;

item.fieldNames = "Names of item fields"

item.lastFieldsOptional = NO

ignoreRecordSetName = true

Now it works with files with 9 fields,but doesn't with more than 9...

I tried with item.lastFieldsOptional = YES as well but it didn't help...

Anyone any suggestions?

Thanks in advance