I am trying to update the ItemReferences of a bundle in my catalog and I am getting an error that I cannot recognize.
In the request, I am pretty much updating the ItemReferences and StartDate variables. Everything else is staying the same.
Here is my code:
UpdateDraftItemRequest updateDraftItemRequest = new UpdateDraftItemRequest() { Item = new CatalogItem() { CreatorEntity = bundle.CreatorEntity, Type = bundle.Type, Id = bundle.Id, ItemReferences = new List<CatalogItemReference>() { new CatalogItemReference() { Id = newPassItemId, Amount = 1 } }, ContentType = bundle.ContentType, Title = bundle.Title, AlternateIds = bundle.AlternateIds, DisplayProperties = bundle.DisplayProperties, Tags = bundle.Tags, StartDate = DateTime.Now, }, Publish = true }; PlayFabResult<UpdateDraftItemResponse> updateDraftItemResult = (await PlayFabEconomyAPI.UpdateDraftItemAsync(updateDraftItemRequest)); if (updateDraftItemResult.Error != null) Log.Error(updateDraftItemResult.Error.GenerateErrorReport());
The weird thing about the error is that it occurs like 9/10 times. There are cases where the UpdateDraftItem does go through. Here is the error that is posted by GenerateErrorReport:
[Error] OK1-637d2e4a-0fdde359247219f35f4b8fe1MS-CV: yzQTve7IfkS6hVBgHOUg4A.0
Is there something that I am missing for this?