+ Start a Discussion
sangeeta.marathe@Futurewise.cosangeeta.marathe@Futurewise.co 

can u help me on this error

when i execute my class in production envt i am getting the following error

Invalid field Retirement_Age__c for SObject Account

  i have created the field named Retirement Age in my Account object. when i saved my class it did not give me any error msg that field does not exist.

please help with this 

RaumilRaumil

Hello Sangeeta

Are you using Sandbox for Developement then i think in sandbo you have created the field but forgot to create the field in Production.

 

Another problem could be the field you created in Production may have different API name rather than used in class so it may also cause the error

 

Hope this helps

Regards

Raumil Setalwad

sangeeta.marathe@Futurewise.cosangeeta.marathe@Futurewise.co

thanks i cheked the api name its the same.

but the feilds since i added them in sandbox i am not bale to view them in production. what shld i do for viewing them in production

RaumilRaumil

Have you created the same fields which are there in sandbox in Production or You have deployed via change set from sandbox to Production.

 

If you have deployed from Sandbox then set the field level security to visible for that fields.

 

If you haven,t created than create the fieds in Production same as sandbox and then give a try

 

Hope this helps

Regards

Raumil Setalwad