3
With Business Central 18.2 Interaction Word Template PDF Creation fails if you have two fields with the same Caption. You get the following error:
A call to Microsoft.BusinessCentral.DocumentProcessor.MailMerge.Execute failed with this message: A column named 'xxxx' already belongs to this DataTable.
The above error states that a column of the same name is already existing. However, the problem seems to be the field caption instead of field name. Since there is no validation on the uniqueness of a field caption, this can happen any time when one or more extensions are extending the contact card or other tables that are part of this dataset.
Can you please change the behaviour so that the uniqueness requirement is based on the field name rather than the field caption?
A call to Microsoft.BusinessCentral.DocumentProcessor.MailMerge.Execute failed with this message: A column named 'xxxx' already belongs to this DataTable.
The above error states that a column of the same name is already existing. However, the problem seems to be the field caption instead of field name. Since there is no validation on the uniqueness of a field caption, this can happen any time when one or more extensions are extending the contact card or other tables that are part of this dataset.
Can you please change the behaviour so that the uniqueness requirement is based on the field name rather than the field caption?
STATUS DETAILS
Needs Votes
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team