Esri / solution.js

TypeScript wrappers running in Node.js and modern browsers for transferring ArcGIS Online items from one organization to another.
https://esri.github.io/solution.js/
Apache License 2.0
39 stars 12 forks source link

Data items are no longer referencing the data resource in the resources property of the template #1179

Closed chris-fox closed 1 year ago

chris-fox commented 1 year ago

This appears to have broken in a recent change. If you package an item type that has a download, i.e CSV, Survey123 Form, Pro Project Package, the file is added to the resources successfully but it is not referenced in the resources property of the template. This causes it to fail to deploy properly.

To repro:

  1. Use the create solution demo app and create a solution from a CSV item, for example (6827cad15df44e0cb6d4d0e297fe1ac3)
  2. View the resulting item, the csv.zip resources is successfully added to the item, but the file is not referenced in the resources array of the template in the item data.

        "resources": [
            "6827cad15df44e0cb6d4d0e297fe1ac3_info_thumbnail/thumbnail1689784909421.png"
        ],

As a result when deployed the csv is not added to the item and causes it to be broken.

chris-fox commented 1 year ago

Verified