7 Replies Latest reply on Dec 12, 2011 10:27 PM by spilon

    "Error occured during import" using PI System Explorer

    stanasse

      Hello vCampus

       

      I would like to use the xml import/export feature of AF but I have having a few problems.

       

      1. I would like to export an AFElement to xml, make an edit, then import the change. However, I receive an error. Here are the steps to reproduce using the PI System Explorer:

       

      1. Create an AF Element named 'Test' and add a string AF attribute named 'test_attribute' with the value of "Hello"
      2. Check in changes
      3. Export the AF Element and save the file as test.xml
      4. Edit test.xml and change the value of "Hello" to be "Hello There"
      5. Select File | Import test.xml and uncheck 'Allow Create'

       

      An error message occurs:
      "Error occured during import near 'Name' while processing Database 'SPWR'. Could not find AFElement 'Test' and the create option was not specified.

       

      I have the same problem with two different AF systems:
      AF Server 2.4.0.4431 with AFSDK 2.3.0.4048
      AF Server 2.3.0.4048 with AFSDK 2.3.1.4095

       

      What do I have to do in order to successfully import xml to edit an AFElement?

       

      Thanks!