cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gimar01
Helper III
Helper III

Incompatible type

Hi there, I've been having this error that I'm facing on my side of the code which at the same time doesn't allow me to upload any new data int the Sharepoint which allows the user to retrieve data towards the review list, it shows previous data's which is not what I want or need. I get an incompatible error at first but I'm not sure if this is causing the issue or is it cause of the app itself. The code that has the incompatible error can be found below:

 

If(
'RName.TBox'.Selected.Email = Not(Blank()),
eLeaveUsertoReplacement.Run(
'RName.TBox'.Selected.Email,
"Picked as a replacement for leave submission",
Office365Users.MyProfile().DisplayName,
'Employee No'.Text,
Office365Users.MyProfile().DisplayName,
'Desig.TBox'.Text,
"BHIC",
'Dept.TBox'.Text,
'LType.TBox'.Selected.Value,
'LDate.Calendar'.SelectedDate,
'Dura.Length'.SelectedDate,
DurationTBox.Text,
'Reason.TBox'.Text
)
);
ClickabuttoninPowerAppstosendanemail_1.Run(
'SName.TBox'.Selected.Email,
"eLeave Request Submission",
"",
Office365Users.MyProfile().DisplayName,
'Employee No',
'Desig.TBox'.Text,
'Dept.TBox'.Text,
'LType.TBox'.Selected.Value,
'LDate.Calendar'.SelectedDate,
'Dura.Length'.SelectedDate,
DurationTBox.Text,
'Reason.TBox'.Text
);
SubmitForm(EmployeeDetailsForm);
Patch(
eLeaveApp_1,
EmployeeDetailsForm.LastSubmit,
'Leave Request Form'.Updates,
Form2.Updates,
Form4.Updates,
// Time | Date
{DateApply: Now()}
);
Navigate(Review);
ResetForm(EmployeeDetailsForm);
ResetForm(Form2);
ResetForm('Leave Request Form');
ResetForm(Form4);
UpdateContext({showAlert: false});

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @gimar01 :

Could you point out the specific error formula?Is it ‘Patch(XXXXX)’?

If so,could you tell me:

  • What is EmployeeDetailsForm's setting?Has it submitted data before executing the patch?
  • What are the data sources of these three forms('Leave Request Form'/Form2/Form4)?

In addition, although you provide the complete code. But its function looks very complicated. Any problems with the setting of controls or flows may cause errors. I suggest you split the code and pay attention to check if they can work properly.

Best Regards,

Bof

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (53,555)