You need to sign in to do that
Don't have an account?
Sriram M
Problem in Deploying files from Sandbox to Deploy
Hi all,
I am facing the following issue when making a deploy from a sandbox environment.
From the problem, I could see the privilege is not sufficient to validate or deploy the test classes.
But I have system administrator privilege to the environment. Not sure how to proceed with this.
Thanks in advance.
Sriram
I am facing the following issue when making a deploy from a sandbox environment.
From the problem, I could see the privilege is not sufficient to validate or deploy the test classes.
But I have system administrator privilege to the environment. Not sure how to proceed with this.
Thanks in advance.
Sriram
All Answers
My account do not have the Knowledge user privilege. Should I try the deploy with an account with Knowledge user privilege?
Thanks,
Sriram
The Knowledge user licence issue part is fixed. I wonder why the Null pointer exception is occuring. Since the same Controller code and its associated Test classes are running fine in the sandbox. But it is throwing the Null pointer exception when I tried to validate the Inbound change set before deploying.
Below is my Controller class
Below is my Test class:
Thanks in advance.
I'm not sure whether what i'm saying below make sense.
In the above test class code which I have added, in the line numbers 018, 042 and 077 the field 'contactEmail' is a form variable which i declared and used in the visual force page. I'm using this value to get the email from user rather than user the 'email' object defined in 'Contact' class.
I'm not sure whether the particular variable could be recognized by production environment. As I could see the failure report in the deployment status, the test methods m1(), m2() and m3() are getting failed but not the method m4() in which that particular variable is commented out (092).
Please share your thoughts on this.
Thanks in advance.
Thanks for the suggestion.
I checked the processes using debug Log and found the problem occurs in a trigger file as you suggested. I fixed it and the validations went succesful for all the classes. But we are struck up now in an error which doesn't have any relation with our change set.
In the above screenshot, the class subscriptionTest is not an included component in the outbound change set. Its dependent files are also not available in the change set. But somehow it is throwing the above error when validating the inbound changeset in production environment.
Is it possible that a class file adds itself to a change set automatically without explictly adding it? Are there any option to prevent it?
Please enlighten me..
Thanks in advance