I am trying to create a new opportunity line for an existing opportunity but I am getting the following error.
"The requested operation is invalid. Server Response: The unit id is missing.
However I am indicating in the patch to use the default unit. The full patch is below.
Patch('Opportunity Lines',Defaults('Opportunity Lines'),{opportunityid: ID, producttypecode: 'Product Type6'.Product, opportunityproductname: Dropdown4.Selected.Name, quantity: 1, propertyconfigurationstatus: 'Properties Configuration'.Edit, description: Dropdown4.SelectedText.Name, productid: Dropdown4.SelectedText, uomid: Dropdown4.SelectedText.'Default Unit'})
Any idea what might be wrong?