Record Sync : Unable to Sync due to system issue

Certified Lead Developer

Facing the following error when creating a new record where record sync is enabled. No recent changes in the code or in the record.

The record is marked as synced but its data has not yet been synced.

More than 50% of the hard disk space is available in the server. Doesn't seem to be a disk space issue. 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Do you see anything in the logs?

  • 0
    Certified Lead Developer
    in reply to Mathieu Drouin

    We have event log configuration along with write to record. In the log also similar information and no much information. 

    It is occurring randomly. Once in 3 process facing the error. It is not happening all the time. 

    --------------------------

    2023-09-06 18:06:48,477 [Appian Work Item - 112077 - WorkID 823 - execution01 - process 268576143 - model 15221 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=268473646, classname=com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity
    com.appiancorp.suiteapi.process.framework.ActivityExecutionException: The records could not be updated because the specified record type has not been synced or its existing synced data has been invalidated.
    at com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity.handleValidationErrors(WriteRecordsWithEventsActivity.java:215)
    at com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity.execute(WriteRecordsWithEventsActivity.java:111)
    at com.appiancorp.suiteapi.process.framework.AbstractActivity.perform(AbstractActivity.java:104)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:90)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:87)
    at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:23)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor.execute(LegacyActivityExecutor.java:87)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:88)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequestResponseCreator.getJavaActivityResultResponse(UnattendedJavaActivityRequestResponseCreator.java:22)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.getJavaActivityResultResponse(UnattendedJavaActivityRequest.java:67)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55)
    at com.appiancorp.common.persistence.data.AppianDataUserContextProvider.executeWithConsistentDataReads(AppianDataUserContextProvider.java:143)
    at com.appiancorp.process.engine.ProcessContinuationRequest.executeOuter(ProcessContinuationRequest.java:68)
    at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:129)
    at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36)
    at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110)
    at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:750)
    Caused by: com.appiancorp.record.service.error.RecordMutationValidationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The records could not be updated because the specified record type has not been synced or its existing synced data has been invalidated. (APNX-1-4564-006)
    at com.appiancorp.record.service.mutate.RecordMutationActivityValidatorImpl.validateRecordTypes(RecordMutationActivityValidatorImpl.java:166)
    at com.appiancorp.record.service.mutate.RecordMutationActivityValidatorImpl.validateRecordMapInputs(RecordMutationActivityValidatorImpl.java:60)
    at com.appian

Reply
  • 0
    Certified Lead Developer
    in reply to Mathieu Drouin

    We have event log configuration along with write to record. In the log also similar information and no much information. 

    It is occurring randomly. Once in 3 process facing the error. It is not happening all the time. 

    --------------------------

    2023-09-06 18:06:48,477 [Appian Work Item - 112077 - WorkID 823 - execution01 - process 268576143 - model 15221 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=268473646, classname=com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity
    com.appiancorp.suiteapi.process.framework.ActivityExecutionException: The records could not be updated because the specified record type has not been synced or its existing synced data has been invalidated.
    at com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity.handleValidationErrors(WriteRecordsWithEventsActivity.java:215)
    at com.appiancorp.process.runtime.activities.WriteRecordsWithEventsActivity.execute(WriteRecordsWithEventsActivity.java:111)
    at com.appiancorp.suiteapi.process.framework.AbstractActivity.perform(AbstractActivity.java:104)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:90)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:87)
    at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:23)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor.execute(LegacyActivityExecutor.java:87)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:88)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequestResponseCreator.getJavaActivityResultResponse(UnattendedJavaActivityRequestResponseCreator.java:22)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.getJavaActivityResultResponse(UnattendedJavaActivityRequest.java:67)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55)
    at com.appiancorp.common.persistence.data.AppianDataUserContextProvider.executeWithConsistentDataReads(AppianDataUserContextProvider.java:143)
    at com.appiancorp.process.engine.ProcessContinuationRequest.executeOuter(ProcessContinuationRequest.java:68)
    at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:129)
    at com.appiancorp.process.workpoller.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:36)
    at com.appiancorp.process.workpoller.WorkItem.run(WorkItem.java:110)
    at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:241)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:750)
    Caused by: com.appiancorp.record.service.error.RecordMutationValidationException: com.appiancorp.suiteapi.common.exceptions.AppianException: The records could not be updated because the specified record type has not been synced or its existing synced data has been invalidated. (APNX-1-4564-006)
    at com.appiancorp.record.service.mutate.RecordMutationActivityValidatorImpl.validateRecordTypes(RecordMutationActivityValidatorImpl.java:166)
    at com.appiancorp.record.service.mutate.RecordMutationActivityValidatorImpl.validateRecordMapInputs(RecordMutationActivityValidatorImpl.java:60)
    at com.appian

Children