3 Replies Latest reply on Sep 23, 2015 3:18 PM by paic RSS
    rkandasamy Apprentice

    File transfer from server thing to remote thing in agent is not working

    I am transferring a zip file from server to remotethingwithfiletransfer in agent(EdgeSDK .net code ). But i the file is not copied to agent's virtual directory and i am getting  the below error "The given key was not present in the dictionary." in the result of calling copy service in thingworx server. Let me know if you could help me in resolving the same.

    Thanks.

      • Re: File transfer from server thing to remote thing in agent is not working
        paic Collaborator

        Check read/write permissions of your Repositories. It should be creating some sort of Temp subfolder I believe, might be failing that.

          • Re: File transfer from server thing to remote thing in agent is not working
            kirank01 Newbie

            Hi Now we are getting different error. The file is transferred from server repository to SDK solutions virtual directory. The file is transferred but in the result infotable of copy service

            1. Code is 500 instead of 200
            2. State is ERROR instead of VALIDATED
            3. Message is Unable To Convert From InfoTable to INFOTABLE instead of file transfer complete
            4. isComplete is flase instead of true.


            We had tried the same code with two different sdks. The code provided below is put into the service of a thing in server.

            var params = {

                            async: false /* BOOLEAN */,

                            sourceRepo: "Tierra" /* STRING */,

                            targetRepo: "Prescription" /* STRING */,

                            targetFile: FileName /* STRING */,

                            targetPath: "In" /* STRING */,

                            sourceFile: FileName /* STRING */,

                            sourcePath: "/" /* STRING */,

                            timeout: 150000 /* INTEGER */

            };

            ServerDirectory is a thing based on FileRepository. SDKCommonThing is a thing on the Dot net EDGE SDK side. We are not sure what causes Unable To Convert From InfoTable to INFOTABLE.

            Let me know if you could provide any input on the same.


            Given Result Table Below:

            targetChecksum

            code

            isAsync

            maxSize

            sourceFile

            startPosition

            duration

            isRestartEnabled

            targetFile

            startTime

            state

            sourcePath

            blockCount

            sourceRepository

            bytesTransferred

            targetPath

            sourceChecksum

            message

            transferId

            blockSize

            size

            endTime

            targetRepository

            user

            isComplete

            3fa8a947d6ce15fa97e1bd7cf860112f

            500

            false

            100000000

            Prescription001.zip

            0

            835

            true

            Prescription001.zip

            2015-09-22 12:03:43

            ERROR

            /Outgoing/Prescription001.zip

            12

            Tierra

            771137

            In/Incoming/Prescription001.zip

            3fa8a947d6ce15fa97e1bd7cf860112f

            Unable To Convert From InfoTable to INFOTABLE

            d3f0a7e5-3724-43cd-9954-b42c958e663e

            65536

            771137

            2015-09-22 12:03:44

            Prescription

            Administrator

            false