0

I was loading the Mantle data and I get the error below saying that the record is create-only (immutable). I don't think it will affect me, but I thought it might be something worth answering.

Loading entity data from [file:/home/byersa/dev/moqui-on/runtime/mantle/mantle-udm/data/ZzcProductDemoData.xml]
--- 195489   [main] WARN  moqui.impl.context.TransactionFacadeImpl
 Transaction rollback. The rollback was originally caused by: Error loading entity data org.xml.sax.SAXException: Error storing entity [mantle.product.asset.AssetDetail] value: org.moqui.entity.EntityException: Entity [mantle.product.asset.AssetDetail] is create-only (immutable), cannot be updated. org.moqui.entity.EntityException: Entity [mantle.product.asset.AssetDetail] is create-only (immutable), cannot be updated.
4

1 回答 1

0

这是使用 entity.@create-only 属性(设置为 true)对实体进行的设置。

您在数据加载期间看到此错误,因为数据已加载到数据已经到位的数据库中(即第二次数据加载而不清理数据库)。

AssetDetail(Mantle Business Artifacts 的一部分)设置为仅创建,因为它是一个正在运行的历史实体,并且只应创建记录,而不是更新/等。

于 2014-02-14T20:59:01.920 回答