Article - CS267096

Exporting a datashape, and importing it in another environment, in a ThingWorx extension, generates the exception "Attribute 'aspect.cacheTime' is not allowed to appear in element 'FieldDefinition'"

Modified: 27-Aug-2018   


Applies To

  • ThingWorx Platform 7.4

Description

  • Export the DataShape created from Execute Service -> Create DataShape from Result using the option Export for Source Control
    • This Data Shape contains some properties like aspect.cacheTime, aspect.dataChangeType, aspect.isLogged 
  • Include this Data Shape in a customized extension, and import this extension to another environment
  • Export from Source Control will only work with Import from Source Control
    • Use plain Export instead
  • Error in the Application logs:
    • Error parsing /ThingworxStorage/extensions/temp/…./XXXX.xml: Attribute 'aspect.cacheTime' is not allowed to appear in element 'FieldDefinition'
    This is a printer-friendly version of Article 267096 and may be out of date. For the latest version click CS267096