This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

M-Files Importer- problem with import

Hi, I have a situation where, through the M-Files Importer, I have to import information inside the built-in object "Document" into the class I created there manually, but when I try to do the import, I get an error inside the CSV File "This object requires a source file." However, when I change the class that is not inside the built-in object, the import goes through properly. My question is the following: Is it possible to import data inside the built-in object "Document" in some way or is it ultimately impossible?

Parents
  • Normally when you add documents those documents would have one or more files, and you would specify the file name and path to that/those files in your import settings.

    If you need to create new documents without any files then you need to specify the built-in property "Single file" (ID 22) = No (can be a fixed value if all new documents need this setting). This makes the new object a multifile document which can have 0, 1 or many files attached. Then you should be able to run the import (have not tried with that setting). Perhaps the Name and Path columns need to be in your configuration  and  in the CSV ananyway (without content).

  • Hi thanks for the tip. I tried setting the property inside M-Files Importer but without success. In the screenshot below, you can see my configuration. Maybe I do something wrong. Do you have some idea?

  • Have you tried adding an empty File column in the CSV and configuration as specified in the guide for document import?

    What does the error message say? And the the error log file?

    Have I understood the use case correctly, i.e. you want to import empty document objects only with metadata but no files attached? This would be quite unusual but of course there can be situations where it is relevant. Perhaps you could enlighten us on the purpose - we might learn a bit from you as well.

  • Yes. I tried importing only empty metadata info without files attached. We have a situation where we need to import car information for about 60 cars and it's much easier with M-Files Importer. In the built-in object "Document" I have the class "Car Registration Card" and I need to import about 60 scanned documents of "Car Registration Card" but I think when I upload scanned copies with M-Files importer all at once, I have the feeling that the actual document will not be attached to the created "Car Registration Card" object that needs to be linked to the scanned one. Hopefully you understood me.

    In the screenshot is an error in the CSV Error file:

  • The error file clearly states that a source file is required.

    You must list the scanned files with path and filename - one for each object - in the same row as the metadata for that Car Registration Card. Do that and configure the import as specified in the documentation, and you should be able to import them without any problems at all.

    Trying to import the objects without files only makes it so much more difficult, so why even attempt to do so?

Reply
  • The error file clearly states that a source file is required.

    You must list the scanned files with path and filename - one for each object - in the same row as the metadata for that Car Registration Card. Do that and configure the import as specified in the documentation, and you should be able to import them without any problems at all.

    Trying to import the objects without files only makes it so much more difficult, so why even attempt to do so?

Children
No Data