Skip to main content
Solved

Problem with transformer AttributeDecompressor

  • November 30, 2016
  • 2 replies
  • 39 views

danilo_fme
Celebrity
Forum|alt.badge.img+52

Hello Team.

I have a first Workspace that create a json file after i compressed my Attribute.

When i read the json created on first workspace and try to descompresse , i receive this message: attribute could not be decompressed.

What is wrong?

Attached my templates files.

Best answer by david_r

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • November 30, 2016

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:


danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Author
  • Celebrity
  • November 30, 2016

I suspect the JSON writer automatically forces the compressed binary value into its hexadecimal representation when writing the output JSON file. Then the AttributeDecompressor gets confused because it expects a binary value rather than a hexadecimal string. You can fix it by inserting a BinaryDecorder before the AttributeDecompressor:

 

Hello @david_r, your suggestion was perfect!!! Really the attribute is works with the tranformer BinaryDecoder.

 

 

Thanks your help.

 

 

Danilo de Lima