-
Notifications
You must be signed in to change notification settings - Fork 66
undefined local variable or method `transformname' #506
Comments
I just tried this and got a similar result. It's not actually a bug; rather, it's a difference in how the name of the transform is determined. In the example you linked to, the file is called "trans-ex.sjs", but it is deployed to http://localhost:8000/LATEST/config/transforms/js-example. The name js-example is not in the code, so Roxy has no way of coming up with that name. Instead, Roxy uses the file name. My steps:
@Thijxx, please confirm that this addresses what you saw. |
I do not understand what you did but these are my steps. You 'verify that the transform was deployed' at step 4 but that is exactly my issue, thats not posible. _cswifi-transform.sjs_
Then I deploy this with: And then I get this error:
|
I'm afraid that is a plain bug. It looks like the command used to take a transformname as param, but now takes --file instead. Code still refers to transformname though. It needs to be derived from the filename. I think you can bypass this issue by not using the --file flag, which I think would cause all transforms to get loaded.. |
Yes that is a useful work-around. Thanks. |
Fixed #506: typo in deploy_transform
Fixed in dev.. |
This error occurs when following the exact steps here: https://docs.marklogic.com/guide/rest-dev/transforms#id_26300
Seems to me there is something missing in the ML documentation about naming the transformation or Roxy does not deploy the tranform in sjs right?
The text was updated successfully, but these errors were encountered: