Hi @RoderickF01 ,
There are a few points that may need attention:
1\galleryName.Selected cannot be empty or blank
2\There is a problem with the syntax of If
right syntax
If(
Condition1,
ThenResult1,
Condition2,
ThenResult2,
DefaultResult
)
3\There is a problem with the syntax of Patch

Please try this formula:
Patch(
'DataSource',
If(
IsBlank(SharePointIntergration.Selected)||IsEmpty(SharePointIntergration.Selected),
galleryChangeRequestLog.Selected,
SharePointIntergration.Selected
),
{
'QA XX':XXX
}
)
Best Regards,
Bof