This is regarding an issue coming up in publishing a JavaScript file to live environment from SDL Tridion environment from one publication only. It is possible to publish the file from the other publications to live as well as staging environment.
There are three JavaScript files uploaded with the same name in the unpublished state. The issue is coming up while publishing one of the file to the Live environment while the file gets published successfully to the staging environment. It gives the error
Expected one result and more found: 2
What does this error mean, and how can I solve my problem? After unpublishing and renaming the duplicate files, the issue doesn't get resolved.