rafa
12/15/2022, 8:04 PMtap-redshift
to query a table in order to enrich salesforce data via target-salesforce
. i’m having trouble mapping the redshift records to the expected salesforce object.
if you have worked with target-salesforce
, especially with tap-redshift
as the extractor, let me know and i’d love some help. thanks!pat_nadolny
12/15/2022, 8:26 PMdan_ladd
12/15/2022, 8:41 PMrafa
12/15/2022, 8:48 PMTITLE: null
& title: TITLE
hey @dan_ladd, thanks for the heads up that there are helpful changes coming! blob intensifies and also that you’re willing to work through it with me on a zoom call! that’s very generous of you.
with pat’s hint and the changes coming, let me give it a go and if i’m still running into trouble, i’ll take you up on that offer ☺️rafa
12/15/2022, 9:17 PMmeltano.yaml
- name: target-salesforce
config:
action: update
is_sandbox: true
stream_maps:
account:
__alias__: Account
id: null
Id: id
resources: null
Resources: resources
group_organization_id: null
Traceback (most recent call last):
File "/project/.meltano/loaders/target-salesforce/venv/lib/python3.9/site-packages/target_salesforce/sinks.py", line 66, in _validate_schema_against_object
validate_schema_field(
File "/project/.meltano/loaders/target-salesforce/venv/lib/python3.9/site-packages/target_salesforce/utils/validation.py", line 26, in validate_schema_field
raise InvalidStreamSchema(f"{field_name} does not exist in SF Object")
target_salesforce.utils.exceptions.InvalidStreamSchema: group_organization_id does not exist in SF Object
dan_ladd
12/15/2022, 9:23 PMgroup_organization_id: null
remove group_organization_id
from the record or just set the value to null?pat_nadolny
12/15/2022, 9:25 PMpat_nadolny
12/15/2022, 9:26 PMrafa
12/15/2022, 9:28 PMnull
rafa
12/15/2022, 9:33 PMtarget_salesforce.utils.exceptions.InvalidStreamSchema: id does not exist in SF Object
rafa
12/15/2022, 9:33 PMdan_ladd
12/15/2022, 9:34 PMId
, not id
. Seems the inline maps isn't removing those fields from the recorddan_ladd
12/15/2022, 9:35 PMpat_nadolny
12/15/2022, 9:35 PMmeltano --environment=<your_env> config target-salesforce
what does it show (excluding creds)? I wonder if its properly picking up that configpat_nadolny
12/15/2022, 9:36 PMrafa
12/15/2022, 9:38 PM{
"client_id": "REDACTED",
"client_secret": "REDACTED",
"refresh_token": "REDACTED",
"is_sandbox": true,
"action": "update",
"stream_maps": {
"account": {
"__alias__": "Account",
"Id": "id",
"Resources": "resources"
}
}
}
rafa
12/15/2022, 9:39 PMid: null
?pat_nadolny
12/15/2022, 9:41 PMrafa
12/15/2022, 9:43 PMIt supposed to remove it (sdk stream maps docs) but I know there was a bug at one point 🤔in this earlier comment, you mentioned that it was a bug at one point. i’m assuming that means it was fixed. could this be something that is fixed by updating to the latest version of meltano?
rafa
12/15/2022, 9:44 PMv2.4.0-python3.9
dan_ladd
12/15/2022, 9:45 PMpat_nadolny
12/15/2022, 9:47 PMpat_nadolny
12/15/2022, 9:48 PMdan_ladd
12/15/2022, 9:50 PMedgar_ramirez_mondragon
12/15/2022, 9:52 PMnull
values from config, which is a problem for plugins that consider that a special value rather than simply missing. (#6382).
A workaround has been implemented on the SDK side by allowing the string __NULL__
to be used as a null value, but it sits unreleased atm.pat_nadolny
12/15/2022, 9:55 PMrafa
12/15/2022, 9:58 PMpat_nadolny
12/15/2022, 10:12 PM"__NULL__"
syntax to exclude fields properly.