question

Cricket_FeVR avatar image
Cricket_FeVR asked

Update User data using Cloud Script not working (Second Time)

My condition is I want to update the user data by choosing the players(ingame) with a certain order. I update the user data using cloudscript, it works fine for the first time. But again while updating if there any changes it is not working(not updating).

Player DatadataTitle Data
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Seth Du avatar image Seth Du ♦ commented ·

May I ask are you updating a same user data simultaneously from different endpoints?

0 Likes 0 ·
Cricket_FeVR avatar image Cricket_FeVR Seth Du ♦ commented ·

Yes, while updating same user data.

0 Likes 0 ·
v-humcin avatar image v-humcin ♦ Cricket_FeVR commented ·

Can you elaborate on what kind of feature you are trying to implement? Our data system does not support updating the same data from different end points simultaneously, so if the feature can be simplified so that only one end point is updating the data at a time that would be ideal.

0 Likes 0 ·
Show more comments

1 Answer

·
Cricket_FeVR avatar image
Cricket_FeVR answered
//This is the respective code used to call the cloud script

public void StartCloudUpdateSquad(List<string> playing11)
    {
        foreach (string data in playing11)
            Debug.Log("data :" + data);
        PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest()
        {
	    // Arbitrary function name (must exist in your uploaded cloud.js file)	
            FunctionName = "UpdateUserInventoryItemCustomData", 
            FunctionParameter = new { p1 = playing11[0], p2 = playing11[1], p3 = playing11[2], p4 = playing11[3], p5 = playing11[4], p6 = playing11[5], p7 = playing11[6], p8 = playing11[7], p9 = playing11[8], p10 = playing11[9], p11 = playing11[10], }, // The parameter provided to your function
            GeneratePlayStreamEvent = true, // Optional - Shows this event in PlayStream
        }, OnCloudHelloWorld, OnErrorShared);
    }


I don't get any error while pressing play button on second time.

Thanks in advance :)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]