I have template there is tray mapping working as well i defined in output preset But when i modify it or applay css than i send to workflow the tray mapping is not working.
really difficult to say what’s wrong without having the template and knowing more details.
You could print into a PostScript file and check the file with the working code against the file with the failing one. What’s different?
Also you could start with a simple plain template and check if this one is working with a simple tray mapping (e.g. printing section 1 on tray 1 and section 2 on tray 2, or something like that). If it’s successful you could add your css or change the tray mapping slightly. Does this cause the tray selection to fail at some point?