Hey everyone, Loving what you have done with the ...
# help-connector-development
j
Hey everyone, Loving what you have done with the connector builder in 0.44! adding the publish/release new version button makes the whole process of using the builder a lot slicker. With the transformation section you have also added, are you able to add in dynamic values from a field on the record? For example i have a record selector which outputs a nested array, however, i want to also include one of the top level values in the response (in this instance i want to include the top level candidate Id but do a record selector on a nested skills table.) Thanks Josh
Completely ignore this, if only i hovered over the 'i' in the first place and read the "(use {{ record.existing_field }} syntax to reference to other fields in the same record" Thanks Josh
Actually, the add field doesn't seem to work (remove field does) no matter what value i put in the path, i get the same error message back ERROR
Copy code
'AirbyteMessage' object does not support item assignment - Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/dpath/segments.py", line 314, in set current[segment] TypeError: 'AirbyteMessage' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/connector-builder-server/./connector_builder/impl/low_code_cdk_adapter.py", line 63, in read_stream yield from generator File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/manifest_declarative_source.py", line 119, in read yield from super().read(logger, config, catalog, state) File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 130, in read raise e File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 116, in read yield from self._read_stream( File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 185, in _read_stream for record in record_iterator: File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 303, in _read_full_refresh for record_data_or_message in record_data_or_messages: File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 101, in read_records yield self._apply_transformations(record, self.config, stream_slice) File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 106, in _apply_transformations output_record = transformation.transform(record, config=config, stream_state=self.state, stream_slice=stream_slice) File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/transformations/add_fields.py", line 115, in transform dpath.util.new(record, parsed_field.path, value) File "/usr/local/lib/python3.9/site-packages/dpath/util.py", line 65, in new return dpath.segments.set(obj, segments, value) File "/usr/local/lib/python3.9/site-packages/dpath/segments.py", line 317, in set creator(current, segments, i, hints=hints) File "/usr/local/lib/python3.9/site-packages/dpath/segments.py", line 292, in __default_creator__ current[segment] = {} TypeError: 'AirbyteMessage' object does not support item assignment