Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have seen many people struggling with this while migrating their workspaces or just importing an old workspace to a new Talend installation.
It's something very easy to fix, but it might take hours and days to find the solution.
The error
Screenshot
Solution
There are two solutions for this.
More about the issue here: https://talendsupport.force.com/talend/s/question/0D53p00007xnoA6CAI/solved-error-cannot-be-resolved-or-is-not-a-field?language=en_US
This posting was extremely helpful. I had recently changed a component in a Referenced Project, but had not changed the version (as I had only added a few additional fields to the existing mapping - in theory, no existing contracts were broken so to speak). However, once I loaded the main project (and Talend Studio could see the changes in the Referenced Project) the tRunJob that called the modified component would fail with the same compile time error "<component> cannot be resolved to a type". Nothing I did worked - resync'ing POMS did not work either. In fact, I could actually make a copy of the referenced component and put it in my main project and it would work fine. Also, other components that I had not changed still worked. Just the one I changed was experiencing this error.
After changing the version from 0.1 to 0.2., it worked fine.
Sometime the cause might be the dependency libraries are missing or they are not compatible, remove the jar files and re-install them could fix the issue.
Regards
Shong
This posting was extremely helpful. I had recently changed a component in a Referenced Project, but had not changed the version (as I had only added a few additional fields to the existing mapping - in theory, no existing contracts were broken so to speak). However, once I loaded the main project (and Talend Studio could see the changes in the Referenced Project) the tRunJob that called the modified component would fail with the same compile time error "<component> cannot be resolved to a type". Nothing I did worked - resync'ing POMS did not work either. In fact, I could actually make a copy of the referenced component and put it in my main project and it would work fine. Also, other components that I had not changed still worked. Just the one I changed was experiencing this error.
After changing the version from 0.1 to 0.2., it worked fine.
Glad I could help!