hougaard / Simple-Object-Designer

Issue tracking for the Simple Object Designer for Business Central
7 stars 0 forks source link

A custom field is trying to populate a different custom field at post #229

Open altavistatech opened 1 year ago

altavistatech commented 1 year ago

I have added a field to the Sales Order window. Well actually 2 fields. When posting the Order, I am getting error that the first field cannot update the second field. I do not have these fields transferring to history or actually related so it seems odd. Maybe it is because I not transferring them to the Archive.

image

Allied Metals - US_Chemistry_Field1.0.0.37.zip

hougaard commented 1 year ago

You're getting hit by implicit field transfers, in some cases, BC will do a field transfer if the source and destination have fields with the same field number.

The trick is to use different field numbers to avoid this, or to align the number so they match.

Use personalization to add the "Field Number" field to the field list, then edit one of them to avoid collision.