• sergeiwallace
  • NEWBIE
  • 0 Points
  • Member since 2018
  • Salesforce developer


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 3
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am completing the Lightning Web Components -> Push and Deploy Lightning Web Component Files (https://trailhead.salesforce.com/content/learn/modules/lightning-web-components-basics/push-lightning-web-component-files) challenge and am getting the "ERROR running force:source:deploy: Deploy failed." error as many others on this and other forums have discussed when executing the following command:
sfdx force:source:deploy -p force-app/main/default -u ebikesDE
for step 9 in the Installing E-Bikes using a Developer Edition Org (https://github.com/trailheadapps/ebikes-lwc#installing-e-bikes-using-a-developer-edition-org).
I initially created the bikeCard folder and html/js/xml files manually but saw someone suggest to do it programmatically so I used the command
sfdx force:lightning:component:create -n bikeCard -d force-app/main/default/lwc --type lwc
However I am still getting the same error. When I go to the deployment status logs, I get this issue with deploying E_Bikes1 folder and files to my org.  
Is this some issue with mobile files not able to deploy to the dev hub org? I haven't seen any other discussion about this specific error log message.

Hi,

 

I am able to access a dashboard and see the details.

 

But when I click on the dashboard to see the report I am getting the foll error

 

"You do not have the level of access necessary to perform the operation you requested"

 

I cheked I have the necessary Permission sets, Public groups, Objects and Field level access.

 

But still I am getting the above error. Please check and let me know.

 

Regards,

Sai

The upgrade process for Salesforce Opportunity Splits didn’t complete, so your organization rolled back to its previous state.

 

Why I am not abqle to upgrad the Salesforce Opportunity Split? Please help!

Hi
I have been trying to pass this challenge (https://trailhead.salesforce.com/en/trails/force_com_dev_intermediate/modules/apex_integration_services/units/apex_integration_webservices):

To pass this challenge, create an Apex REST class that is accessible at '/Accounts/<Account_ID>/contacts'. The service will return the account's ID and Name plus the ID and Name of all contacts associated with the account. Write unit tests that achieve 100% code coverage for the class and run your Apex tests.
The Apex class must be called 'AccountManager'.
The Apex class must have a method called 'getAccount' that is annotated with @HttpGet
The method must return the ID and Name for the requested record and all associated contacts with their ID and Name.
The unit tests must be in a separate Apex class called 'AccountManagerTest'.
The unit tests must cover all lines of code included in the AccountManager class, resulting in 100% code coverage.
Run your test class at least once (via 'Run All' tests the Developer Console) before attempting to verify this challenge.

I getting this error:

Challenge Not yet complete... here's what's wrong: 
Executing the 'AccountManager' method failed. Either the service isn't configured with the correct urlMapping, is not global, does not have the proper method name or does not return the requested account and all of its contacts.

This is my code:
 
@RestResource(urlMapping='/Accounts/*/contacts')
global with sharing class AccountManager {
	
    @HttpGet
    global static List<sObject> getAccount(){
        RestRequest request = RestContext.request;
        List<String> urlParams = request.requestURI.split('/');
        
        String accountId;	
        for(String param: urlParams){
            if((param != 'Accounts') && (param != 'contacts'))
                accountId = param;
        }
    
        List<Account> lstAccounts = new List<Account>();
        lstAccounts = [SELECT Id, Name FROM Account WHERE Id = :accountId];
        
        List<sObject> result = new List<sObject>();
        result.add(lstAccounts[0]);
        
        List<Contact> lstContacts = [SELECT Id, Name FROM Contact WHERE AccountId = :accountId];
        for(Contact c:lstContacts){
            result.add(c);
        }
        return result;
    }
}

This is my response
 
[ {
  "attributes" : {
    "type" : "Account",
    "url" : "/services/data/v39.0/sobjects/Account/001o0000015hgVBAAY"
  },
  "Id" : "001o0000015hgVBAAY",
  "Name" : "SFDC Computing"
}, {
  "attributes" : {
    "type" : "Contact",
    "url" : "/services/data/v39.0/sobjects/Contact/003o000001DbYc8AAF"
  },
  "Id" : "003o000001DbYc8AAF",
  "Name" : "Pepito Peres"
}, {
  "attributes" : {
    "type" : "Contact",
    "url" : "/services/data/v39.0/sobjects/Contact/003o000001BsUPwAAN"
  },
  "Id" : "003o000001BsUPwAAN",
  "Name" : "Last0"
} ]

Can someone light my way?​

Hi,

 

I am able to access a dashboard and see the details.

 

But when I click on the dashboard to see the report I am getting the foll error

 

"You do not have the level of access necessary to perform the operation you requested"

 

I cheked I have the necessary Permission sets, Public groups, Objects and Field level access.

 

But still I am getting the above error. Please check and let me know.

 

Regards,

Sai

The upgrade process for Salesforce Opportunity Splits didn’t complete, so your organization rolled back to its previous state.

 

Why I am not abqle to upgrad the Salesforce Opportunity Split? Please help!