Hello,
I had written this line of code
Switch(
Package,
"PO",
Set(SelectedDataSource,tbl_P4_Scorecard),
"UO",
Set(SelectedDataSource,tbl_U4_Scorecard),
"XP",
Set(SelectedDataSource,tbl_X4_Scorecard),
"EW",
Set(SelectedDataSource,tbl_EW_Scorecard),
"CR",
Set(SelectedDataSource,tbl_E4_Scorecard),
"E4",
Set(SelectedDataSource,tbl_E4_Scorecard)
)
Now, this switch worked correctly. Then, unfortunately, we had to delete one of the documents, and upload a new one.
We deleted the document, we deleted the data source, and recreated the data source with the new document.
Now, whenever I insert the new table, I am given this error:

("Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app")
I have identified that it is indeed the "new document" creating this issue, as when i assign it to a new variable, there is no issue.
The issue stands from this: the tables are identical, in rows number and in columns.
If i assign it to another variable, i can see that the type of the variable is "Table" as are the other ones.

This is the only place where I assign the value to "Selected Data Source".
If i remove this line, everything works fine.
I don't know where the problem could be...