Skip to content

Creating Templates

Creating Templates

After you create one or more partners, you can create a template. To get started, click Templates in the left navigation pane.

A template describes a file structure in sufficient detail to enable FeedXChange to validate and process it correctly during an integration run. Templates include detailed field definitions, validation rules, and response file generation rules.

Each template is associated with an RCX process and a partner.

FeedXChange provides three ways to create templates:

  • Copy an existing template
  • Create one from scratch
  • Import a template

In this tutorial, you create a template from scratch for Acme Pet Shop, and you import a template for PAWs Resorts.

Creating the Acme Pet Enrollment Template

  1. Click Templates in the left navigation pane.
  2. Click + Create New in the upper-right corner of the screen. The Template Configuration screen opens.

    The Template Configuration view in edit mode. The left panel includes options to add an input file and response file, along with a search bar. The right panel displays editable fields: Name as Acme Pet Enrollment, RCX Process as Enrollment, Partner as Acme Pet Shop, and an empty Description field. Top action buttons include "Validate," "Save," and "Publish." The left sidebar shows navigation links, with "Templates" currently selected.

  3. Fill in the fields as described:

    Property Name Property Description
    Name Type Acme Pet Enrollment.
    RCX Process Select Enrollment.
    Partner Select Acme Pet Shop.
  4. Click Input File to expand it. The Input File Properties panel is displayed.

  5. Fill in the fields as described:

    Property Name Property Description
    Format Select Fixed.
    Header Select Yes.
    Body Select Yes.
    Footer Select No.
  6. Click the Header tab. A New Field is created with default values.

  7. Set the Field Name to channelName, the Fixed Length to 11, the Data Type to String, Required to Yes, the Minimum Length to 1, and the Maximum Length to 11.
  8. Click + Add to add a header field for each of the following with values shown:

    • acquisitionChannel
      • Fixed Length: 18
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 18
    • enrollChannel
      • Fixed Length: 13
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 13
    • enrollDate
      • Fixed Length: 10
      • Data Type: Date
      • Date Format: YYYY-MM-DDTHH:mm:ss.SSSZ
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 10
    • memberStatus
      • Fixed Length: 12
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 12
    • memberType
      • Fixed Length: 10
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 12
  9. Click the Body tab. The required fields are autocreated based on the RCX process selected.

  10. Update the follow fields with values shown:

    • channelName
      • Fixed Length: 11
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 11
    • member.acquisitionChannel
      • Fixed Length: 18
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 21
    • member.enrollChannel
      • Fixed Length: 13
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 13
    • enrollDate
      • Fixed Length: 10
      • Data Type: Date
      • Required: Yes
      • Date Format: YYYY-MM-DDTHH:mm:ss.SSSZ
    • memberStatus
      • Fixed Length: 12
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 12
    • memberType
      • Fixed Length: 10
      • Data Type: String
      • Required: Yes
      • Minimum Length: 1
      • Maximum Length: 10

Configuring the Response File

  1. Click Response File to expand it. The Response File Properties panel is displayed.
  2. Fill in the fields as described:

    Property Name Property Description
    Format Select Delimited.
    Delimiter Type a comma (,)
    Quote Strings Select single quote
    Header Select No.
    Body Select Yes.
    Footer Select No.
  3. Click the Body tab. A New Field is created with default or empty values.

  4. Fill in the fields as described:

    Property Name Property Description
    Field Name Error Code
    Data Type String
    Value Error Code
  5. Click + Add twice to add two more fields:

    • Error Message
      • Field Name: Error Message
      • Data Type: String
      • Value: Error Message
    • HTTP Status
      • Field Name: HTTP Status
      • Data Type: String
      • Value: HTTP Status
  6. Click Save in the upper right corner.

Fixing Errors

The Errors and Warnings pane opens on the right with three errors displayed.

The Errors and Warnings pane displaying three errors: The Fixed Length in the Input File must be greater than or equal to the maximum length for the 6th header element and the 2nd body element, and the required RCX field, member.enrollDate, isn't configured in the input file properties.

To fix the errors:

  1. Click the Header tab.
  2. For the memberType field, fix the Maximum Length according to the error message.
  3. Click the Body tab.
  4. For the member.acquisitionChannel field, fix the Maximum Length according to the error message.
  5. For the enrollDate field, click the search icon () in the RCX Field to open the RCX Field Selection dialog box.
  6. Type enrollDate in the Search text box. The list of fields narrows to show those with enrollDate in the name.
  7. Click the member.enrollDate field to put a checkmark next to it.
  8. Click OK.
  9. Click Save in the upper right corner.
  10. Click Validate to validate the template. FeedXChange shows a success message.

Testing the Template

Before you publish the template, it's a good practice to test it with a file that mirrors one the server will put in the S3 bucket or SFTP server.

Download the test files:

If the files open in your browser: Right-click the page and select Save Page As or press Ctrl+S (Cmd+S on Mac).

If the files download automatically: Ensure they're saved as .txt files.

Alternatively, you can right-click the download links above and select Save Link As...

To test the Acme Pet Enrollment template:

  1. Click Test File in the upper right corner.
  2. Click Upload Sample File () and navigate to the errors file on your computer.
  3. Click Test.
  4. Review the errors to understand the problems FeedXChange found.

    • Body line 1 length[63] does not match with fixedLength[67]
    • Body line 2 length[63] does not match with fixedLength[67]

    Compare the errors file with the success file. You'll notice that the date field doesn't have fractional second value, which is expected due to the selected date format in the template. This reduces the overall length of each line by four characters (.257).

  5. Close the Errors and Warnings pane.

  6. Click Test File again.
  7. Click Upload Sample File () and navigate to the success file on your computer.
  8. Click Test. The test passes, and the template is ready to publish.

Creating the PAWs Resorts Activity Template

Sometimes, you might have a template you want to modify without changing the original. Templates are exported and imported in JSON format.

This tutorial shows you how to import a template. For information about exporting templates, see Export a Template.

  1. Download the PAWs Resorts Activity template to your computer.

    • If the file opens in your browser: Right-click the page and select Save Page As or press Ctrl+S (Cmd+S on Mac).
    • If the file downloads automatically: Ensure it's saved as a .json file.

    Alternatively, you can right-click the download link and select Save Link As...

  2. On the Templates list view, click Import in the upper-right corner of the screen.

  3. Click Include Json File () and navigate to the PAWS_Resorts-Activity.json template file on your computer.
  4. Leave the override existing template option off.

    Include Json File dialog box showing a file named PAWs Resorts - Activity.json selected for import. Below the file name, a toggle switch labeled Do you want to override existing template is set to off. Two buttons are at the bottom right: Cancel and Import.

  5. Click Import.

  6. On the Job Info dialog box, click OK.
  7. Click Import Status to check the status of the import operation.

    Template Import Details dialog box showing import status as Completed. The dialog box displays the following text: Name: Import Template. Status: Completed. Submit Time: Sep 23, 2025 10:43 AM. Completion Time: Sep 23, 2025 10:43 AM. Result: Imported Successfully. There's an OK button in the lower right and a close icon in the upper right.

Testing the Template

Before you publish the template, it's a good practice to test it. Create a file with anonymous test data that resembles one that the server will put into the S3 bucket or SFTP server.

  1. Download the test files to your computer:

  2. Click Test File in the upper right corner.

  3. Click Upload Sample File () and navigate to the PAWsResorts_activity_input_error.csv file on your computer.
  4. Click Test.
  5. Review the errors to understand the problems FeedXChange found:

    • The count of fields in the body line 1[5] does not match the specified configuration[6]
    • The count of fields in the body line 2[5] does not match the specified configuration[6]
    • Field date on body line 1: The date format does not align with the specified format
    • Field type on body line 1: is required field
    • Field date on body line 2: The date format does not align with the specified format
    • Field type on body line 2: is required field

    When you compare the errors file with the success file, you'll notice:

    • The error file contains a header row with only 5 fields and the template wasn't configured for a header row.
    • The second line in the error file has a semicolon (;) instead of a comma separating the first and second fields.
    • These two issues caused all the errors displayed. Removing the header row and changing the semicolon to a comma fixes the errors.
  6. Close the Errors and Warnings pane.

  7. Click Test File again.
  8. Click Upload Sample File () and navigate to the PAWsResorts_activity_input_success.csv file on your computer.
  9. Click Test. The test passes, and the template is ready to publish.

Publishing the Templates

Now that the templates have been created and tested, you can publish them. Publishing the templates makes them available for use in integrations.

  1. Click Templates in the left navigation pane to open the Templates list view.
  2. For the Acme Pet Enrollment template, click the Edit icon () in the Actions column.
  3. Click Publish in the upper right corner.
  4. For the PAWs Resorts Activity template, click the Edit icon () in the Actions column.
  5. Click Publish in the upper right corner.

Next, create the integrations.

See also: