SpreadsheetDocument.Open Throws "Required Types tag not found" - openxml

I'm trying to read a pretty simple (I think) xlsx file via SpreadsheetDocument.Open
But it throws the following error
Required Types tag not found. Line 1, position 58.
There seems to be almost no information on the web about this error
Any Ideas?
Thanks!

Related

the system cannot find the path specified error on Crystal Reports ExportToDisk

I am using Crystal reports in my WPF application to generate reports, getting below error
"the system cannot find the path specified error" on ExportToDisk.
irptDocument = new ReportDocument();
rptDocument.InitReport += new EventHandler(this.OnReportDocInit);
irptDocument.Load(astrReportName);
irptDocument.SetDataSource(adtbResult);
irptDocument.ExportToDisk(ExportFormatType.PortableDocFormat,lstrReportFullName);
Path where to save as pdf is a valid path, still I am getting above error.
This is very common error while we something missing or not set (even for runtime). If you getting error in win7, then also check second link.
While searching answers of your question, someone resolved this error by
I found out the problem; the auto-generated file name seems to have
been too long for the app-server. I changes the name of the class to
PCWS and it worked fine. It's a shame Sun One Studio (which creates
these massive file names doesn't warn you
Please check this links :
https://scn.sap.com/thread/3689925
http://answers.microsoft.com/en-us/windows/forum/windows_7-update/the-system-cannot-find-the-path-specified-error/dae5f759-b053-4a4a-87af-42e79f517631?auth=1

Exist-DB: REST GET to stored XProc file (xpl extension) returns error

In Exist 2.2, When I try to access any .xpl files with REST GET, I get the following error:
/db/beheer/pipe.xpl err:XPST0003
error found while loading module xproc: Error while loading module
http://xproc.net/xproc: unexpected token: ! (while expecting closing
tag for element constructor: null) [at line 1, column 2]
It seems to me that Exist is processing the *.xpl as if it was something it could execute (like a stored xquery) but then it cannot do so and returns an error.
Is there an easy way to let it return just the XML (the XProc as is instead of error message)?
Indeed, eXist consults its list of Internet Media Types when you do a HTTP GET using the REST Server and if it thinks that it is an XProc it will attempt to execute it as such.
You can change what eXist thinks is an XProc by editing $EXIST_HOME/mime-type.xml and then restarting eXist. You most likely want to move the .xpl extension from the mimetype application/xml+xproc to application/xml.

Include file as input stream in scala

I'm having problems with using a file in my code. I'm working with javaPNS and trying to get it to work. What I think is wrong now is how I get my file for the keystore parameter in the Push.alert method in javaPNS.
What I'm really wondering is how do I "get a resource" properly so it has the correct format?
Here's the exception that is thrown:
javapns.communication.exceptions.InvalidKeystoreReferenceException:
Invalid keystore parameter (null). Must be InputStream, File, String (as a file path),
or byte[].
at........
And here's how I currently include the file:
val keystoreFile = getClass.getResourceAsStream("/app/conf/cert.p12")
If we look at the exception I get, do you think this above is the problem? How should I include the file properly in Scala?
regards,
The problem you are seeing has to do with the fact that the InputStream you are loading is coming back as null. This happens when the file you are trying to load can not be found on the class path. Try changing your code to:
getClass.getClassLoader.getResourceAsStream("app/conf/cert.p12")
You will notice I removed the leading slash on the file path as I believe this is your issue. Then just make sure that whatever the parent directory to "app" is is on your class path.

Error Domain=NSXMLParserErrorDomain Code=64 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 64.)"

What deos the error 64 in NSXMLParserDomain Code=64 mean? I am using an NSXMLParser to parse my XML data. But i am getting the above mentioned error. Can someone please help me on this?
I found it out. The error comes when the XMl contains errors at the start up. U can validate the XMl using w3schools here http://www.w3schools.com/xml/xml_validator.asp[How to validate an XML]1
Its also happens if the XML contains some extra line before the xml tag starts.

Caché OREF Error - Getting More Information

I'm am trying to integrate with a Caché Web Service and I'm getting an error message similar to:
ERROR #5002: Cache error: <INVALID OREF>zMethodName+45^AA.wsClass.8
I do have have access to the code (albeit just a copy, so read-only), and I'm trying to decipher what the error could be pointing me to.
So does the number 45 and/or 8 mean anything? I've tried to see if it is pointing to a line number or offset from the method and I can't seem to pin point anything.
How might I be able to figure more out from this error?
This is a standard COS pointer. To locate it, just open routine AA.wsClass.8.INT, locate zMethodName and count 45 lines after it (or just write zMethodName+45 in Studio locator bar).
INVALID OREF means you try to use property or call method from null-valued pointer.