Dashboards & Visualizations

Why am I getting "invalid xml detection in file..." errors while submitting my apps to Splunkbase?

itrust
New Member

Hi Team,

I encountered an error while submitting my apps to the Splunkbase.
When my package is analyzed by the online tools, it gives error:

invalid xml detection in file: xxx/default/data/ui/views/._default.xml at line 1,
invalid xml detection in file: xxx/default/data/ui/nav/._default.xml at line 1,

but when I run validate_all tools : /opt/splunk/bin/splunk cmd python validate_all.py, i have no errors on files.

Any help or idea or other validating tools appreciate.

Tags (3)
0 Karma

rsethi001
Explorer

Hitting the same error, while submitting my apps to the Splunkbase.
What is the workaround for this ? 
Thanks in advance.

Tags (1)
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi itrust,

remove the ._* files form your package and it should work.

cheers, MuS

0 Karma

itrust
New Member

Hi Mus,
thanks for reply, but unfortunally, it does not help, my package do not contains ._default.xml files.

I think the splunkbase validation script extract the package and copy default.xml files into ._default.xml, then it run the test on copies (._default.xml)

BR, seb.

0 Karma

nora
Observer

Hi, encountering the same problem when trying to submit an app to Splunkbase. My package does not contain any `default/data/ui/views/._inputs.xml`. Any solutions for this problem?

0 Karma

rsethi001
Explorer

You are tarring up Mac's hidden files

Before you tar, set this variable.

export COPYFILE_DISABLE=true

It worked for me. 

0 Karma

nora12
New Member

Thanks rsethi001, I was trying to use Splunk packaging toolkit and it solves my problem now.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...