Posted Sat, 21 Aug 2021 01:45:50 GMT by Edward Clarke Community Service Partners Director of Information Technology

I'm working with checking out a file to the file system and when I hit the line "Using result = Await connection.EasyCheckOutToFileSystemAsync(fileCabinetId, docId).ConfigureAwait(False)" - it exits the function and does not download a file. No exception is being thrown.  I walked thru the code line by line.  The variables being passed in are correct - the connection is open, fileCabinetId and docId all have values and they do match up to what DocuWare has.  I'm confused on this part.

Async Function CheckOutToFileSystem(ByVal connection As ServiceConnection, ByVal fileCabinetId As String, ByVal docId As Integer) As Task(Of FileInfo)

        Try
            Set_Status("Downloading file...")

            Using result = Await connection.EasyCheckOutToFileSystemAsync(fileCabinetId, docId).ConfigureAwait(False)
                Dim tempPath = Path.Combine(Path.GetTempPath(), result.EncodedFileName)

                Set_Status("Path: " & tempPath)

                Using file = System.IO.File.Create(tempPath)
                    Using stream = result.Response.Content
                        Await stream.CopyToAsync(file).ConfigureAwait(False)
                    End Using
                End Using

                Set_Status("Download complete!")

                Return New FileInfo(tempPath)

            End Using
        Catch ex As Exception
            Beep()
        End Try

    End Function
Posted Sat, 28 Aug 2021 01:45:51 GMT by Matthias Wieland DocuWare Europe GmbH Sr. Director Support EMEA
Dear Edward Clarke! It looks like the Community cannot answer your question. That's why we have opened a Support Request with the Number SR-158305-M2M5K for you. A Software Support Specialist will contact you directly to follow up. We will update this thread with the solution as soon as we have resolved the Support Request. With best regards, DocuWare Support Team

You must be signed in to post in this forum.