question

justindooley avatar image
justindooley asked

GetUserPublisherData not up to date

When a user is registered, a cloud script is called that assigns them a character and sends their name and email to our mailing list on mailchimp. Sometimes when this is called, the first name is not available Even though it's a required field and Playfab does have it)

I'm assuming that this is a propagation issue since it's happening the same time as a user is registered and if the call is done again at a later time it succeeds. Is there a way to delay the call or ensure the fields are valid? It's only about 5% of the time.

10 |1200

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

1 Answer

·
pfnathan avatar image
pfnathan answered

Thanks for your information this, after an investigation of your inquiry, this turns out to be a bug on our end. Will file a bug and triage.

6 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.

pfnathan avatar image pfnathan ♦ commented ·

Please ignore first response, We will run few more test on Cloud Script and get back to you. thanks for your patience.

0 Likes 0 ·
pfnathan avatar image pfnathan ♦ pfnathan ♦ commented ·

To do some work to be done, it looks like you were firing a CloudScript as a result of logins. And, you were trying to set data and then read and send them out, Can you let us know the specifics of your scenario for Cloud Script, please? Note that If you are trying to send something that was just set, that won't necessarily work.

0 Likes 0 ·
justindooley avatar image justindooley pfnathan ♦ commented ·

It's literally just first name, last name and email as well as if the user consents to receive emails as part of the registration. We do try and read this information right after when sending it off. This results in errors occasionally (presumably while the data propagates). The question was what method should be used to send data that was just set.

0 Likes 0 ·
Show more comments
justindooley avatar image justindooley commented ·

I've modified my functions to instead be called by a scheduled task. New users (<24 hours from first login) will have the cloud script called on them instead. That should provide lots of time and solve the issue.

0 Likes 0 ·
pfnathan avatar image pfnathan ♦ justindooley commented ·

Thanks for the followup, if you are having an issue please let us know.

0 Likes 0 ·

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.