8 votes
Accepted

Trailhead Apex Superbadge || INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id]

The collection newlyCreatedCases is static in the class MaintenanceRequestHelper. That means it will exist for the entire execution context and across all the trigger invocations. Each trigger ...
user avatar
8 votes
Accepted

Superbadge - Lightning Experience - Process Builder Challenge Issue

I believe the error is in reading the requirement. You're changing the value of ALL Adventure Packages, not just the one related with the Fulfillment. You probably need to use the Product as a filter.
user avatar
8 votes
Accepted

In which sequence should I be creating/inserting order/orderItem/pricebookEntry/product2?

It's helpful to understand the various concepts directly. Product (Product2) Represents a product. A product is something that can be sold. For example, you walk in to a store and see packages of ...
user avatar
  • 439k
6 votes

Lightning - An internal server error has occurred Error ID: 1544293028-3109 (-1865483868)

The answer is in the comments, however, here are the details of the error. It looks like there is a problem with serializing Apex objects to JSON. Calling server controller method, I get the ...
user avatar
6 votes
Accepted

Could not find a successfully completed @future job?

Try running this query in your developer org: SELECT Id, JobType, MethodName, Status FROM AsyncApexJob WHERE CompletedDate = TODAY This query will return all completed batch, future, and queryable ...
user avatar
  • 8,565
5 votes
Accepted

Is org data visibility(seeAllData = true) required for test method to create test data?

Your trigger l ine: ServiceCredentials__c cred = ServiceCredentials__c.getValues('BillingServiceCredential'); is fetching a Custom Setting. You need to mock values of this custom setting in your ...
user avatar
  • 63k
5 votes
Accepted

Error: Invalid conversion from runtime type Map<String,ANY> to List<ANY>

Your code is just fine, your mock class seems to be the culprit. Make sure you're returning JSON like the original, including the outer [...], which makes it a list. If the first character in your ...
user avatar
  • 439k
5 votes
Accepted

Error on SOQL insert statement - "FIELD_FILTER_VALIDATION_EXCEPTION, No spare parts meet this description or name."

The error is because the Equipment__c (Lookup to Product) is having a lookup filter. You have to find out the look up filter conditions specified on this field and make sure the product record you ...
user avatar
4 votes

Superbadge - Lightning Experience - Process Builder Challenge Issue

Change the filter criteria of field update to below one: It will resolve the issue.
user avatar
4 votes
Accepted

Stuck on Data Integration Specialist badge 7 step

As per Data Integration Specialist Superbadge - Step 7 issue, there appears to be an issue with the web service returning: {"timestamp":1500520484619,"status":500,"error":"Internal Server Error", "...
user avatar
4 votes
Accepted

Trailhead Advanced Apex Specialist - challenge 3

Trailhead's message about "system mode" is a clue here: the validation checker is looking for you to explicitly declare the sharing model, which is best practice anyway. You need to add the without ...
user avatar
  • 87.4k
4 votes

Debugging Apex Triggers

There are several different approaches you can use to test your trigger and attempt to isolate the bugs. Manual Testing Manual testing boils down to performing record creation or update steps within ...
user avatar
  • 87.4k
3 votes
Accepted

Is there a reason why Aura Components are still a requirement for the Advanced Apex Superbadge still worth learning?

While LWC is arguably a far superior framework, there are things you can do with Aura that you simply can't do with LWC. For example, dynamic creation of components simply by name. Or use of a ...
user avatar
  • 28.2k
3 votes
Accepted

force:recordData not updating targetFields on reloadRecord

The field name of Picture__c has incorrect spelling in the tag - force:recordData It is currently force:recordData aura:id="service" recordId="{!v.id}" mode="...
user avatar
  • 66
3 votes
Accepted

While running test class, error : Invalid conversion from runtime type Map<String,ANY> to List<ANY>. Could anyone please help me out with this one?

Always also pay attention to line numbers when errors occur. I presume this line is the source of the problem: List<Object> params = (List<Object>)JSON.deserializeUntyped(res.getbody()); ...
user avatar
  • 131k
3 votes
Accepted

My salesforce training account has expired, now I can not login to trailhead Can I get my achieved badges in another account?

You can follow the directions in this article. I'm not going to copy and paste the text verbatim, but basically you want to create a new developer edition (if you don't have one yet), log a case (note,...
user avatar
  • 439k
3 votes
Accepted

Dynamic inline style in Lightning components for back-ground image?

JavaScript is cAsE-sEnSiTiVe. As such, your code should read: <div style="{!'background-image:url('+v.boat.Picture__c+')'}" class="innertile"> Everything in Lightning is this way. You must pay ...
user avatar
  • 439k
3 votes
Accepted

Issue with step #6 of the Lightning Web Components Specialist superbadge. Is there a specific import order?

I don't think it is an import issue. I've managed to pass this part after getting some hours of sleep. There are just four required imports for this specific step and JS file. My guess is that maybe ...
user avatar
3 votes

Issue with step #6 of the Lightning Web Components Specialist superbadge. Is there a specific import order?

I also experienced that error. The provided comment '// this getter must be public' is significant. Check the 'Public Properties' and 'Use Getters and Setters to Modify Data' sections in the LWC dev ...
user avatar
  • 943
2 votes
Accepted

System.AssertException: Assertion Failed: Same value

Not a bug per-se, this is exactly the point of assertNotEquals... if the parameters ARE NOT EQUAL it returns true. Else, it returns false. You answered yourself in your question: "Both the values ...
user avatar
  • 2,101
2 votes

Salesforce Lightning Super Badge - 8

Going on the error message alone: Price Book Entry ID: id value of incorrect type: 01s..... Something is looking for a PricebookEntry ID (01u keyprefix) and is instead getting a Pricebook2 Id (01s ...
user avatar
2 votes

I have a problem with the data security supeadgr challenge

For the Field Sales User: Uncheck everything in the "Administrative Permissions" and "General User Permissions" sections other than the following: API Enabled, Chatter Internal User, Create and ...
user avatar
2 votes
Accepted

Step 10: Aura Components Specialist Failing even though Map component is available in Lightning App Builder

So the issue had nothing to do with the error message reported. In order to trouble-shoot the issue I changed the PlotMapMarker.evt from 'APPLICATION' to 'COMPONENT' then hit submit on item 10. This ...
user avatar
  • 295
2 votes
Accepted

Execute rest resource for post method from workbench

JSON keys and string values should be in double quotes, try double quotes instead of single quotes.
user avatar
  • 1,202
2 votes
Accepted

LWC Superbadge Step 3 - Setup / Clarification

Most of the times, you will be creating new things. But, yeah some things (like BoatDataService apex class) are already created for you. You can make changes to the apex class in the developer console,...
user avatar
  • 963
1 vote
Accepted

Apex Specialist Superbadge Null Reference on Challenge 4

NullPointerException in your own code is always something you can trace out for yourself, and it's virtually always a logic fault - not an issue with Salesforce itself. Line 35 appears to be this: ...
user avatar
  • 87.4k
1 vote

Step 10: Aura Components Specialist Failing even though Map component is available in Lightning App Builder

Another important note to add is that the superbadge's scenario doesn't include the requirement to make it app hostable. So, it's worth it to remove the force:appHostable from the implements ...
user avatar
1 vote

Aura Components Specialist: Step 3: Completed but tiles do not display data?

In my apex class (BoatSearchResults) I had included the Geolocation__c field as part of the query. The result of this was that the callback function would always error out unless I converted the ...
user avatar
  • 295
1 vote
Accepted

how to categorize solutions

Make sure you're in Salesforce Classic (Solutions are not available in Lightning Experience). Next, configure your categories in Setup > Customize > Solutions > Solution Categories. After that, check ...
user avatar
  • 439k
1 vote
Accepted

Lightning Experience Rollout Specialist Challenge 10

Managed to solve this. I've removed the component from everywhere, deleted the component and recreated it with this code, added it to the Sales App utility bar and it finally worked. <aura:...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible