Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Ok, strange one. comma in attachment file names
David Nunnally
Posts: 206
 
Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jan 07 1:25 PM
fiogf49gjkf0d
I am trying to link our intranet lookups to include SLX attachments. For the most part it works. Seems to be bombing on files with a comma in the file name. Now a comma is acceptated and works for the files system. This file works from the file system and from SLX. The document in the slx document share is (!QXI5VA00051APBEN01826 Roscoe Ready Mix, SO#58138, CB Conv.pdf). Notice the two commas. When I try to open it through IE (http://localhost/SLX/Documents/!QXI5VA00051APBEN01826%20Roscoe%20Ready%20Mix,%20SO#58138, CB Conv.pdf) I get a file not found (404) page. Anyone run into this one?

OK. Update here! Just realized that some with commas do open! Now I am really stumped. Can't figure out why some documents will not open. This one works (!QXI5VA000608PBEN02185%20Rinker%20Materials,%20Eagle%20Plus,%20St.%20Cloud.pdf).

[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 9:37 AM
fiogf49gjkf0d
David,

What version are you working with? As a general biz rule, I ask my users to not use 'special' characters when naming any files for SLX. ( , * ' + = - & % / \ " ) Also, even if SLX parses it correctly - SQL may not. You need to use routines for both. i.e.: a double up routine such as IF single quote char found '' .

MailMerge
Literature Request
Library Documents
Attachments

c
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 10:23 AM
fiogf49gjkf0d
We are on SLX 6.2.5 and SLX works perfectly. The problem is an ASP.NET interface. I wrote a quoting system inside SLX for our company. The quotes are exported into our Accounting package once approved and then our contract system, document imaging system, etc. I have been asked to enhance our intranet lookup to include the SLX documents. Most of the 4 plus gig of attachments work. But a few hundred of them give a 404 file not found error. I know the rights to the attachments is not the problem. I am sure that the problem is in how the path is encoded (for special characters). At first I thought it was the double commas giving me grief. Then I found some files with 2 commas that work. If I could ID what is giving me the issue I could write a function to do the (conversion). For example notice in (!QXI5VA00051APBEN01826%20Roscoe%20Ready%20Mix,%20SO#58138, CB Conv.pdf) that it did not encode the ", CB Conv.pdf" portion. On some it changes the comma to %2c and others it leaves the comma and I have some with %2c that open and some with , the still open. I will explore the SQL question this afternoon and see if I can determine anything wrong on that end.
[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 10:31 AM
fiogf49gjkf0d
Aren't parsing routines the best?!!!

::shudder::

c
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 10:36 AM
fiogf49gjkf0d
Well, if it was a perfect world we would be out of a job!
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 2:14 PM
fiogf49gjkf0d
The filesystem itself has special characters it doesn't allow. The OLE DB Provider has special characters it doesn't allow, and SQL has special characters it doesn't allow. Another wrench in the spoke is that you have to pass things like '' when using a single quote in SQL for it to store correctly. This is just to get attachments playing nice in the sales client. I'm sure ASP.NET adds it's own layer to the mix somehow. Things like the encoding of the page may throw off how "," is being handled. You may have to debug in such a way that you can eliminate SQL, the filesystem, the client, and then ASP.NET until you figure out which tier the problem is in.

Are these attachments added through a custom coded routine or via the client? Custom routines are easier to fix than the client but I believe v7 allows you to change how attachments are processed. If that's true then you should be able to correct the problem if it lies with the client. A SQL, filesystem, or ASP.NET issue can generally be resolved in code so it should be fixable but the issue is going to be figuring out exactly what's causing it.
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jan 07 2:54 PM
fiogf49gjkf0d
>>>but the issue is going to be figuring out exactly what's causing it.
boy don't I know it!!!

Yes they were added via the client. I am going to setup a simple debug environment to eliminate everything (shares/sql/etc.) but IE accessing the file when I get a chance. fighting with verisign on bea weblogic right now - actually all day! Once I can determine the cause I can code a fix!
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 07 2:58 AM
fiogf49gjkf0d
Id check another special character in the URL - if you cant access the file via a direct URL typed in the browser then its likely nothing to do with ASP.Net - Im not sure how it will treat # symbols - i noticed that in the first file you were trying to open at the start of this thread...
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Ok, strange one. comma in attachment file namesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Feb 07 3:00 AM
fiogf49gjkf0d
it also looks like there are some un-encoded spaces...
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:05:06 PM