FileTransferLastError Property

General info

Label

Last Error

Description

The last encountered error during file transfer.

Data type

String

Type

Regular

Code

13350

Symbolic name

MODEL_PROP_FILETRANSFERLASTERROR

Lua access code

syslib.model.properties.FileTransferLastError

Available since

1.92

Parent properties

FileSinkStatus | FileSourceStatus

Attributes

Name Tooltip
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_VOLATILE The property exists during runtime of the service only and is not saved to the image.

Examples

Read from or write to the FileTransferLastError property.

  • Lua

  • C#

-- Read from the FileTransferLastError
syslib.getvalue("<OBJECT FULL PATH>.FileSinkStatus.FileTransferLastError")

-- Write to the FileTransferLastError
syslib.setvalue("<OBJECT FULL PATH>.FileSinkStatus.FileTransferLastError", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the FileTransferLastError
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.FileSinkStatus.FileTransferLastError"));
// Write to the FileTransferLastError
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.FileSinkStatus.FileTransferLastError"));