-
ChatterFeed
-
1Best Answers
-
1Likes Received
-
0Likes Given
-
13Questions
-
17Replies
Write SOQL queries Challenge
I am getting this error: Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30150000000GzkN. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []
Code is:
public class ContactSearch
{
public static List<Contact> searchForContacts(String St1, String St2)
{
List<Contact> ContctList = [select ID,Name from Contact where LastName = :St1 and MailingPostalCode = :St2];
return ContctList;
}
}
Please help!!
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30150000000GzkN. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []
Code is:
public class ContactSearch
{
public static List<Contact> searchForContacts(String St1, String St2)
{
List<Contact> ContctList = [select ID,Name from Contact where LastName = :St1 and MailingPostalCode = :St2];
return ContctList;
}
}
Please help!!
-
- Inna Gupta
- April 08, 2018
- Like
- 0
- Continue reading or reply
Advance Apex Specialist Step 8
Hi Guys ,
i am always facing this error:
Challenge Not yet complete... here's what's wrong:
Ensure that product2Controller is still working as specified in the earlier challenge.
here is my code :
public class Product2Extension {
//public List<Product2Extension.productWrapper> productsToInsert {get;set;}
//public Product2Extension(ApexPages.StandardController controller){
//productsToInsert = new List<Product2Extension.productWrapper>();
//AddRows(); }
public List<ProductWrapper> productsToInsert {get;set;}
public Product2Extension(ApexPages.StandardController controller){
productsToInsert = new List<ProductWrapper>();
addRows();
}
public void AddRows(){
for ( Integer i=0; i<Constants.DEFAULT_ROWS; i++ ){
productsToInsert.add( new Product2Extension.productWrapper() );
}
}
public List<ChartHelper.ChartData> GetInventory(){
return ChartHelper.GetInventory();
}
public List<SelectOption> GetFamilyOptions() {
List<SelectOption> options = new List<SelectOption>{
new SelectOption(Constants.SELECT_ONE, Constants.SELECT_ONE)
};
for (Schema.PicklistEntry ple : Constants.PRODUCT_FAMILY) {
options.add(new SelectOption(ple.getValue(), ple.getLabel()));
}
return options;
}
public PageReference Save(){
Savepoint sp = Database.setSavepoint();
try {
List<Product2> products = new List<Product2>();
List<PricebookEntry> entries = new List<PricebookEntry>();
for (ProductWrapper wrp : productsToInsert){
if(null!=wrp.productRecord && null!=wrp.pricebookEntryRecord){
if(null!=wrp.productRecord.Name && null!=wrp.productRecord.Family && constants.SELECT_ONE!=wrp.productRecord.Family
&& null!=wrp.productRecord.Initial_Inventory__c && null!=wrp.pricebookEntryRecord.UnitPrice){
products.add(wrp.productRecord);
PricebookEntry entry=wrp.pricebookEntryRecord;
entry.IsActive=true;
entry.Pricebook2Id=constants.STANDARD_PRICEBOOK_ID;
entries.add(entry);
}
}
}
insert products;
for (integer itr=0; itr<entries.size();itr++){
entries[itr].Product2Id=products[itr].id;
}
insert entries;
//If successful clear the list and display an informational message
apexPages.addMessage(new ApexPages.message(ApexPages.Severity.INFO,productsToInsert.size()+' Inserted'));
productsToInsert.clear(); //Do not remove
addRows(); //Do not remove
} catch (Exception e){
Database.rollback(sp);
apexPages.addMessage(new ApexPages.message(ApexPages.Severity.ERROR,constants.ERROR_MESSAGE));
}
return null;
}
public class ProductWrapper{
public product2 productRecord {get;set;}
public pricebookEntry pricebookEntryRecord{get;set;}
public productWrapper(){
productRecord = new product2(Initial_Inventory__c =0);
pricebookEntryRecord = new pricebookEntry(Unitprice=0.0);
}
}
}
Thanks,
Raghvendra
i am always facing this error:
Challenge Not yet complete... here's what's wrong:
Ensure that product2Controller is still working as specified in the earlier challenge.
here is my code :
public class Product2Extension {
//public List<Product2Extension.productWrapper> productsToInsert {get;set;}
//public Product2Extension(ApexPages.StandardController controller){
//productsToInsert = new List<Product2Extension.productWrapper>();
//AddRows(); }
public List<ProductWrapper> productsToInsert {get;set;}
public Product2Extension(ApexPages.StandardController controller){
productsToInsert = new List<ProductWrapper>();
addRows();
}
public void AddRows(){
for ( Integer i=0; i<Constants.DEFAULT_ROWS; i++ ){
productsToInsert.add( new Product2Extension.productWrapper() );
}
}
public List<ChartHelper.ChartData> GetInventory(){
return ChartHelper.GetInventory();
}
public List<SelectOption> GetFamilyOptions() {
List<SelectOption> options = new List<SelectOption>{
new SelectOption(Constants.SELECT_ONE, Constants.SELECT_ONE)
};
for (Schema.PicklistEntry ple : Constants.PRODUCT_FAMILY) {
options.add(new SelectOption(ple.getValue(), ple.getLabel()));
}
return options;
}
public PageReference Save(){
Savepoint sp = Database.setSavepoint();
try {
List<Product2> products = new List<Product2>();
List<PricebookEntry> entries = new List<PricebookEntry>();
for (ProductWrapper wrp : productsToInsert){
if(null!=wrp.productRecord && null!=wrp.pricebookEntryRecord){
if(null!=wrp.productRecord.Name && null!=wrp.productRecord.Family && constants.SELECT_ONE!=wrp.productRecord.Family
&& null!=wrp.productRecord.Initial_Inventory__c && null!=wrp.pricebookEntryRecord.UnitPrice){
products.add(wrp.productRecord);
PricebookEntry entry=wrp.pricebookEntryRecord;
entry.IsActive=true;
entry.Pricebook2Id=constants.STANDARD_PRICEBOOK_ID;
entries.add(entry);
}
}
}
insert products;
for (integer itr=0; itr<entries.size();itr++){
entries[itr].Product2Id=products[itr].id;
}
insert entries;
//If successful clear the list and display an informational message
apexPages.addMessage(new ApexPages.message(ApexPages.Severity.INFO,productsToInsert.size()+' Inserted'));
productsToInsert.clear(); //Do not remove
addRows(); //Do not remove
} catch (Exception e){
Database.rollback(sp);
apexPages.addMessage(new ApexPages.message(ApexPages.Severity.ERROR,constants.ERROR_MESSAGE));
}
return null;
}
public class ProductWrapper{
public product2 productRecord {get;set;}
public pricebookEntry pricebookEntryRecord{get;set;}
public productWrapper(){
productRecord = new product2(Initial_Inventory__c =0);
pricebookEntryRecord = new pricebookEntry(Unitprice=0.0);
}
}
}
Thanks,
Raghvendra
-
- Raghvendra Singh 22
- August 13, 2018
- Like
- 0
- Continue reading or reply
Advance Apex Specialist Superbadge step 8
Hi Guys,
I did every step carefully. i dont know why test coverage is very low
Can anyone help me
Thanks
I did every step carefully. i dont know why test coverage is very low
Can anyone help me
Thanks
-
- Raghvendra Singh 22
- August 10, 2018
- Like
- 0
- Continue reading or reply
how can we show lightning component in List view
Hi Guys,
How can we show lightning component in List View ?
is there any way ?
Thanks,.
Raghvendra
How can we show lightning component in List View ?
is there any way ?
Thanks,.
Raghvendra
-
- Raghvendra Singh 22
- July 15, 2018
- Like
- 0
- Continue reading or reply
Fetch the Email template and folder and show in dropdown in Lightning Component
Hi Guys,
How to achive this: Fetch the Email template and show in dropdown in Lightning Component
Thanks,
Raghu
How to achive this: Fetch the Email template and show in dropdown in Lightning Component
Thanks,
Raghu
-
- Raghvendra Singh 22
- May 27, 2018
- Like
- 0
- Continue reading or reply
Can anyone guide me regarding developer PD1 certification., How to prepare for it.
Hi All,
Can anyone guide me regarding developer certification PD1., How to prepare for it.
Thanks
Can anyone guide me regarding developer certification PD1., How to prepare for it.
Thanks
-
- Raghvendra Singh 22
- April 08, 2018
- Like
- 0
- Continue reading or reply
Phone validation in the format of e.164 ?? international format
Hi All,
I want to validate phone number in E.164 format?
Please help me
I want to validate phone number in E.164 format?
Please help me
-
- Raghvendra Singh 22
- March 05, 2018
- Like
- 0
- Continue reading or reply
Visualforce email template with multiple language
Hi All,
how to achieve Visualforce email template with multiple language.
Thanks,
Raghu
how to achieve Visualforce email template with multiple language.
Thanks,
Raghu
-
- Raghvendra Singh 22
- March 05, 2018
- Like
- 0
- Continue reading or reply
meta data search for particular object and its field (not on completed object ... i have more object in my org)
Hi All,
I have 6 objects which have a common field(Business Unit field). Now i need to take backup of all triggers, workflows,classes etc which are related to these objects and this field... i am trying to do in eclipse. Do you have any idea how to do it.
I have more object in my org but i need to take backup only 6 object and on the basis of its field.... Plz help me
Thank you all
I have 6 objects which have a common field(Business Unit field). Now i need to take backup of all triggers, workflows,classes etc which are related to these objects and this field... i am trying to do in eclipse. Do you have any idea how to do it.
I have more object in my org but i need to take backup only 6 object and on the basis of its field.... Plz help me
Thank you all
-
- Raghvendra Singh 22
- November 14, 2017
- Like
- 0
- Continue reading or reply
Meta data search for a particular object and its Field
Hi All,
I have 6 objects which have a common field(Business Unit field). Now i need to take backup of all triggers, workflows,classes etc which are related to these objects and this field... i am trying to do in eclipse. Do you have any idea how to do it?
Thanks,
Raghvendra Singh
I have 6 objects which have a common field(Business Unit field). Now i need to take backup of all triggers, workflows,classes etc which are related to these objects and this field... i am trying to do in eclipse. Do you have any idea how to do it?
Thanks,
Raghvendra Singh
-
- Raghvendra Singh 22
- November 14, 2017
- Like
- 0
- Continue reading or reply
Unable to read repository at http://media.developerforce.com/force.ide/eclipse42/content.xml. Socket operation on nonsocket: configureBlocking
Hi ,
Unable to read repository at http://media.developerforce.com/force.ide/eclipse42/content.xml.
Socket operation on nonsocket: configureBlocking i am getting this whenever i m=am trying to connect force.com with eclipse.
anyone plz help me
Thanks,
Raghu
Unable to read repository at http://media.developerforce.com/force.ide/eclipse42/content.xml.
Socket operation on nonsocket: configureBlocking i am getting this whenever i m=am trying to connect force.com with eclipse.
anyone plz help me
Thanks,
Raghu
-
- Raghvendra Singh 22
- November 06, 2017
- Like
- 0
- Continue reading or reply
Process Automation Superbadge step 2
Hi All,
plz could anyone help me to pass this challenge
Thanks
plz could anyone help me to pass this challenge
Thanks
-
- Raghvendra Singh 22
- November 01, 2017
- Like
- 0
- Continue reading or reply
How to complete step 1 Superbadge Lightning Experience Rollout Specialist
please help me ,i am not able to pass this step
Thanks
Thanks
-
- Raghvendra Singh 22
- October 01, 2017
- Like
- 1
- Continue reading or reply
how to insert picklist value through data loader
Hi,
Picklist value is not showing whenever i insert through data loader,Please anyone can help me
#dataManagement
#dataloader
Thanks
Picklist value is not showing whenever i insert through data loader,Please anyone can help me
#dataManagement
#dataloader
Thanks
-
- Raghvendra Singh 22
- September 19, 2017
- Like
- 0
- Continue reading or reply
How to complete step 1 Superbadge Lightning Experience Rollout Specialist
please help me ,i am not able to pass this step
Thanks
Thanks
-
- Raghvendra Singh 22
- October 01, 2017
- Like
- 1
- Continue reading or reply
Fetch the Email template and folder and show in dropdown in Lightning Component
Hi Guys,
How to achive this: Fetch the Email template and show in dropdown in Lightning Component
Thanks,
Raghu
How to achive this: Fetch the Email template and show in dropdown in Lightning Component
Thanks,
Raghu
- Raghvendra Singh 22
- May 27, 2018
- Like
- 0
- Continue reading or reply
- Meng Liu 9
- April 08, 2018
- Like
- 0
- Continue reading or reply
Write SOQL queries Challenge
I am getting this error: Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30150000000GzkN. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []
Code is:
public class ContactSearch
{
public static List<Contact> searchForContacts(String St1, String St2)
{
List<Contact> ContctList = [select ID,Name from Contact where LastName = :St1 and MailingPostalCode = :St2];
return ContctList;
}
}
Please help!!
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30150000000GzkN. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.: []
Code is:
public class ContactSearch
{
public static List<Contact> searchForContacts(String St1, String St2)
{
List<Contact> ContctList = [select ID,Name from Contact where LastName = :St1 and MailingPostalCode = :St2];
return ContctList;
}
}
Please help!!
- Inna Gupta
- April 08, 2018
- Like
- 0
- Continue reading or reply
Challenge Not yet complete... here's what's wrong: You need to run Salesforce Optimizer for your org.
Hi,
I am not able to run optimizer in my org, can anyone please help me
I am not able to run optimizer in my org, can anyone please help me
- Raghvendra Singh 26
- October 01, 2017
- Like
- 1
- Continue reading or reply
Badges don't show on my Success Profile
I've turned on the functionality in my profile and linked it to my Trailhead account, yet no badges are showing. Please advise?

- Tracey Tatum
- August 04, 2017
- Like
- 0
- Continue reading or reply
I've verified and linked my Trailhead profile but the badges are not showing up. Any ideas on what I can check?
Hi,
I have 31 trailhead Badges:

But in partners account, it is showing 0:

Can anyone please tell where to check for this issue?
Regards,
Dheer
I have 31 trailhead Badges:
But in partners account, it is showing 0:
Can anyone please tell where to check for this issue?
Regards,
Dheer
- Dheer Singh
- January 09, 2017
- Like
- 0
- Continue reading or reply
How to set up salesforce project in eclipse IDE?
Hi,
I want to develop salesforce code in my local eclipse environment. I follwed steps mentioned here :
https://developer.salesforce.com/page/Force.com_IDE
So my eclipse is ready now but I dont know how to import code(apex classes, components, visual force pages) from my sandbox into my local enviornment and how I can again deply changes to salesforce cloud.
Can anyone please help me to solve this issue.
Thanks,
Abhishek
I want to develop salesforce code in my local eclipse environment. I follwed steps mentioned here :
https://developer.salesforce.com/page/Force.com_IDE
So my eclipse is ready now but I dont know how to import code(apex classes, components, visual force pages) from my sandbox into my local enviornment and how I can again deply changes to salesforce cloud.
Can anyone please help me to solve this issue.
Thanks,
Abhishek
- Abhishek Kedari
- August 12, 2014
- Like
- 0
- Continue reading or reply
Global search for string in Apex code, triggers, etc.
Is there a way to perform a "global search" through all Apex code --- classes, triggers, etc.? For example, if I want to search for a specific block of code but don't remember what class it's in...
- BARJRD
- April 30, 2010
- Like
- 0
- Continue reading or reply