Skip to main content
May 10, 2024
Question

Unable to sync Records for Service Backed Record

  • May 10, 2024
  • 8 replies
  • 0 views

Hi,

I am trying to use syncRecords() to sync a service backed record. But it is every time returning error

The error is 

Dictionary errorMessage: "An error occurred while syncing record type [name=PS Complaint Service]. Details: Unable to sync due to an error in the sync expression. (APNX-1-4521-040)".

In the Identifers I have tointeger as well but didn't work

8 replies

stefanhelzle0001
Brainy
May 10, 2024

Did you try to start a manual full sync from the records editor?

May 10, 2024

Yes I have tried that and it worked fine

stefanhelzle0001
Brainy
May 10, 2024

Did you try to call a!syncRecords() manually? E.g. in a button saveInto? That might be easier to test.

shubhama926776
Brainy
May 10, 2024

 [mention:fb403056bf8f4bb4893a7b10adaa2cea:e9ed411860ed4f2ba0265705b8793d05] As you are passing  {"identifiers":[2]} as body make sure value 2 identifier should exist.

शुभम्
May 10, 2024

Yes the identifier exists

richardm900458
May 10, 2024

i am with stefan here. It sounds like there is a generel issue with the sync to the service. i double checked the above implementation with a DB backed record i knew was working fine. this looks good. so the issue is less on the webapi side.