I recently started using CSViewer and it's been working great! For some reason, I get the following error on a specific .qvd file when trying to open it. The error doesn't seem to be related to a file limit (other .qvd files load with no problem when there are already several open). All the other files I've used open just fine. Here is the error message:
Sequence contains more than one matching element
Exception type: System.InvalidOperationException
Stack trace:
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func
2 predicate)
at -.illi1lll11iI..MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Any help would be appreciated!
Can you send that QVD file (or a link to download it) to our support email support@easymorph.com?
Unfortunately because of data security, I can't share the file. Can I provide any other details that would be insightful?
There is a non-unique element somewhere in file metadata where only unique elements are expected (e.g. a column with a duplicate name). It can happen when a QVD file was generated not in Qlik but by a 3rd party utility that doesn't conform to the format specifications.
Can you send at least the XML header of the file (the XML part at the beginning of the file)? It's hard to say what went wrong without seeing the file.
Also, what EasyMorph version do you use?
I'm having trouble opening this specific QVD in CSViewer version 2.5.0.1. How would I get the XML file header from here? Not familiar with that terminology. Thank you very much for the help.
QVD files are binary files with a text (XML) header. Depending on the file size, you can open it in a text editor (e.g. Notepad), and simply copy the text part (until you start seeing gibberish).
If the file is too big, you can use this utility (put it next to CSViewer.exe).