• Sandip rajbhar
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Is there an easy way to troubleshoot this? I'm doing the trailhead: https://trailhead.salesforce.com/en/content/learn/modules/lightning-web-components-and-salesforce-data/use-apex-to-work-with-data

And I made Contacts uppercase on purpose to create this error in contactList.js 

@wire(getContacts)
Contacts;

The resultant error message is very vague and doesn't really show where the error is... (I had to goto Sources tab of console and use the search feature to find the compiled js...).

Any way to figure out how to easily find syntax errors like this?

User-added image
I have an upload handling class that parses the information, finds the relevant objects, and updates them. After that occurs I pass the records to a class that creates Tasks depending on the values of certain fields. 

As is, the Task creating class is Queueable Apex. But I can’t add the object id to the WhatId field of the Task because of record locking. Do you know any way to work around this? I have tried adding 'FOR UPDATE' to the initial query as suggested here: https://developer.salesforce.com/forums/?id=9060G000000I2r1QAC

Thank you!