# Unable to parse XML dataset, Failed to install template

**URL:** <https://discuss.elastic.co/t/unable-to-parse-xml-dataset-failed-to-install-template/172513>\
**Category:** Logstash\
**Created:** [March 15, 2019, 10:54am UTC](https://discuss.elastic.co/t/unable-to-parse-xml-dataset-failed-to-install-template/172513 "2019-03-15T10:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rashmi\_Nagpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi_nagpal/32/42172_2.png) [@Rashmi\_Nagpal](https://discuss.elastic.co/u/Rashmi_Nagpal)\
**Post date:** [March 15, 2019, 10:54am UTC](https://discuss.elastic.co/t/unable-to-parse-xml-dataset-failed-to-install-template/172513/1 "2019-03-15T10:54:15Z")

</div>

Can someone please help me here, I'm getting error as

> Failed to install template.{:message=\>"Template file ' ' could not be found!"  
> on running below script.

```
filter {

  ## interpret the message payload as XML
  xml {
    source => "message"
	store_xml => false
	force_array => false
	## xpath => ["/testsuite/testcase/@name/text()","testCase"]
	xpath => ["/testcase[1]/@name/text()","testCase"]
  }
  mutate {
    ## Convert the numeric fields to the appropriate data type from strings
   convert => {
		"testCase" => "string"
    }

    ## get rid of the extra fields we don't need
    remove_field => ["message"]
 }  
}

output {
  stdout { codec => rubydebug }
  elasticsearch {
	## Connect to the elasticsearch
    hosts => ["<ip-address:port-number>"]
    ## use a time aware index name
    index => "soapUI"
    
  }
}

```

and dataset as attached

 ![imag1](https://us1.discourse-cdn.com/elastic/original/3X/2/8/28466d371935cc1d565e3400741c6220717e6366.png) :-

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 12, 2019, 10:54am UTC](https://discuss.elastic.co/t/unable-to-parse-xml-dataset-failed-to-install-template/172513/2 "2019-04-12T10:54:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
