Hello, I need some help on update transformation a...
# support
b
Hello, I need some help on update transformation api, I am getting "message":"Request failed with status code 400","msg":"RudderstackUploadError" error today but cannot figure out why
I think I figure out, the new library is having some changes that is referenced by the transformation script, but it's deadlocking for me, I am changing both
g
hi @billions-salesmen-82992 thanks for the update. I didn't understand which new library and transformation script had the issue? Is there something we need to fix?
b
hi @gentle-petabyte-80785 let's say in library I have an export function doSomething(), and transformation is referencing to that function, now I remove that function from both scripts, but since we can only update 1 script at a time, there will be a reference error and I cannot update any of those 2 scripts
g
I see. And it shows error when you save the changes at first but when you change the second one, it resolves the issue?
By "both scripts" you mean to say the one transformation script and another one the library script? Is that so?
b
it's transformation script and library script
I had to keep the export function (to be removed) on the library script and then remove the code that reference that function on transformation script first
then remove function from library script as 2nd step
g
ok. so there's nothing that needs to be changed I guess.
in RudderStack webapp
and you could have kept the fn in library if you wanted to use this in future. I guess, that wouldn't create error either