Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (13.1k points)

I have created a remote action which working just fine on a local environment, but it is throwing an error when i run it for a production level. Below is the error it shows:

[

    {

      "statusCode":500,

      "type":"exception",

      "ref":false,

      "action":"Unknown",

      "method":"Unknown",

      "message":"Content type 'null' not supported for Visualforce remoting request.  Expected 'application/json'.",

      "where":"",

      "data":"",

      "vfTx":true,

      "vfDbg":true

     }

Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

It seems like the remote action is working for sandbox only. Please check some below mention point, in able to rectify this error:

1. Make sure that you have deployed it for visualforce page and as well as for controller.

2. Check the security for apex and Visualforce page for prfile access.

3. Also, check for object and field level security which is used in remote action.

I hope this will help.

Want to become a Salesforce expert? join salesforce apex training now!!

Want to know more about salesforce apex? Watch this video on Apex in Salesforce | Salesforce Tutorial :

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...