I created two SharePoint lists to connect them using a button in Power App.
The aim should be to connect the lists with each other using a button.
What happened until now:
Gallery1 = SharepointList "Group" with just thre sample Items: Red, Green, Blue as Title, the SharepointID as ID Coplumn and a Column "Partner" as Lookup for the List EDV/ID
Gallery2 = SharepointList "EDV" Just three smple Items like Laptop, Monitor and keyboard as Title and the Sharepoint List ID.
When I edit an item in the "Group" list, I can select an item from the "EDV" list in "Partner" column. So far that looks right to me.
Now I have created a new, empty PowerApp “Test” and only included the catalogs of the lists here. On the left the catalog for the Group (Gallery1) and on the right the catalog for EDV (Gallery2). I used the Sharepoint connector for both.
Then I added a button to write the ID from the EDV list into the "Partner" column of the "Group" list. The selected ITEMs of the galleries should be taken into account.
I used this code:
Patch(
Gruppen,
{ID: Gallery1.Selected.ID},
{Partner: Gallery2.Selected.ID}
);
Notify("Success!", NotificationType.Success);
But this button doesn't work and is directly marked with a red cross.
Error Message:

I have absolutely no idea why!
Could it be due to the connection to the "Group" list in the patch function? The lists are assigned to mycompany.sharepoint.com
Anyone have an idea?