B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Service Development Help | Working with Flat Files | Creating Flat File Schemas | Setting a Default Record
 
Setting a Default Record
You can select a default record from a flat file dictionary when creating a flat file schema. This record is used to parse an undefined data record when the convertToValues service fails to find a match between the flat file and the flat file schema. In other words, Integration Server will use the default record to parse any records it does not recognize.
Keep the following in mind when deciding whether or not to set a default record:
*If your flat file does not contain record identifiers, you must select a default record. By selecting a default record, a CSV (comma separated values) file can be parsed as a special case of record with no record identifier, but with fixed field and record delimiters.
*If you do not select a default record, unrecognized records are placed into the output IS document with the undefined data tag, which might produce errors.
*If the default record is specified when creating the flat file schema, any record that cannot be recognized will be parsed using this default record. If a default record is not selected, the record will be treated as undefined data. If the Undefined Data property is set to False and the validate variable of the convertToValues service is set to true, convertToValues will generate errors when it encounters undefined data. For more information about the Undefined Data property, see Allowing Undefined Data
* To specify a default record
1. In the Package Navigator view of Designer, open the flat file schema to which you want to add a default record.
2. In the Properties view under the Default Record area, click next to Set.
3. Browse to and select the default record for this flat file schema from a flat file dictionary, then click Next.
4. Select the record definition to use as the default record, then click Finish.
5. Save the flat file schema.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release