-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
2Questions
-
4Replies
Could not run tests on Class <Class ID>
Tried
- Clear test Data
- Disable Parallel Test Run
- Used Eclipse to deploy
- Waited more than 12 hours
- Neeraj Gupta
- August 16, 2016
- Like
- 0
- Continue reading or reply
Chatter File upload through REST Client throwing "Binary data included but file attachment information is missing. If providing rich JSON/XML input in multipart REST, make sure to include Content-Type header in the part."
Error Message:
[{"errorCode":"POST_BODY_PARSE_ERROR","message":"Binary data included but file attachment information is missing. If providing rich JSON/XML input in multipart REST, make sure to include Content-Type header in the part."}] Status 400 Bad Request Show explanation Loading time: 1096 Request headers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo Authorization: OAuth 00Do0000000Hb0Q!ARkAQPLN0mHGN0vx_id5xe20TIdWilHpKNKxI8luXDURBCpLN8IFam_ga1F8Mok_o6LNQCgB.5ah8WyKng.P1ZmLRbu5oRzo Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3n9vu9ZOkCPW4HAw Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Cookie: com.salesforce.LocaleInfo=us; oinfo="c3RhdHVzPURFTU8mdHlwZT0yJm9pZD0wMERmMDAwMDAwM2JITEE="; __cfduid=d5fc50ea917b08b8c4d0764c74aa205f61406140518228; lp=%7B%7D; rememberUn=false; embeddedcomponentcalloutcookie=1; BrowserId=BGaoKzO_QBiyAUpoxbU4pA; sfdc_lv2="KxG83HH39SqZku5nmKjkn2et470V3EswpF2TXsmahbl+KXqI1ci8bAID2HZQURCd49nuW7Y1r+pgcF7XxnqzN/xDgjldeJfFPINSl98L9k6O51HsltQSs4idzitW34OI2IUyF+Sj9F/R6DzQVwRQQvSbGXqF+UlY6Q5O1X8Z9LvKUozVfFBhgyYRdDNYgLeC/N2XjgfIUCnwYQ7Nsc/9AwBnpZzbwmyPhvsrbj8AW419Cm6JPpBDNFKZzBJFuFvHYvKXC7BnmQ7SlA1qjLTSOqq+k7uIROp2NKVtgi5MiNVFYSiNq+FccmlLC/a2UHlouL2eBOfIFWoDv5kgC/7nRUHI3vi9bKN4KuslHYszr/cDQLuiTyAD3wTSiY1/HKo48uhmn91unD4zjBM89OrhxVLevL8gyCWN5tUsmfcx9GxguChep5cz3/Thc9r5AQwOR9dogxIFrpDMsF9dG3mUIPzicf4zal3hTVNW3xz5y6HYhUVkcw//VmSI7i8ggR98U="; disco=o:00Do0000000Hb0Q:005o0000000HzDo:0; autocomplete=1; sid=00Do0000000Hb0Q!ARkAQPLN0mHGN0vx_id5xe20TIdWilHpKNKxI8luXDURBCpLN8IFam_ga1F8Mok_o6LNQCgB.5ah8WyKng.P1ZmLRbu5oRzo; sid_Client=0000000HzDo0000000Hb0Q; clientSrc=59.89.147.242; inst=APPo; oid=00Do0000000Hb0Q; setupopen=; JSESSIONID=7ow2vu2764kwr33z8gabnyc7; lastlist="/a09?fcf=00Bo0000000U2zz&rolodexIndex=-1&page=1"; webact=%7B%22l_vdays%22%3A1%2C%22l_visit%22%3A1408984740028%2C%22session%22%3A1408989139956%2C%22l_search%22%3A%22%22%2C%22l_dtype%22%3A%22%22%2C%22l_page%22%3A%22SFDC%3Aen%3Aa0ao0000002h8tu%22%2C%22counter%22%3A22%2C%22pv%22%3A8%2C%22f_visit%22%3A1404841447432%2C%22version%22%3A%22w172.1%22%2C%22d%22%3A%2270130000000sUW0%22%2C%22l_cloud%22%3A%22No%20Cloud%22%2C%22seg%22%3A%22customer%3Aus%22%2C%22customer%22%3A1405964202516%7D; s_sess=%20s_ppv_x%3D%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B%20s_ppv%3D78%257C0%3B; s_vi=[CS]v1|29DE16F5054892B0-40000100C0008275[CE] Response headers Date: Mon, 25 Aug 2014 18:31:44 GMT Cache-Control: private Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked
Below is the request description
POST URL:
https://na17.salesforce.com/services/data/v29.0/chatter/feeds/record/a07o000000097sGAAQ/feed-items
Auth Header
Authorization: OAuth <SESSION_ID>
Request Body
{ "body": { "messageSegments" : [ { "type" : "Text", "text" : "Please accept this receipt." } ] }, "attachment": { "attachmentType" : "NewFile", "description": "Receipt for expenses", "title" : "a.png" }, "feedElementType" :"FeedItem", "subjectId" : "005o0000000HzDo" }
Uploading an image file with name as "feedItemFileUpload".
This looks like a common problem. I am able to post chatter with links and all but not working only in case of files. Thanks for help in advance.
- Neeraj Gupta
- August 25, 2014
- Like
- 0
- Continue reading or reply
Could not run tests on Class <Class ID>
Tried
- Clear test Data
- Disable Parallel Test Run
- Used Eclipse to deploy
- Waited more than 12 hours
- Neeraj Gupta
- August 16, 2016
- Like
- 0
- Continue reading or reply
Chatter File upload through REST Client throwing "Binary data included but file attachment information is missing. If providing rich JSON/XML input in multipart REST, make sure to include Content-Type header in the part."
Error Message:
[{"errorCode":"POST_BODY_PARSE_ERROR","message":"Binary data included but file attachment information is missing. If providing rich JSON/XML input in multipart REST, make sure to include Content-Type header in the part."}] Status 400 Bad Request Show explanation Loading time: 1096 Request headers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo Authorization: OAuth 00Do0000000Hb0Q!ARkAQPLN0mHGN0vx_id5xe20TIdWilHpKNKxI8luXDURBCpLN8IFam_ga1F8Mok_o6LNQCgB.5ah8WyKng.P1ZmLRbu5oRzo Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3n9vu9ZOkCPW4HAw Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Cookie: com.salesforce.LocaleInfo=us; oinfo="c3RhdHVzPURFTU8mdHlwZT0yJm9pZD0wMERmMDAwMDAwM2JITEE="; __cfduid=d5fc50ea917b08b8c4d0764c74aa205f61406140518228; lp=%7B%7D; rememberUn=false; embeddedcomponentcalloutcookie=1; BrowserId=BGaoKzO_QBiyAUpoxbU4pA; sfdc_lv2="KxG83HH39SqZku5nmKjkn2et470V3EswpF2TXsmahbl+KXqI1ci8bAID2HZQURCd49nuW7Y1r+pgcF7XxnqzN/xDgjldeJfFPINSl98L9k6O51HsltQSs4idzitW34OI2IUyF+Sj9F/R6DzQVwRQQvSbGXqF+UlY6Q5O1X8Z9LvKUozVfFBhgyYRdDNYgLeC/N2XjgfIUCnwYQ7Nsc/9AwBnpZzbwmyPhvsrbj8AW419Cm6JPpBDNFKZzBJFuFvHYvKXC7BnmQ7SlA1qjLTSOqq+k7uIROp2NKVtgi5MiNVFYSiNq+FccmlLC/a2UHlouL2eBOfIFWoDv5kgC/7nRUHI3vi9bKN4KuslHYszr/cDQLuiTyAD3wTSiY1/HKo48uhmn91unD4zjBM89OrhxVLevL8gyCWN5tUsmfcx9GxguChep5cz3/Thc9r5AQwOR9dogxIFrpDMsF9dG3mUIPzicf4zal3hTVNW3xz5y6HYhUVkcw//VmSI7i8ggR98U="; disco=o:00Do0000000Hb0Q:005o0000000HzDo:0; autocomplete=1; sid=00Do0000000Hb0Q!ARkAQPLN0mHGN0vx_id5xe20TIdWilHpKNKxI8luXDURBCpLN8IFam_ga1F8Mok_o6LNQCgB.5ah8WyKng.P1ZmLRbu5oRzo; sid_Client=0000000HzDo0000000Hb0Q; clientSrc=59.89.147.242; inst=APPo; oid=00Do0000000Hb0Q; setupopen=; JSESSIONID=7ow2vu2764kwr33z8gabnyc7; lastlist="/a09?fcf=00Bo0000000U2zz&rolodexIndex=-1&page=1"; webact=%7B%22l_vdays%22%3A1%2C%22l_visit%22%3A1408984740028%2C%22session%22%3A1408989139956%2C%22l_search%22%3A%22%22%2C%22l_dtype%22%3A%22%22%2C%22l_page%22%3A%22SFDC%3Aen%3Aa0ao0000002h8tu%22%2C%22counter%22%3A22%2C%22pv%22%3A8%2C%22f_visit%22%3A1404841447432%2C%22version%22%3A%22w172.1%22%2C%22d%22%3A%2270130000000sUW0%22%2C%22l_cloud%22%3A%22No%20Cloud%22%2C%22seg%22%3A%22customer%3Aus%22%2C%22customer%22%3A1405964202516%7D; s_sess=%20s_ppv_x%3D%3B%20s_cc%3Dtrue%3B%20s_sq%3D%3B%20s_ppv%3D78%257C0%3B; s_vi=[CS]v1|29DE16F5054892B0-40000100C0008275[CE] Response headers Date: Mon, 25 Aug 2014 18:31:44 GMT Cache-Control: private Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked
Below is the request description
POST URL:
https://na17.salesforce.com/services/data/v29.0/chatter/feeds/record/a07o000000097sGAAQ/feed-items
Auth Header
Authorization: OAuth <SESSION_ID>
Request Body
{ "body": { "messageSegments" : [ { "type" : "Text", "text" : "Please accept this receipt." } ] }, "attachment": { "attachmentType" : "NewFile", "description": "Receipt for expenses", "title" : "a.png" }, "feedElementType" :"FeedItem", "subjectId" : "005o0000000HzDo" }
Uploading an image file with name as "feedItemFileUpload".
This looks like a common problem. I am able to post chatter with links and all but not working only in case of files. Thanks for help in advance.
- Neeraj Gupta
- August 25, 2014
- Like
- 0
- Continue reading or reply
Jqgrid in salesforce
I want to display data in a JQGrid on visualforce page. I am not getting any error but i can't also see any data.
Below is my visualforce page code & Controller code
Visualforce Page:
<apex:page standardController="Contact" showHeader="true" standardStylesheets="false" extensions="GridController" id="page1" >
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/themes/redmond/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="http://www.trirand.net/aspnetmvc/Content/themes/ui.jqgrid.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/JavaScript"></script>
<script src="http://www.trirand.net/aspnetmvc/Scripts/trirand/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="http://www.trirand.net/aspnetmvc/Scripts/trirand/jquery.jqGrid.min.js" type="text/javascript"></script>
<script type="text/JavaScript">
var gridData;
var obj;
function search(jsonString) {
$("#pdata").jqGrid("GridUnload");
gridData = JSON.stringify(jsonString);
obj = JSON.parse(gridData);
jQuery("#pdata").jqGrid({
data: jsonString,
datatype: 'local',
colNames:['Id','Name'],
colModel:[
{name:'Id',index:'Id', width:40},
{name:'Name',index:'Name', width:40}],
rowNum:10,
rowList:[5,10,20,30,50,100, 1000],
pager: '#ppdata',
sortname: 'name',
viewrecords: true,
sortorder: "desc",
caption:"Contact Data",
width: 800,
height: 180,
});
$("#pdata").trigger("reloadGrid");
}
function showDataInJqGrid(){
var accName = document.getElementById("query").value;
contactSearch(accName);
}
function contactSearch(name) {
var jsonString;
myp1.GridController.showContacts(name,handleContacts);
}
function handleContacts(result, event) {
if(event.type == 'exception'){
alert(event.message);
} else{
jsonString = result;
search(jsonString);
gridData = JSON.stringify(jsonString);
}
}
</script>
<apex:sectionHeader title="Contact Search using AccountID" subtitle="Search Contact" />
<apex:pageBlock mode="maindetail">
<apex:form id="qform" >
<apex:pageBlockSection title="Search Contact for the Account" collapsible="false" columns="1" >
<table width="100%">
<tr>
<td><h3>Enter Account Name </h3> <input type="text" id="query" />
<input type="button" value="Show Contacts " class="btn" onclick="showDataInJqGrid();" />
</td>
</tr>
</table>
</apex:pageBlocksection>
</apex:form>
<apex:pageBlockSection title="Contacts in Response" collapsible="false" rendered="true">
<div id="response" style="font-size: 16px;width: 300px;font-family: monospace; font-stretch: expanded" />
<table id="pdata"></table>
<div id="ppdata"></div>
</apex:pageBlocksection>
</apex:pageblock>
</apex:page>
Controller:
global class GridController {
public GridController(ApexPages.StandardController controller) {
}
@RemoteAction
global static List<Contact> showContacts(String accName){
accName = '%'+ accName+'%';
List<Contact> lst_contacts = new List<Contact>([select id, name from contact where Account.Name LIKE : accName]);
return lst_contacts;
}
}
can someone help me?
Thanks,
Akash
- Diwan Akash
- June 26, 2013
- Like
- 0
- Continue reading or reply
Can we Export Excel sheet with more then one tab by VF page.or CRM???????????
Can we Export Excel sheet with more then one tab by VF page.or CRM???????????
I want to show more then one object's record in a Excel sheet with diffrent tab.
I am useing code..........
<apex:smileytongue:age standardController="Account" contenttype="application/vnd.ms-excel">
Help me plz
Thanks !!!!!!!
- Ajay111
- October 27, 2009
- Like
- 0
- Continue reading or reply