No such column 'DeveloperName' on entity 'RecordType' after Summer '19 release on sandboxFlow error - The field “Name” isn’t valid for the “Contact” object after Summer 19 previewUnable to load jQuery in Salesforce Lightning Application after Salesforce Locker Service enable in Summer '16 ReleaseInvalid field RecordTypeId for SObject CaseCustom Lightning Components Failing with the new Summer '17 Release?How do you access the user's choice for RecordType when using a lightning component to override the New button on a custom object?Lightning Component/Inner Class Bug after Spring 18 sandbox updateProblem with sending Date as string from Aura to Apex. (after Summer 18 release on sandbox)Uncaught Assertion Failed - label attribute requiredUncaught TypeError Issue with the Lightning datepicker Introduced in Summer '18How to get object metadata like recordtypes entirely clientside in a Lightning Component?Unable to save Existing Lightning Components after Summer19 release sandboxes
Holding rent money for my friend which amounts to over $10k?
Will a coyote attack my dog on a leash while I'm on a hiking trail?
Smooth function that vanishes only on unit cube
Why did the soldiers of the North disobey Jon?
How to disable Two-factor authentication for Apple ID?
Filter a data-frame and add a new column according to the given condition
Find the unknown area, x
Why are solar panels kept tilted?
Extract the characters before last colon
Were any toxic metals used in the International Space Station?
White foam around tubeless tires
Do we have C++20 ranges library in GCC 9?
Why does SSL Labs now consider CBC suites weak?
Offered a new position but unknown about salary?
Is 12 minutes connection in Bristol Temple Meads long enough?
Are there any sonatas with only two sections?
Did galley captains put corks in the mouths of slave rowers to keep them quiet?
How to redirect stdout to a file, and stdout+stderr to another one?
Is there any way to adjust the damage type of the Eldritch Blast cantrip so that it does fire damage?
Is 95% of what you read in the financial press “either wrong or irrelevant?”
Single word that parallels "Recent" when discussing the near future
What information exactly does an instruction cache store?
How might a landlocked lake become a complete ecosystem?
How do I adjust encounters to challenge my lycanthrope players without negating their cool new abilities?
No such column 'DeveloperName' on entity 'RecordType' after Summer '19 release on sandbox
Flow error - The field “Name” isn’t valid for the “Contact” object after Summer 19 previewUnable to load jQuery in Salesforce Lightning Application after Salesforce Locker Service enable in Summer '16 ReleaseInvalid field RecordTypeId for SObject CaseCustom Lightning Components Failing with the new Summer '17 Release?How do you access the user's choice for RecordType when using a lightning component to override the New button on a custom object?Lightning Component/Inner Class Bug after Spring 18 sandbox updateProblem with sending Date as string from Aura to Apex. (after Summer 18 release on sandbox)Uncaught Assertion Failed - label attribute requiredUncaught TypeError Issue with the Lightning datepicker Introduced in Summer '18How to get object metadata like recordtypes entirely clientside in a Lightning Component?Unable to save Existing Lightning Components after Summer19 release sandboxes
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am getting the error
No such column 'DeveloperName' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source
when saving a Lightning component on my sandbox after Summer '19 release.
The Lightning component is using an Apex class where the below code is causing the error :
Set<String> objAPINames = new Set<String>'Account', 'Opportunity';
Map<String,Id> mapValues = new Map<String,Id>();
for(RecordType rt : [select SobjectType, DeveloperName, Id
from RecordType
where SobjectType IN :objAPINames
order by SobjectType ASC ])
mapValues.put(rt.DeveloperName, rt.Id);
This code works fine in Developer Console, Apex Classes, Triggers.
It is only causing error when I am saving Lightning Component calling the class.
Anyone got this issue after the new release?
lightning-aura-components record-type summer19
|
show 1 more comment
I am getting the error
No such column 'DeveloperName' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source
when saving a Lightning component on my sandbox after Summer '19 release.
The Lightning component is using an Apex class where the below code is causing the error :
Set<String> objAPINames = new Set<String>'Account', 'Opportunity';
Map<String,Id> mapValues = new Map<String,Id>();
for(RecordType rt : [select SobjectType, DeveloperName, Id
from RecordType
where SobjectType IN :objAPINames
order by SobjectType ASC ])
mapValues.put(rt.DeveloperName, rt.Id);
This code works fine in Developer Console, Apex Classes, Triggers.
It is only causing error when I am saving Lightning Component calling the class.
Anyone got this issue after the new release?
lightning-aura-components record-type summer19
2
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
1
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
1
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14
|
show 1 more comment
I am getting the error
No such column 'DeveloperName' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source
when saving a Lightning component on my sandbox after Summer '19 release.
The Lightning component is using an Apex class where the below code is causing the error :
Set<String> objAPINames = new Set<String>'Account', 'Opportunity';
Map<String,Id> mapValues = new Map<String,Id>();
for(RecordType rt : [select SobjectType, DeveloperName, Id
from RecordType
where SobjectType IN :objAPINames
order by SobjectType ASC ])
mapValues.put(rt.DeveloperName, rt.Id);
This code works fine in Developer Console, Apex Classes, Triggers.
It is only causing error when I am saving Lightning Component calling the class.
Anyone got this issue after the new release?
lightning-aura-components record-type summer19
I am getting the error
No such column 'DeveloperName' on entity 'RecordType'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.: Source
when saving a Lightning component on my sandbox after Summer '19 release.
The Lightning component is using an Apex class where the below code is causing the error :
Set<String> objAPINames = new Set<String>'Account', 'Opportunity';
Map<String,Id> mapValues = new Map<String,Id>();
for(RecordType rt : [select SobjectType, DeveloperName, Id
from RecordType
where SobjectType IN :objAPINames
order by SobjectType ASC ])
mapValues.put(rt.DeveloperName, rt.Id);
This code works fine in Developer Console, Apex Classes, Triggers.
It is only causing error when I am saving Lightning Component calling the class.
Anyone got this issue after the new release?
lightning-aura-components record-type summer19
lightning-aura-components record-type summer19
edited May 9 at 15:39
David Reed♦
42k82463
42k82463
asked May 9 at 15:38
N..N..
914421
914421
2
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
1
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
1
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14
|
show 1 more comment
2
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
1
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
1
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14
2
2
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
1
1
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
1
1
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14
|
show 1 more comment
2 Answers
2
active
oldest
votes
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
add a comment |
Check this Know Issue with workaround:
salseforce known issue
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f261799%2fno-such-column-developername-on-entity-recordtype-after-summer-19-release-o%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
add a comment |
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
add a comment |
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.
Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.
answered May 9 at 16:23
Ashish SharmaAshish Sharma
623315
623315
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
add a comment |
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
1
1
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
To all those having similar issue, 'Compile all classes' works. But I had to do it more than once. I did it yesterday, all was good. Today I login to continue working on my Lightning Component and I got same issue. So I had to 'Compile all classes' again. Until Salesforce applies a patch, we may need to compile all classes a few times.
– N..
May 10 at 10:25
1
1
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
This release is still in preview. So I am pretty sure that before GA, Salesforce will resolve this or they will not release the update which is causing this.
– Ashish Sharma
May 10 at 11:16
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
I agree on this point, Ashish. Hoping for a fix soon though.
– N..
May 10 at 11:43
add a comment |
Check this Know Issue with workaround:
salseforce known issue
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
add a comment |
Check this Know Issue with workaround:
salseforce known issue
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
add a comment |
Check this Know Issue with workaround:
salseforce known issue
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
Check this Know Issue with workaround:
salseforce known issue
Workaround
Use Metadata Api or VS Code and SFDX to deploy changes to your lightning components
answered May 9 at 16:35
sdandamud1sdandamud1
1167
1167
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
add a comment |
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
Thanks. I managed to solve the issue by recompiling all Apex Classes as suggested by Ashish. The link to the known issue is useful though. Thank you very much.
– N..
May 9 at 16:58
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f261799%2fno-such-column-developername-on-entity-recordtype-after-summer-19-release-o%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Did you try recompiling all the classes in your org. Go to apex classes under setup and use compile all classes link. We faced something similar and got it fixed by recompiling all the classes
– Ashish Sharma
May 9 at 15:45
Thank you so much @AshishSharma. It worked. I need to deploy those Lightning Components and classes to another Summer '19 sandbox and a Spring '19 production environment. The code does not exist in those org. yet. Do you think there will be similar issue while deploying?
– N..
May 9 at 16:01
1
I am not sure but It should not be an issue as this will be new metadata moving to target org. In case if it causes any issue, you can always deploy it in parts. First moving the classes, compile the classes/run test classes and then deploy lightning component.
– Ashish Sharma
May 9 at 16:07
1
@AshishSharma You should add your comments as an answer as that seemed to be the resolution here.
– Jayant Das
May 9 at 16:14
Ok @AshishSharma. Thank you so much for your help. I shall keep that in mind.
– N..
May 9 at 16:14