Notifications
Clear all

[Solved] Enum Field saving in inbound

1 Posts
2 Users
1 Likes
861 Views
0
Topic starter

We have written an  Inbound, which  has two UOM Enum TIME_PERIOD_UOM and AGGREGATION_HORIZON_UOM, both of same type SCC_BucketizationPolicyType

MicrosoftTeams image (30)
MicrosoftTeams image (28)
MicrosoftTeams image (29)
MicrosoftTeams image (27)

Both have same configuration , as attached . One is saving ENUM_ENTRY_NAME while other ENUM_ENTRY_VALUE. Am I missing something . Is there a configuration in inbound to control value/name ? Also which is right thing to save in DB ? Value /Name ? 

 

1 Answer
1

What model are you encountering this on?  All models created in the last few years save the NAME on the model, not the VALUE.  Perhaps you are saving data on a model with an old field which uses the old strategy, and a new one which uses the new strategy.  The behavior you're seeing may be expected.  Take a close look at the field definitions in the .model/.mdfs file to see what config is present for the enum persistence.