Hi,
I have a custom entity say EntABC having table CustABC and the staging table entABCStaging.
The table is having multiple fields and one of the fields is having 10 characters lets says bagid.
Now when i am importing data using entity with 10 records ,10 records are getting created in the target CustABC table.
However if I am importing the field bagid with 12 characters say "bag001112345" then too i am getting a record created with 10 characters "bag0011123" removing the last 2 characters.
As per my understanding this is a standard way how AX behaves.However client requires that in such case error should be raised.
I have written validation codes in staging table as well as the entity .
I have also checked the methods like validate,postload ,mapentitytodatasource ,etc..but in this cases also the this.bagid ->has value "bag0011123".
so can anyone let me know if there is a way I can get the original value of the field bagid.
Thanks,
Vikas