Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Salesforce upsert using internal id: the id field tuple not to be sent if stream field is empty (insert) #2820

Closed
liosc opened this issue Apr 13, 2023 · 0 comments · Fixed by #2829
Assignees
Labels
Milestone

Comments

@liosc
Copy link

liosc commented Apr 13, 2023

Apache Hop version?

2.3.0

Java version?

jdk-11.0.15.10

Operating system

Windows

What happened?

When in Salesforce upsert transform you used the internal id as "Upsert comparison field", the tuple regarding this field should not be sent in case the stream field value is null or empty. This is the insert scenario where you don't have a Salesforce id so you leave the stream field empty or null. At the moment in this case the transform gives back the error "Errors were found on item 0 Error code is: INVALID_ID_FIELD Error message: ID referente: tipo non corretto valore ID: ". Removing the field from the fields table, the error disappears but that means the need to have two transforms, one for inserting and one for updating. The same concept of "upsert" is lost.

Issue Priority

Priority: 1

Issue Component

Component: Transforms

@github-actions github-actions bot added P1 Critical Issue Transforms labels Apr 13, 2023
@sramazzina sramazzina self-assigned this Apr 13, 2023
@sramazzina sramazzina added this to the 2.5 milestone Apr 20, 2023
@sramazzina sramazzina mentioned this issue Apr 20, 2023
5 tasks
hansva added a commit that referenced this issue Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants