0

I am trying to insert a new records in my custom object Monitor__c with too many fields, when I execute my code in an anonymous window in the developer console, It delivers the following error:

Response to EXEC was : Bad Message 431 reason: Request Header Fields Too Large

This is because I am using many fields in the HEADER, How can I insert many fields in the BODY??? I am newby, thank you very much in advance!

  • 1
    This is a similar problem to a question asked a few hours ago: salesforce.stackexchange.com/questions/289351/… tl;dr: Your anonymous code is being sent to Salesforce as part of a query string, and you can't change that. The amount of code you've provided, however, shouldn't be enough to get you that particular error message though. – Derek F Dec 26 '19 at 17:16
  • 3
    There's always a balance to be struck between providing too much code and providing not enough. In this case, I think we do need to see the entire contents of your execute anonymous window to be able to offer any specific help. Telling us more about your overall goal and the SObjects involved (and the relationships between them) will probably help. You can edit your question to include additional information. – Derek F Dec 26 '19 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.