I am trying to programmatically modify a ECT/Entity based on REST data from another system. It works if I am running it from a console application but if I am trying to run it from for example a finder method it gives me the following exception:
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
Any suggestions what I can do to make it run?
I tried to elevate the privileges but even this did not change anything. The BCS is running with the account of the farm administrator and even if this user starts the console application Version of my script it modifies the model perfectly.
I am a bit clueless why I do not have the right permissions to modify anything from the model.