You need to sign in to do that
Don't have an account?
swaran
URGENT:On test methods.
In testmethod I inserted a account with Name field.Its showing the following message
System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>
But I am able to create Account record through tab.
Yes, I have Unique field. but I am not giving the unique filed value while creating the record.
When I create record using tab, I can still create record without the unique filed value.
Actually, it was working yesterday. Some how its not today.
I tried to insert Account records in test methods,but we are facing this error "System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>".
There is only one unique field in Account object and we assigned unique values only when we were creating
Account records.But still this problem is existing.
Let's be clear about the extent of this issue- it also prevents uploading new package versions (if the package contains Apex tests which create accounts).
This is a major blocker for us, as last night's deploy fixed a different blocker for us releasing an upgrade. We are still unable to move forward.
Actually I think the true impact is far broader - most kinds of code deployment will be impossible.
We are trying to deploy a simple code modification, unrelated to anything with auto-number fields. But our pre-existing trigger test methods are failing due to this new error, which in turn causes us to fail code coverage on the target org (you must attain at least 1% code coverage on triggers). So the deployment fails.
It's not appropriate now, but at some point this bears more commentary. Rules about not editing Apex in production, not allowing deployments with low code coverage, and not allowing disabling of production triggers all sound good on a whiteboard but fall rather short in real-life scenarios. At some point, these simplistic, inflexible rules will have to change as the ecosystem grows. Today's unpleasantness highlights the shortcomings of such rules when applied to "real" companies running mission-critical systems on Force.com.
Confirmed that it works now. Thanks so much for a speedy recovery.
Bugs happen- it is impressive that you guys are able to do a hot deploy in the middle of the work day to fix this bug without adversly affecting performance.
I am getting the same error in my instance.
Please look into this.
hi, In testmethod showing the following message
System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: unknown duplica el valor en el registro con Id.: a0I20000000vRju
thanks
Sorry, I saw my error and now work fine.
thanks