In my developer sandbox I have created a simple custom url list button that has the following:
{!URLFOR($Action.Custom_Object__c.New)}
When I use this button on some of my record it results in the creation of a new record as expected. However, on other records it results in the URL No Longer Exists page.
On one of the broken records, I used the standard clone button to create a copy and on the resulting record the test button works.
Inspecting the button on the broken record:
<input value=" Test " class="btn" name="test" onclick="this.form.action = '/servlet/servlet.Integration?lid=00bc0000000R8tB&eid=800c0000000LDfY&ic=1&retURL=%2F800c0000000LDfY&wrapMassAction=1&scontrolCaching=1'; this.form.onsubmit = function() { return true }" title="Test" type="submit">
Inspecting the button on the working copied record:
<input value=" Test " class="btn" name="test" onclick="this.form.action = '/servlet/servlet.Integration?lid=00bc0000000R8tB&eid=800c0000000LVqG&ic=1&retURL=%2F800c0000000LVqG&wrapMassAction=1&scontrolCaching=1'; this.form.onsubmit = function() { return true }" title="Test" type="submit">
My question: Could data in the broken record be somehow causing this issue or does anyone know what else the issue could be?
Notes: The data was imported using Jitterbit from data queried from our Production org. Our sandbox has been updated to Summer15, but I do not know if the problem started before or after the update. The standard New button works as it should on all records.
Edit: Not using visualforce on either object. The original button and record in production work fine and a clone of the record causing the error works fine.