Hot answers tagged

3 votes
Accepted

Show custom error message instead of 'Internal Server Error' in postman

If you're using a parameterized method, you can't control the error if the data type is invalid. Consider: @HttpGet public static String method(Id contactId) { ... } This code will throw an error ...
sfdcfox's user avatar
  • 481k
2 votes

LWC Invalid Mutation error when copying data from a @api property

part.IsReplace = false is a mutation of the object. You need to copy the object. Typically, when I add a field, I'll use the ... operator to copy the existing object and add new properties at the same ...
sfdcfox's user avatar
  • 481k
1 vote

JSON.deserializeUntyped Error : System.JSONException: For input string

Long has a range of -263 to +263-1. This value is sufficient for any transaction you're every likely to do with an external system. For example, the total estimated global wealth is $454,400,000,000,...
sfdcfox's user avatar
  • 481k
1 vote

JSON.deserializeUntyped Error : System.JSONException: For input string

The maximum value of a long is: 9223372036854775807 but your number is bigger than that: 2545534543535345435345
Keith C's user avatar
  • 135k

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