Got a error
10:16:47.200 WARN oquiWorker-5
o.moqui.i.e.EntityValueBase Error in secondary sequenced ID converting SeqId [ALL] in field
[regionGeoCode] from entity [mantle.product.ProductCalculatedInfo] to a number:
java.lang.NumberFormatException: For input string: "ALL"
Entity definition:
<entity entity-name="ProductCalculatedInfo" package="mantle.product" cache="never">
<field name="productId" type="id" is-pk="true"/>
<field name="regionGeoCode" type="id" is-pk="true"/> `Preformatted text`
<field name="totalQuantityOrdered" type="number-decimal"/>
<field name="totalTimesViewed" type="number-integer"/>
<field name="averageCustomerRating" type="number-decimal"/>
<relationship type="one" related="mantle.product.Product"/>
</entity>
To seperate calculated infor from one place to another for a product, added one primary key. But with some finding and updating non-primary fields, giving this error. Tried to read the code, it somehow tries to convert a string to a number, that would be error of course, but why? why is it converting? should not I use text as primary key?
Note:
the type of the regionGeoCode was ‘text-short’, then after sometime there are some entities created, then I changed it to type ‘id’. this coulde be reason?