Start a new topic
Answered

LoadDataRecord contains non persitable expressions when trying to publish Data using the Rest API

Can someone help with below error while trying to publish data through api: { "errorMessage": "Invalid Data Error: LoadDataRecord contains non persitable expressions [VendorSiteID]", Here VendorSiteID is the primary key attribute.


{
   "action":"PERSIST_DATA",
   "persistOptions":{
      "defaultPublisherId":"ORACLE",
      "optionsPerEntity":{
         "Facility":{
            "enrichers":[
               
            ],
            "validations":[
               
            ],
            "queryPotentialMatches":true
         }
      },
      "missingIdBehavior":"GENERATE",
      "persistMode":"IF_NO_ERROR_OR_MATCH"
   },
   "persistRecords":{
      "Facility":[
         {
            "Amenities":null,
            "Country":"UNITED STATES",
            "PhoneNumber":null,
            "Extension":null,
            "Hours24":null,
            "City":"HIALEAH",
            "DawnDusk":null,
            "Latitude":null,
            "FuelTypes":null,
            "CardsAccepted":null,
            "LocationID":null,
            "NetworkAffiliations":null,
            "MetroArea":null,
            "Contact":null,
            "Customs":null,
            "AddressLine2":"JINGLE BELL WAY",
            "State":"ZZ",
            "Fax":null,
            "Email":null,
            "Longitude":null,
            "TimestampValue":null,
            "Hours":null,
            "InternationalFax":null,
            "Website":null,
            "Address":"ABC WAY",
            "InternationalPhone":null,
            "WeightValue":null,
            "VendorName":"VENDOR LLC",
            "Services":null,
            "zipcode":"99999",
            "CountryCode":"US",
            "InternationalAirport":null,
            "VendorID":"99",
            "FuelBrands":null,
            "Region":null,
            "VendorSiteID":"11",
            "SourceID":"99"
         },
         {
            "Amenities":null,
            "Country":"CANADA",
            "PhoneNumber":"N/A",
            "Extension":"N/A",
            "Hours24":"N/A",
            "City":"GOTHAM",
            "DawnDusk":"N/A",
            "Latitude":"N545454",
            "FuelTypes":"FUEL",
            "CardsAccepted":"CARD",
            "LocationID":999,
            "NetworkAffiliations":"CONTRACT_LOC|OUT_NETWORK",
            "MetroArea":"ARKHAM",
            "Contact":"JOHN DOE",
            "Customs":"N/A",
            "AddressLine2":"N/A",
            "State":"BC",
            "Fax":"N/A",
            "Email":"john.doe@abcd.ca",
            "Longitude":"W121212",
            "TimestampValue":"2021-01-27T17:07:35",
            "Hours":"N/A",
            "InternationalFax":"N/A",
            "Website":null,
            "Address":"AIRPORT",
            "InternationalPhone":"0987654321",
            "WeightValue":1100,
            "VendorName":"NEW VENDOR",
            "Services":null,
            "zipcode":"N/A",
            "CountryCode":"CA",
            "InternationalAirport":"N/A",
            "VendorID":"1111111",
            "FuelBrands":"N/A",
            "Region":"NORTH AMERICA",
            "VendorSiteID":"987654",
            "SourceID":"1111111"
         }
      ]
   }
}


 


Best Answer

You have to remove the VendorSiteID from the request and changing the value of SourceID with VendorSiteID's value. You can take valid payload samples from our generated Rest API Documentation.

1 Comment

Answer

You have to remove the VendorSiteID from the request and changing the value of SourceID with VendorSiteID's value. You can take valid payload samples from our generated Rest API Documentation.

Login to post a comment