erdomke / InnovatorAdmin

A tool for managing Aras Innovator installations focusing on improving the import/export experience.
http://erdomke.github.io/InnovatorAdmin/
MIT License
58 stars 42 forks source link

File Upload does not work. #177

Open rneuber1 opened 7 years ago

rneuber1 commented 7 years ago

Using the following AML (either with the ApplyItem or ApplyAML action) does not upload the file. It just creates the item but in fact does not contact the vault server. I looked at it with fiddler: If you use the Batchloader with this AML, a connection is established from the client to the vault server. Using InnovatorAdmin, only connections between the client and the Innovator server can be seen.

<Item type='File' action='add'>
  <actual_filename>c:\temp\xml_de_diff.txt</actual_filename>
  <Relationships>
    <Item type='Located' action='add'>
      <related_id>67BBB9204FE84A8981ED8313049BA06C</related_id>
    </Item>
  </Relationships>
  <filename>test.txt</filename>
</Item>
rneuber1 commented 7 years ago

The statement from your wiki does not work at all:

  1. if you do not provide a <filename> tag, you get a

Cannot insert the value NULL into column 'FILENAME', table 'VMDB_Test_VM.innovator.FILE'; column does not allow nulls.

  1. Additionally, you need to provide a "Located" relationship, otherwise you get

Insufficient relationship count (0) of Located relationships. At least 1 required.