Quantcast
Channel: SCN : Discussion List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 125

"Client application does not allow transfer of data" error?

$
0
0

SQL Anywhere 11.0.1

 

I am having a problem with several stored procedures that attempt to

 

EXECUTE IMMEDIATE 'UNLOAD SELECT...

...

...

INTO CLIENT FILE ''' + filepath_filename + ''' ENCODING ''UTF-8'' format ASCII quotes off escapes off';

 

The stored procedure is executed on a trigger, and the problem is that when the filepath_filename variable is for a local drive, C:\something or E:\something, everything works perfectly, but the moment I try to export it to a shared network drive, N:\something, I get the error mesage

 

 

I have:

 

1. set option public.allow_write_client_file='on';

2. set option public.allow_read_client_file='on';

3. Given the owner (DBA) authority to both read and write client files

4. Specified "-sf none" option in the database server engine parameters

 

The curious thing is when I run the test UNLOAD command through interactive SQL

 

unload select * from comms into client file 'N:\TEST\comm.csv' format ascii;


The file gets exported perfectly fine, no questions asked, but when I try


call sp_navision_dimension_xml_output('New', 'Test');


which executes unload select... into client file in it through Interactive SQL, I get a pop-up with question "Allow this connection transfer", "Deny this connection transfer", "Allow this and all subsequent transfers", "Deny this and all subsequent transfers", and if I choose "Allow", everything works great.


But whenever I try it through the application, when the trigger executed the stored procedure, I always get the error message as on the screenshot above.


Thanks for all suggestions

Vlad



Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>