Skip to main content
Inspiring
Oct 17, 2023 4:35 AM UTC
Question

PDF Embed SDK Duplicate Primary Keys

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 is closed to new replies. Start a new post to keep the conversation going.