You need to sign in to do that
Don't have an account?
Error While adding a record into object
Hi,
I am getting bellow error while adding a record into projects object, what is this exactly mean.
Error: Invalid Data.
Review all error messages below to correct your data.
You must have a Group Name in order to create Projects. Contact an LM2 Admin in order to correct.
I am getting bellow error while adding a record into projects object, what is this exactly mean.
Error: Invalid Data.
Review all error messages below to correct your data.
You must have a Group Name in order to create Projects. Contact an LM2 Admin in order to correct.
projectToNetDocuments
Check Line number 32
All Answers
I suggest to check required fields for Projects.
Please paste your code .
Let us know if it helps you.
Please check Project Validation Rules.
There is a validation rule to check the Group Name is blank, and fires the error.
I have only these validation rules.
Nothing related to Group name or something.
Only two fields are required and I am passing values for those two fields.
Why it is saying contact LM2 Admin ? Is this something related to Permissions If so where can I resolve this issue.
Is it a visualforce page with Apex Controller/Extension?
Why don't you check Debug Logs to trace the exception. https://www.salesforce.com/us/developer/docs/apexcode/Content/code_setting_debug_log_levels.htm
No Its not Visualforce page. Its direct custom object, its working for production account but not for sandbox account(System Administrator).
And post Debug Log Screenshots if you are not able to trace.
Project it self is master Object,It having few child objects.
Nothing related to object in the Debug log.
Go to Setup > Monitor > Logs > Debug Logs.
Click New and add your user to monitor. then repeat the process of creating the Projects.
Then refresh the debug logs page, then you would be getting a log with something like a01/e
KeyPrefix/e
Open that log and click Ctrl + F and search for the insert
Post screenshots of the Log
I got traced bellow code in log.
projectToNetDocuments
Check Line number 32
I didn't understood completly.
Is that trigger is failing ?. I think trigger is AfterInsert I check the values from the developer console, I didn't see any values in the object.
I don't understand your company's requirements, I only understand Apex.
When I say that there is a trigger on Project and the line number where you are adding the error, you are coming back to me that you don't understand.
I don't know any reason why is that trigger unless you post that trigger code here. You, as a developer of your company must have known why is that trigger and when would it throws the error.
FYI, trigger is not failing, trigger is adding an error message. at 32 line
Check your user record for the field Group_Name__c
Fill it and try again. I hope that would work.
Sorry for asking too many questions, I am very new to Salesforce,
Finally its working, Thanks for your posts.
Was that the Group_Name__c in your user record empty? and Was that the reason for this error?
Reason is group name is different. Now I changed group name from my profile then its working.
Thanks