Skip to main content
Inspiring
October 17, 2023
Question

PDF Embed SDK Duplicate Primary Keys

  • October 17, 2023
  • 0 replies
  • 118 views

Hey, I'm receiving duplicate data in my database. The ID is the primary key, and the AdobeId is the id of the created annotation. How is it that I am getting duplicate Adobe Ids for annotations created seconds apart? Can I rely on this value as the primary key?

 

 

My code is fairly simple:

 

var jsonParsed = eventData.ToString();
var annotationUpdate = JsonConvert.DeserializeObject<RootAnnotation>(jsonParsed);

annotationUpdate.data.AdobeId = annotationUpdate.data.AdobeId;



public class RootAnnotation
{
public string type { get; set; }
public RootAnnotationData data { get; set; }

}

Root AnnotationData has property AdobeId which serializes from id Property

[JsonProperty("id")]
[JsonPropertyName("id")]
public string AdobeId { get; set; }
    This topic has been closed for replies.