Hi,
I have a Screen which is divided into 2 parts which are:
- A gallery with data source QUOTE LINE DETAIL (Common Data Service) on which there is a NEW QUOTE LINE DETAIL button. On select of the button a new Quote Line Detail form will be visible on the second part of the Screen.
- Edit Form with data source QUOTE LINE DETAIL (Common Data Service), after filling all the fields in the form there is a Save button which should save the form.
This is the screen.

The formula which is used in NEW QUOTE LINE DETAIL button is:
NewForm(EditFormQuoteLineDetail);
Navigate(
EditFormQuoteLineDetail,
ScreenTransition.None,{QuoteQL:ComboBoxQuoteQLForm}
)
The formula which is used in Save Icon is:
Patch(
[@'Quote Line Detail'],
Defaults('Quote Line Detail'),
{
Description: DescriptionQuoteLineDetail.Text,
'Transaction Type': TransactionTypeQuoteLineDetail.Selected.Value,
'Transaction Class': TransactionClassQuoteLineDetail.Selected.Value,
Role: RoleQuoteLineDetail.Selected,
Quantity: Value(QuantityQuoteLineDetail.Text),
'Resourcing unit': ResourcingUnitQuoteLineDetail.Selected,
'Unit Schedule': UnitScheduleQuoteLineDetail.Selected,
Unit: UnitQuoteLineDetail.Selected,
'Start Date Time': DateValue2.SelectedDate + Time(
Value(HourValue2.Selected.Value),
Value(MinuteValue2.Selected.Value),
0
),
'End Date Time': DateValue3.SelectedDate + Time(
Value(HourValue3.Selected.Value),
Value(MinuteValue3.Selected.Value),
0
), 'Document Date':DateValue4.SelectedDate + Time(Value(HourValue4.Selected.Value), Value(MinuteValue4.Selected.Value), 0)
}
)
My Problem is that, after filling all the Data in the form when the Save button is clicked it gives the error.

I am not able to understand this error as the form is new form so it should not get any Id of Quote Line Detail, so why it is giving the error.
Any help is appreciated.