Skip to main content

#DiscussSalesforceQueries0 discussing

Discuss any queries related to Salesforce (any difficulty level)

Current error "Cannot find Lightning Component Bundle lwc learning."  Apparently at some point I created an LWC called lwc learning or lwc_learning. I now can't find the folder or file but when attempting to deploy source to org I can't do it :(     Is there a way to ignore this file or folder specifically? Or even better find and remove the reference.     Please halp.

 

#SFDX CLI #Lightning Web Components #Lightning Configuration 

Cannot find Lightning Component Bundle

 

Screen Shot 2021-07-11 at 12.54.45 pm.png

 

Screen Shot 2021-07-11 at 12.54.54 pm.png

2 answers
  1. Feb 11, 2:45 PM

    I know this question is old, but I had a similar problem: the error indicated that itcouldn't find lwc 'ProjectAccounts' but I didn't even code a LWC with this name. Noticed that it was the exact name of my parent/project folder, not an old LWC. 

    So I renamed it with LowerCase only ( ProjectAccounts -> project-accounts) and it worked!! Maybe it's a problem with naming the sf project with Upper case 

     

    Also I used the following command in the terminal:  

    sf project deploy start --source-dir force-app/main/default/lwc/<YOUR-LWC-NAME>  --target-org <YOUR-ORG>

0/9000
3 answers
  1. Jan 14, 1:05 PM

    Hi Nwala, 

    Yes, there are quite a few people who’ve implemented Salesforce for insurance companies 😊 You’re definitely not alone. 

    Salesforce is widely used in insurance for things like: 

    • Lead and opportunity management for agents and brokers 
    • Policy lifecycle tracking (new business, renewals, endorsements) 
    • Claims intake and case management 
    • Customer 360 views using Service Cloud 
    • Integrations with core insurance systems (policy admin, billing, claims) 

    Coming from an insurance software background as a BA is actually a big advantage. Many successful Salesforce insurance implementations need strong domain knowledge to translate business processes (underwriting, renewals, commissions, compliance) into Salesforce workflows and automations. 

    If you’re looking to connect with like-minded folks, you might want to: 

    • Join Salesforce Trailblazer Community Groups (especially Financial Services Cloud groups) 
    • Look for Salesforce + Insurance discussions on LinkedIn and Reddit 
    • Explore Financial Services Cloud (FSC), as it’s commonly used in insurance transformations 
0/9000

Hello, all.

 

I'm running into an issue with the Omni Channel Flow.

 

This is my first time using this flow and I can't get it to work.

 

I do believe that I have narrowed the problem down to the Add Skill Requirements (Beta) Action.

 

I have followed the instructions and set the following parameters for the Action within the Flow.

  • Input Value:  {skillList!}
  • Skill Requirement
    • Skill:  Payroll 
  • Advanced
    • Manually assign
      • aggregated skill Requirements
        • {!skillList}

I am running the Debug while skipping the Start element since this is a Case Record triggered Flow.  In the Debug under the Add Skill Requirements Element, I am seeing the following:

 

Inputs

 

Info

<orange triangle with exclamation mark> skillRequirementsResourceItem = null

skillRequirement = [{"id":"35730237","skillId":"0C57i00000001OJCAY","skillLabel":"Payroll","skillLevel":"0","skillPriority":"0","isAdditionalSkill":false}]

 

Outputs

 

{!skillList} = skillRequirements ([SkillRequirement (No ID)])

 

The following Route Work (Beta) elements shows the following:

 

Inputs

 

skillRequirementsResourceItem = {!skillList} ([SkillRequirement (No ID)])

skillOption = DefineSkillRequirements

recordId = {!$Record.Id} (5007i000005uR1cAAE)

routingConfigLabel = Case Routing Configuration

routingConfigId = 0K97i0000000285CAA

routingType = SkillsBased

serviceChannelLabel = Case Service Channel

serviceChannelDevName = Case_Service_Channel

serviceChannelId = 0N97i00000001mBCAQ

 

Outputs

 

None.

 

I am assuming that the culprit lies in the ([SkillRequirement (No ID)]).

 

Any help would be greatly appreciated.

 

Thanks in advance

15 answers
  1. Sep 23, 2025, 10:01 PM

    Thanks @KaylaRose Robison ! I knew there was an issue of mapping and re-selected the Channel and Routing values on the existing element, but was still running into issues. I read your comment and it worked after I deleted the old component and created created a new one. Thank you!

0/9000

Cannot build test data for survey objects

Hello All,

I activate survey in my org and now I want to measure NPS depends on these surveys.

So I built a class to measure NPS for whole company, division, NPS based governorate and more.. 

And when I tried to built Test class to deploy it to production it restricted me to build test data on all survey objects,

And always give me the error field is not writeable for each field.  

So now I can't deploy it to prod without the test class.

 

I would be grateful for any solutions :)

 

Code:

// insert new Survey

List<Survey> SurveyTest = new List<Survey>();

SurveyTest.add(new Survey(Name = 'testSurvey1'));

SurveyTest.add(new Survey(Name = 'testSurvey2'));

// insert new SurveyInvitation

List<SurveyInvitation> SurveyInvitationTest = new List<SurveyInvitation>();

SurveyInvitationTest.add(new SurveyInvitation(Name = 'surveyInvitationTest1', SurveyId = SurveyTest[0].Id, ContactId = testContacts[0].Id, ParticipantId = testContacts[0].Id));

SurveyInvitationTest.add(new SurveyInvitation(Name = 'surveyInvitationTest2', SurveyId = SurveyTest[1].Id, ContactId = testContacts[1].Id, ParticipantId = testContacts[1].Id));

// insert new SurveyQuestion

List<SurveyQuestion> SurveyQuestionTest = new List<SurveyQuestion>();

SurveyQuestionTest.add(new SurveyQuestion(Name = 'SurveyQuestionTestNPS1', Type = 'NPS'));

SurveyQuestionTest.add(new SurveyQuestion(Name = 'SurveyQuestionTestNPS2', Type = 'NPS'));

// insert new SurveyQuestionResponse

List<SurveyQuestionResponse> SurveyQuestionResponseTest = new List<SurveyQuestionResponse>();

SurveyQuestionResponseTest.add(new SurveyQuestionResponse(QuestionId = SurveyQuestionTest[0].Id, NumberValue = 9));

SurveyQuestionResponseTest.add(new SurveyQuestionResponse(QuestionId = SurveyQuestionTest[1].Id, NumberValue = 10));

// insert new SurveySubject

List<SurveySubject> SurveySubjectTest = new List<SurveySubject>();

SurveySubjectTest.add(new SurveySubject(Name = 'SurveySubjectTest1', SurveyInvitationId = SurveyInvitationTest[0].Id, ParentId = SurveyInvitationTest[0].Id, SubjectId = testAccounts[0].Id, SurveyId = SurveyTest[0].Id, SubjectEntityType = 'Account'));

SurveySubjectTest.add(new SurveySubject(Name = 'SurveySubjectTest2', SurveyInvitationId = SurveyInvitationTest[1].Id, ParentId = SurveyInvitationTest[1].Id, SubjectId = testCase[0].Id, SurveyId = SurveyTest[1].Id, SubjectEntityType = 'Case'));

 

#Apex #Test Classes #Salesforce Surveys 

11 answers
  1. Jun 30, 2025, 10:52 AM

    Indeed, you can't insert records on any Survey object (I checked it on Survey, SurveyResponse, SurveyQuestionResponse only). Then you have 2 hard and winding roads:  

    1. Use repository mocking pattern in your tests 

    2. Use (SeeAllData=true) which in this situation is awful. Easy for dev, hard for DevOps (he/she must create any of those objects manually in prod, using the Survey feature).

0/9000

I'm looking for a way to auto populate the Product Category field at Opportunity Product Line-Item. I already have the field completed on each of the products.

 

So when users add products on an opportunity and the multi-line pop up view appears like below

 

#Sales Cloud #Automation, I'd like the Product category to be pre-populated. Any idea on how I can achieve this? 

Auto Populate Pick List at the Opportunity Product Line-Item

2 answers
0/9000

Hi, I am trying to complete Enable Entitlements and Set Up Service Contracts module but keep getting same error message. "can't find the Entitlements related list on the Account page layout".

Tried several times, Entitlements related list is on Account page layout but not able to complete this challenge. Please help! Thanks! 

can't find the Entitlements related list on the Account page layout.

17 answers
  1. Oct 9, 2024, 9:26 PM

    Thank you Rahman, I  followed the instructions you posted above , it really worked.

0/9000

I'm trying to get a developer org with omnistudio and data installed but I get this error message:

'Sorry, we can't enroll you in a Salesforce Developer Edition account because the email address you entered is already in use. To sign up with a different email address, go to https://developer.salesforce.com/form/signup/freetrial.jsp.'

How can I do to get one? I was trying to complete hands-on on some flex cards modules

15 answers
0/9000

What is this "User Import Wizard"? I was doing Administrator Practice Test with the following question "Ursa Major is onboarding 15 new employees in three weeks. The administrator needs to create user records in Salesforce without activating them. Which two methods allow the administrator to achieve this goal? " . I had one answer as "Create them with the User Import Wizard and ensure that Active is unchecked".

 

#Administrator Practice Test   

4 answers
  1. Aug 22, 2024, 2:08 PM

    I used "import wizard" before. It is a tool that allows users to easily import data, up to 50000 records using CSV files as a source. This tool can save time and effort, eliminating the need to enter data into Salesforce when manually dealing with large data sets. 

0/9000

Hello team,

Need help plz.

I got salesforce flow which is running on accounts to update ownership based on accounts billing zip code. At the same time i have got a duplicate rule which is checking name and address matching. Duplicate rule is set to allow on creation and edit with alert and report.

 

My flow is failing when creating duplicate record and blocking to create account. Where i have set duplicate rule to just warn the users. 

 

So now i have set duplicate rule to block on creation and edit. Where I want to just warn the users, dont want to stop them to create accounts.

 

Is it a known issue or if there is a fix for it and i am missing something. 

 

#Flow #Ask An Expert #Sales Cloud #Automation 

 

Error:

“Error element Update_Account_Zip_Code (FlowRecordUpdate). The flow tried to update these records: null. This error occurred: DUPLICATES_DETECTED: Use one of these records?. You can look up ExceptionCode values in the SOAP API Developer Guide 

“

 

Any idea please

 

Thanks

Jas

3 answers
0/9000

While working with radio buttons in flows, I have added a radio button to the screen but having one issue while adding a choice label, I am getting labels as in HTML format and not in plain text. And I want to know it is okay to be the label like that or I have to do changes anywhere. If it is please tell me how to modify this issue. 

 

Please find the screenshot attached for this issue.

Radio button in flow shows in HTML form (Automate Business Processes for a Recruiting App  Create a Candidate Rating Flow)

6 answers
  1. Aug 6, 2021, 6:48 AM
    Just go to the resources you have created for your radio button label and change the label to simple text without color. You can find resources in manager tab in sidebar.. Double click the resource name, it will open and then delete the label and type again.
0/9000