Forum Discussion
THANKS for the help. On the recursive one, with the expression library, I installed the library in the pipeline profile expressions section. I did it as objutil, though I don’t think that matters. I tried the lib.objutil.cleanupTree($) in a mapper connected to the original mapper. It was put in the source section. I didn’t put anything in the target section. When I put it in the source section, it did show a preview of what was there, with … for the values. I even tried to change the name, to see if it gave an error, as I would expect. It did. So it looks like it is installed right. What am I doing wrong?
The reason I want to do this is simply to exclude fields from being updated in the target, selectively. I don’t expect any special processing to be done between it and the target. Between this, and the option del specified, I think this would really help snaplogic’s customers on this type of problem.
Del’s solution would probably work on 80% of the original concern, but the recursive option should work on just about everything.
Steve
You need to put $ in the target path so that the result of the cleanupTree() function is used as the new output value. The ‘Pass Through’ option should also be unchecked. Without $ in the target path, lib.objutil.cleanupTree($) is treated as the JSON-Path to delete.
- stephenknilans8 years agoContributor
THANKS, that did it! I thought I had tried the “$” as well, but it works now. THANKS!
- stephenknilans7 years agoContributor
Did anything happen to cause this to break? It doesn’t seem to work anymore.