You need to sign in to do that
Don't have an account?
DrawloopSupport
Problem creating document because of DeveloperName
We recently ran into a problem when we create a document via the api when the document name is the same. The error we are getting is
"Create Failed: DUPLICATE_DEVELOPER_NAME: This Document Unique Name already exists. Please choose a unique name. -- DeveloperName"
I thought that specifying the DeveloperName on the document object would be enough, but when I try that, the error I get is
"Create Failed: INVALID_FIELD_FOR_INSERT_UPDATE: Document: bad field names on insert/update call: DeveloperName -- DeveloperName"
This seems a bit contradictory. Any help would be greatly appreciated. Thanks!
"Create Failed: DUPLICATE_DEVELOPER_NAME: This Document Unique Name already exists. Please choose a unique name. -- DeveloperName"
I thought that specifying the DeveloperName on the document object would be enough, but when I try that, the error I get is
"Create Failed: INVALID_FIELD_FOR_INSERT_UPDATE: Document: bad field names on insert/update call: DeveloperName -- DeveloperName"
This seems a bit contradictory. Any help would be greatly appreciated. Thanks!
https://wiki.apexdevnet.com/index.php?title=Special:Userlogin&returnto=Members:Creating_On-Demand_Apps_PDF
https://wiki.apexdevnet.com/index.php?title=Special:Userlogin&action=submitlogin&type=login&returnto=Members:Creating_On-Demand_Apps_PDF
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry '{my name} ({my name)' for key 2 (localhost)".
Message Edited by mark_s on 12-03-2008 11:07 AM
Presuming that the Salesforce systems are built upon their own framework it might suggest that the underlying method in the database (not exposed via the API) is at fault
good luck
Hi,
I also want to create documents in Salesforce using the API. I am new to SalesForce and am not getting enough information on how to be able to do that. Can you let me know how are you proceeding with it.
Swati
Simon,
Can you add any input to the original question?
Thanks.
We are still having problems with this error. If anyone can help, it would be greatly appreciated.
Hi,
Did you get any solution to this problem ?????
I believe the only solution, unfortunately, is to catch this exception and retry the request after a short wait.
trmp,
Thank you for the solution. But is there any exact time limit ???
Murthy