Deserialize
Deserializes an Avro file to JSON format.
Last updated
Was this helpful?
Deserializes an Avro file to JSON format.
Task version: 2.0.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.Avro
FilePath : String
Gets or sets the path to the Avro file you want to deserialize.
The file must be a valid Avro format file.
Default: -
Example: C:\results\myfile.avro
ThrowErrorOnFailure : Boolean
Gets or sets a value indicating whether to throw an exception when deserialization fails.
When set to true, exceptions will be thrown on failure. When set to false, errors will be returned in the Result object.
Default: True
Example: true
ErrorMessageOnFailure : String
Gets or sets a custom error message to use when deserialization fails and ThrowErrorOnFailure is false.
If empty, the original exception message will be used.
Default: -
Example: Custom error occurred during Avro deserialization
Json : Object
Gets or sets the deserialized JSON data as a dynamic object. Contains a JArray with the deserialized Avro records when successful, or error information when failed.
Example: [{"foo": "bar", "number": 123}]
Success : Boolean
Gets or sets a value indicating whether the deserialization operation was successful.
Example: true
Error : Error
Gets or sets the error information when the deserialization operation fails. This property is null when the operation is successful.
Example: null
Changelog for Task Frends.Avro.Deserialize.
New Options tab with error handling parameters (ThrowErrorOnFailure, ErrorMessageOnFailure)
Success property in Result to indicate task status
Error object in Result with detailed failure info
Error class with Message and AdditionalInfo properties
Options class for task configuration
ErrorHandler helper class for standardized error handling
Improved error handling with centralized logic
[Breaking] Renamed AvroFilePath to FilePath for consistency with Frends naming conventions
[Breaking] Moved FilePath from old parameter location to Input tab
Updated task structure to align with Frends development guidelines
Initial implementation
Last updated
Was this helpful?
Was this helpful?

