<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error : To upload document on ServiceNow using REST Client in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-To-upload-document-on-ServiceNow-using-REST-Client/m-p/2372306#M135158</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Extension MIME Type&lt;/P&gt;&lt;P&gt;.doc application/msword&lt;/P&gt;&lt;P&gt;.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://developer.mozilla.org/fr/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 09:43:22 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-10-22T09:43:22Z</dc:date>
    <item>
      <title>Error : To upload document on ServiceNow using REST Client</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-To-upload-document-on-ServiceNow-using-REST-Client/m-p/2372305#M135157</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to upload a document (.Doc,.Docx,pdg,msg) on servicenow URL using REST client component with POST method in Talend (version: 7.3.1) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with below setting few documents are successfully getting uploaded on servicenow URL using below setting in REST component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tREST :&lt;/P&gt;&lt;P&gt;URL : Servicenow URL "/api/now/attachment/file?table_name="+context.TableName+"&amp;amp;table_sys_id="+((String)globalMap.get("TABLE_SYS_ID"))+"&amp;amp;file_name="+((String)globalMap.get("UploadFileName"))+""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP Method: POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP Headers : &lt;/P&gt;&lt;P&gt;     name: "Authorization"          context.connection_ServiceNow_Basic_Authorization    &lt;/P&gt;&lt;P&gt;               "Accept"                     "application/json"&lt;/P&gt;&lt;P&gt;               "Content-type"            "application/"+((String)globalMap.get("FILE_TYPE"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTTP Body : (byte[])globalMap.get("BINARY_FILE_CONTENT")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But few documents giving below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Code :400&lt;/P&gt;&lt;P&gt;Error Message : {"error":{"message":"Invalid file type: application/doc","detail":null},"status":"failure"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in resolving this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rita&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-To-upload-document-on-ServiceNow-using-REST-Client/m-p/2372305#M135157</guid>
      <dc:creator>Ritz05</dc:creator>
      <dc:date>2024-11-15T23:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error : To upload document on ServiceNow using REST Client</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-To-upload-document-on-ServiceNow-using-REST-Client/m-p/2372306#M135158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Extension MIME Type&lt;/P&gt;&lt;P&gt;.doc application/msword&lt;/P&gt;&lt;P&gt;.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://developer.mozilla.org/fr/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 09:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-To-upload-document-on-ServiceNow-using-REST-Client/m-p/2372306#M135158</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-10-22T09:43:22Z</dc:date>
    </item>
  </channel>
</rss>

