Question

Alliance MobileEdge upload attachment errors

  • 28 February 2024
  • 2 replies
  • 43 views

Userlevel 4
Badge +10

Hi, our customer is using a lot checklist with a lot of photos to take.. From time to time all the photos are not sent to the servers, in the check list line concerned we see “see photo” but when we click nothing is displayed, no line exists into the ap_attachments table.

 

On the server side we can see 2 types of error and i don’t know if they are relevant : 

 

1 - 

Error uploading Attachment to Alliance            System.Exception: Error uploading Attachment to Alliance\r\n   at Astea.Mobile.Attachments.AttachmentsTransactions.SendAttachment(Dictionary`2 attachmentInfo) in F:\AgentBuild\29\s\Astea.Mobile.Attachments\Services\AttachmentsTransactions.cs:line 181\r\n   at Astea.Mobile.Attachments.AttachmentsService.UploadAttachment(Stream request, Boolean ignoreHeader) in F:\AgentBuild\29\s\Astea.Mobile.Attachments\Services\AttachmentsService.cs:line 90\r\n   at  etc ….

 

2-

The specified network name is no longer available. (0x80070040)            Microsoft.AspNetCore.Connections.ConnectionResetException: The client has disconnected\r\n ---> System.Runtime.InteropServices.COMException (0x80070040): The specified network name is no longer available. (0x80070040)\r\n   --- 

 

do you know what could be the cause of these messages ?

 

thanks for your feedback

Christophe


2 replies

Userlevel 7
Badge +21

HI Christophe,

This should be logged as a support ticket.  The first message has a direct bearing on attachments uploaded which presumably photos within a checklist are saved as attachments in the file server and database row is linked to it.  If it could not upload the file, though a link might be present which you can see, there is nothing to display as the file was never uploaded for whatever reason.

Important. suggest turning on Mobile debug and capture information from the client processes as well as the server processes.

The second message indicates the network disconnected.  I don't know if this was before or after the first message as not knowing the sort order of your event viewer.  So, if the network disconnected before the file could finish uploading then I would assume you would get an error about the uploading itself which you did.

 

The question then is why the disconnection and then is there any process that can be done to try again once the network is re-established.

 

Userlevel 7
Badge +15

Hi Christophe,
Check the Alliance Event Viewer log files just before the error is reported (sometimes the actual error message captured doesn’t have enough detail in it to pinpoint the problem but one of the records right before it time-wise has additional information as to why the transaction is failing) and those might be marked as Information entries and not Error entries so disable any filtering beforehand so it shows all records.
Thanks,
Reid

Reply