I made a mess and I can't seem to find a way to fix it. Please help :)
I created a function in CloudScript (legacy) that would occasionally backup some UserReadOnlyData to UserInternalData.
I gave these backups dynamic names with pattern backup_timestamp (as we'll see this proved to be a very bad idea)
The game experienced unexpectedly high activity in this particular area, which resulted in a lot of internalData backups all with dynamic keys
We noticed this when PlayFab's admin panel > player > Title Data wouldn't load anymore
We rewrote the backup script so there will be no more uncontrolled Internal Data creation
But ... players who had reached this limit are no longer available for browse via PlayFab admin panel, nor via API calls
How I planned to fix the issue:
Write a method that will get all playerInternalData
Loop through the keys
Filter keys that are named using the pattern: keysToDelete = Object.keys(result.Data)).filter( key => key.includes("backup_167") )
Call UpdateUserInternalData with KeysToRemove: keysToDelete
But... the size of GetUserInternalData is too big. When I call Admin/GetUserInternalData via Postman I get Error: Maximum response size reached
When I call Server/ExecuteCloudScript with FunctionName: myFunction I get "error": "Timeout" with: "ExecutionTimeSeconds": 4.0024451, "ProcessorTimeSeconds": 0.001453, "MemoryConsumedBytes": 7624,
I am open to ideas how to clear the unwanted UserInternalData keys.