I tried with 'Automated Import Script' it works fine, but when i change

Certified Lead Developer
I tried with 'Automated Import Script' it works fine, but when i change the cdt defination it throws an error while inspecting.According to this script it should delete the existing CDT Automatically.
...

OriginalPostID-78499

OriginalPostID-78499

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi sylvain,
    i am getting below error while importing the application

    com.appiancorp.ix.ConsumerException: type=datatype, srcId={172.18.1.27:8080/.../}AI_Employee, dstId=6018, cause=com.appiancorp.suiteapi.common.exceptions.AppianException: The import package contains a definition for the type {172.18.1.27:8080/.../}AI_Employee, which already exists with a different structure. The requested type will not be created and the existing type will not be altered. You must first delete the existing type if you intend to redefine it with a different structure. (APNX-1-4047-010), object=com.appiancorp.ix.data.DatatypeHaul@13e58ab
              at com.appiancorp.ix.ImportConsumer.consume(ImportConsumer.java:40)
              at com.appiancorp.ix.Transport.doTransport(Transport.java:378)
              at com.appiancorp.ix.Transport.transport(Transport.java:315)
              at com.appiancorp.ix.Transport.bind(Transport.java:146)
              at com.appiancorp.ix.Transport.bind(Transport.java:133)
              at com.appiancorp.ix.Transport.transportAll(Transport.java:222)
              at com.appiancorp.ix.TransportDriver.transportAll(TransportDriver.java:37)
              at com.appiancorp.ix.AbstractDriver.runTransport(AbstractDriver.java:68)
              at com.appiancorp.importapplication.InspectAndImportApplicationTask.executeInspect(InspectAndImportApplicationTask.java:125)
              at com.appiancorp.importapplication.InspectAndImportApplicationTask.main(InspectAndImportApplicationTask.java:96)
    Caused by: com.appiancorp.suiteapi.common.exceptions.AppianException: The import package contains a definition for the type {172.18.1.27:8080/.../}AI_Employee, which already exists with a different structure. The requested type will not be created and the existing type will not be altered. You must first delete the existing type if you intend to redefine it with a different structure. (APNX-1-4047-010)
              at com.appiancorp.ix.data.DatatypeHaul.validateForUpdate(DatatypeHaul.java:376)
              at com.appiancorp.ix.data.DatatypeHaul.validateForUpdate(DatatypeHaul.java:89)
              at com.appiancorp.ix.HaulImportConsumer.validateForUpdate(HaulImportConsumer.java:45)
              at com.appiancorp.ix.HaulImportConsumer.validateForUpdate(HaulImportConsumer.java:21)
              at com.appiancorp.ix.ImportConsumer.consume(ImportConsumer.java:37)
              ... 9 more
Reply
  • 0
    Certified Lead Developer
    Hi sylvain,
    i am getting below error while importing the application

    com.appiancorp.ix.ConsumerException: type=datatype, srcId={172.18.1.27:8080/.../}AI_Employee, dstId=6018, cause=com.appiancorp.suiteapi.common.exceptions.AppianException: The import package contains a definition for the type {172.18.1.27:8080/.../}AI_Employee, which already exists with a different structure. The requested type will not be created and the existing type will not be altered. You must first delete the existing type if you intend to redefine it with a different structure. (APNX-1-4047-010), object=com.appiancorp.ix.data.DatatypeHaul@13e58ab
              at com.appiancorp.ix.ImportConsumer.consume(ImportConsumer.java:40)
              at com.appiancorp.ix.Transport.doTransport(Transport.java:378)
              at com.appiancorp.ix.Transport.transport(Transport.java:315)
              at com.appiancorp.ix.Transport.bind(Transport.java:146)
              at com.appiancorp.ix.Transport.bind(Transport.java:133)
              at com.appiancorp.ix.Transport.transportAll(Transport.java:222)
              at com.appiancorp.ix.TransportDriver.transportAll(TransportDriver.java:37)
              at com.appiancorp.ix.AbstractDriver.runTransport(AbstractDriver.java:68)
              at com.appiancorp.importapplication.InspectAndImportApplicationTask.executeInspect(InspectAndImportApplicationTask.java:125)
              at com.appiancorp.importapplication.InspectAndImportApplicationTask.main(InspectAndImportApplicationTask.java:96)
    Caused by: com.appiancorp.suiteapi.common.exceptions.AppianException: The import package contains a definition for the type {172.18.1.27:8080/.../}AI_Employee, which already exists with a different structure. The requested type will not be created and the existing type will not be altered. You must first delete the existing type if you intend to redefine it with a different structure. (APNX-1-4047-010)
              at com.appiancorp.ix.data.DatatypeHaul.validateForUpdate(DatatypeHaul.java:376)
              at com.appiancorp.ix.data.DatatypeHaul.validateForUpdate(DatatypeHaul.java:89)
              at com.appiancorp.ix.HaulImportConsumer.validateForUpdate(HaulImportConsumer.java:45)
              at com.appiancorp.ix.HaulImportConsumer.validateForUpdate(HaulImportConsumer.java:21)
              at com.appiancorp.ix.ImportConsumer.consume(ImportConsumer.java:37)
              ... 9 more
Children
No Data