Can't sync table with attachment - Exporting attachments for layer 6 failed.

423
3
08-22-2018 06:55 AM
YunFengWu
New Contributor

Error Domain=com.esri.arcgis.runtime.services.error Code=500 "Unable to create replica. Please check your parameters." UserInfo={NSLocalizedFailureReason=Exporting attachments for layer 6 failed., NSURL=https://services3.arcgis.com/u3phwU3HZ4xu9RY1/arcgis/rest/services/HazRT_TransactionalData/FeatureSe..., responseJSON={

    error =     {

        code = 500;

        details =         (

            "Exporting attachments for layer 6 failed."

        );

        message = "Unable to create replica. Please check your parameters.";

    };

    lastUpdatedTime = 1534943956840;

    replicaID = "51499c33-153a-4743-82e5-40474fd7d69b";

    replicaName = "MyReplica_1112";

    status = Failed;

    submissionTime = 1534943944933;

    targetType = client;

}, NSLocalizedDescription=Unable to create replica. Please check your parameters.}

0 Kudos
3 Replies
YunFengWu
New Contributor

The table structure like this Hazard (Geometry layer) - > HazardAttachment(Non spatial table with attachment enabled, we add actual image in this table, not in hazard layer ) and the relation is 1 to many. Here we didn't put attachment directly in Hazard layer due to some business logic consideration.

The problem is we can successfully add Hazard record and HazardAttachment record along with the image to the service. And we can view the uploaded image from the web. But when we want to offline/download the data from service, the  service returned the error with message "Exporting attachments for layer 6 failed." , here layer 6 means HazardAttachment table. 

Can anyone help to check this? Thanks.

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Hi YunFeng Wu,

Are you able to share that data with us? This seems unexpected and we'd like to reproduce the issue.

Thanks!

Nick.‌

0 Kudos
YunFengWu
New Contributor

I can share you with the local geodatabase file and you can find the file in the attachment.

Below is the summary of the problem:

We can add attachment to the table named HazardAttachment and can upload the new record with the attachments to the server. But when we want to sync down the attachments from the server, we got this message "Exporting attachments for layer 6 failed." In short, attachment can upload, but can not download. 

0 Kudos