<?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 GUI_UPLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416018#M820463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem with GUI_UPLOAD in that it sometimes fails with return code 13 (ACCESS_DENIED). It fails less than 1% of the time but due to the hundreds of calls a day I still need to handle several failures a day. The failure can occur on any workstation and for any user but it is not consistent to any workstation or user. Here's the call I make:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
EXPORTING
  filename = wf_local_file_path
  filetype = 'BIN'
IMPORTING
  filelength = wf_file_size
CHANGING
  data_tab = int_file_data
EXCEPTIONS
  file_open_error = 1 
  file_read_error = 2  
  no_batch = 3 
  gui_refuse_filetransfer = 4 
  invalid_type = 5  
  no_authority = 6 
  unknown_error = 7 
  bad_data_format = 8 
  header_not_allowed = 9 
  separator_not_allowed = 10 
  header_too_long = 11 
  unknown_dp_error = 12 
  access_denied = 13 
  dp_out_of_memory = 14 
  disk_full = 15 
  dp_timeout = 16 
  not_supported_by_gui = 17 
  error_no_gui = 18 
  OTHERS = 19.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone faced anything similar? Anyone know what the cause might be? The fact that this failure only occurs 1% of the time makes it very hard to pin down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ahmad Shono&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2008 12:25:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-11T12:25:18Z</dc:date>
    <item>
      <title>GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416018#M820463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem with GUI_UPLOAD in that it sometimes fails with return code 13 (ACCESS_DENIED). It fails less than 1% of the time but due to the hundreds of calls a day I still need to handle several failures a day. The failure can occur on any workstation and for any user but it is not consistent to any workstation or user. Here's the call I make:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
EXPORTING
  filename = wf_local_file_path
  filetype = 'BIN'
IMPORTING
  filelength = wf_file_size
CHANGING
  data_tab = int_file_data
EXCEPTIONS
  file_open_error = 1 
  file_read_error = 2  
  no_batch = 3 
  gui_refuse_filetransfer = 4 
  invalid_type = 5  
  no_authority = 6 
  unknown_error = 7 
  bad_data_format = 8 
  header_not_allowed = 9 
  separator_not_allowed = 10 
  header_too_long = 11 
  unknown_dp_error = 12 
  access_denied = 13 
  dp_out_of_memory = 14 
  disk_full = 15 
  dp_timeout = 16 
  not_supported_by_gui = 17 
  error_no_gui = 18 
  OTHERS = 19.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone faced anything similar? Anyone know what the cause might be? The fact that this failure only occurs 1% of the time makes it very hard to pin down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ahmad Shono&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 12:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416018#M820463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416019#M820464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you would be taking the file from shared folder where several persons can access the same file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if one or more persons trying to access the same file then we will encounter the Access Denied exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Note:Reward Points if you find useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 12:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416019#M820464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416020#M820465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, your answer was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I realized the problem a few minutes ago. There's a script that should close the file before the upload takes place and it seems that 1% of the time the script doesn't finish in time before the upload so the access denied result occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution I did was to wait a few seconds if the upload fails and then try again. Since it only happens 1% of the time it doesn't affect the users much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ahmad Shono on Feb 11, 2008 2:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 12:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/3416020#M820465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T12:59:53Z</dc:date>
    </item>
  </channel>
</rss>

