-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Is a directory" error #76
Comments
If you want mlcp to export the associated attributes of a document, you want to use "-output_type archive". |
ok. Let me try it and see if if works. |
Based on the conversation I'm going to close this. Feel free to reply if you have other questions. |
I tried and got no ERROR when exporting, but when I try to import, I get this:
and then the final stats are:
The command I execute to import is:
and to import:
am I doing anything obviously wrong? |
In your import command, try to set your input_file_path to: |
I get exactly the same errors and final stats. |
the only place in code where I found 'No namespace binding for prefix' string is at it should have a prefix in the error message, but I can't see any prefix in my errors. |
Do you need to import document properties? If not, set -copy_properties false |
if I don't import document properties, the errors are gone, indeed. But then, the app doesn't work as expected. It might be caused by the lack of properties or not, I'm not sure yet. Anyway, is there any bug related with properties importing? |
Which version of mlcp and which version of MarkLogic server are you using? |
Marklogic 9.0.4 |
this is an example of properties in a document that caused errors (slightly modified):
I retrieved it by using xdmp:document-properties |
In your property, you missed namespace declaration for xs. |
ok. Thanks for pointing that. This XML was returned by a query done through query console. Is the name space of a property stored together with the property? |
I'll close the ticket because it seems this is not a bug in mlcp. |
a question: isn't xs namespace implicitly defined everywhere? or am I misunderstanding https://docs.marklogic.com/guide/xquery/namespaces#id_21104 ? |
Sort of. It’s pre-defined in XQuery. Where you’re running into the problem is in the XML parser, which exists at a lower level and doesn’t spin up a full XQuery environment. It seems to me to be a bug that our parser can’t parse something that our XQuery engine can build and our persistence APIs can store. I’m following up on that with Engineering. Unfortunately I don’t have an ETA right now, though. |
I'm trying to use mlcp to export the contents from my database and I get lot of errors like:
if I try to import the exported content, I'll see errors like
and if I inspect some of the exported files, I see that info from the exported objects is missing.
The command I use is:
does mlcp supports exporting complex objects? where the metadata, like collections, are saved?
The text was updated successfully, but these errors were encountered: