Transformations > Hierarchy Parser transformation > Sample or schema
  

Sample or schema

When you create a hierarchical schema, you import a JSON sample file or an XSD schema as the basis of the schema.
It is recommended to use a schema, if available. The schema must not contain recursive elements.
If you use a sample, ensure that it is representative of the data that you expect to process with the transformation and that it is comprehensive. Ensure that the sample contains all the possible fields that the transformation might process, including permutations regarding values and types. The lengths of fields must be representative.