ACS 3.3.3 UCP special characters fail
Some special characters fail when passwords are changed via UCP, but are okay if I enter them directly into ACS.
Any ideas on where to start? Problem always seen with the & character, but the $ character seems to be position dependent.
Richard,
Looks like CSCed72144.
Similar Messages
-
SAP Portal accunts with special characters fail on reconcile
We connect to the SAP Portal System via the com.waveset.adapter.SAPPortalResourceAdapter in an IDM 8.0.0.5 system.
On the SAP side the IDMService.par is running.
When we do a reconcile we fail with an error message.
We activated the error logging on SAP system and the logfile on SAP and IDM reads like this:
#com.sap.portal.idm_logger#sap.com/irj#com.sap.portal.idm_logger
#CPIC_IDM_EP#
#Info##Plain###got user with uniqueId USER.PRIVATE_DATASOURCE.un:köhler#
It looks very much like a character set problem but in which system?
Does anyone have a hint for me on how to configure SAP so that we get:
- more detailed information on the root cause of the problem. e.g. enable a more detailed logging on SAP*
- SAP to send UTF-8 encoded data only.
Does anybody had a problem like this before? It would help if we would know that we are not alone :-)
Any help is very much apprechated !
UgatoWe got an E-Fix and its working now.
-
Special characters failing in wiki
Anyone reporting the same problem?
Try attach a dokument in a wikipage containing a special character, if the result is a missing png as the download/hower image, you experiencing the same as me.
I guess its the .png generator that is non utf-8/unicode source, or has anyone a fix for this?Finaly in 10.6.3 adds support to special caracters!:)
-
Special characters in CLOB are making report fail
Hi-
I am working on a report which is refering CLOB column from database. If the CLOB had special characters like & or <, the report is returning error 'Expected name instead of .' I created a view and stored CLOB as varchar2 and refered the view in query and the report works fine, but the drawback of this is varchar2 max limit is 4000 chars and the text i intend to show is more than 4000 chars.
Can someone share any ideas on how to get around this error?
Thanks in advance.Hmm, thought I'd dig a little to see what you guys mean. Indeed XML Publisher Data Template doesn't translate CLOB special characters and so BIP chokes!
My advice - log a bug and write XML output in PL/SQL.
Here's my working for reference (note spaces added after & to preserve special chars!):
CREATE TABLE test_clob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, file_contents CLOB
, timestamp DATE
insert into test_clob
(id,file_name, file_contents)
values
(3,'Greeting = <Hello, world>','Greeting = <Hello, my funky file contents>');
ed gg.sql
select '<?xml version="1.0" encoding="UTF-8" ?>'
from dual;
select xmlelement("row",
xmlelement("file_name", file_name),
xmlelement("file_contents", file_contents))
from test_clob
where id = 3;
:q
set serverout off termout off echo off verify off head off trimspool on
set lines 300 pages 0 long 20000
spool gg.xml
@gg
spool off
exit
cat gg.xml
<?xml version="1.0" encoding="UTF-8" ?>
<row><file_name>Greeting = & lt;Hello, world& gt;</file_name><file_contents>Greeting = & lt;Hello, my funky file contents& gt;</file_contents></row>
OKAY: both fields translated! Let's try using dataTemplate
<?xml version = '1.0' encoding = 'utf-8'?>
<dataTemplate name="XXV8_CLOB" description="$Header$" defaultPackage="" Version="1.0">
<parameters>
</parameters>
<properties>
<property name="include_parameters" value="true" />
<property name="include_null_Element" value="true" />
<property name="include_rowsettag" value="false" />
<property name="scalable_mode" value="on" />
<property name="debug_mode" value="off" />
</properties>
<dataQuery>
<sqlStatement name="Q_LOBS">
<![CDATA[
select file_name, file_contents
from test_clob
where id = 3
]]>
</sqlStatement>
</dataQuery>
</dataTemplate>
OUTPUT:
<?xml version="1.0" encoding="UTF-8"?>
<XXV8_CLOB>
<LIST_Q_LOBS>
<Q_LOBS>
<FILE_NAME>Greeting = & lt;Hello, world& gt;</FILE_NAME>
<FILE_CONTENTS>
Greeting = <Hello, my funky file contents></FILE_CONTENTS>
</Q_LOBS>
</LIST_Q_LOBS>
</XXV8_CLOB>
CHOKE:
Post-processing of request 2805016 failed at 18-MAR-2008 22:59:19 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
Error message in OPP output processor:
Template code: XXV8_CLOB
Template app: XXV8
Language: en
Territory: US
Output type: PDF
[3/18/08 10:59:18 PM] [UNEXPECTED] [752315:RT2805016] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
Caused by: oracle.xdo.parser.v2.XMLParseException: Expected name instead of ,.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.XMLReader.scanNameChars(XMLReader.java:1056)
at oracle.xdo.parser.v2.XMLReader.scanQName(XMLReader.java:1768)
at oracle.xdo.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1444)
at oracle.xdo.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1394)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1225)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 17 moreAs you can see the varchar special characters are "escaped" or translated or whatever you want, but not the CLOB!
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
SSO fails - userPassword having special characters
Hi,
This is a tricky situation i'm handling. I did a insert of around 1000 users into Sun DS whose userPassword contained special characters accepted by DS. mainly + and ;.
For seeing if authentication will work, i just created a user through AM Console having userid and password both containing special characters. IT WORKED!! Hooray upto now.
Here comes the problem. The backend insert was done through creating an LDIF file with all user attributes and using ldapadd to insert them. From what i've read, userPassword gets encrypted using SSHA. Fine with me!! Now, when i login using one of the uid's i inserted through the LDIF file, it says Authentication Failed. Okey dokey! I went n changed the same user's (who was born from the LDIF file) password through AM Console and voila!! Now am able to login using the same uid which was not able to login before.
This is something very strange.. Can somebody throw some light on how I'm supposed to inserting user's password in the LDIF the same way AM Console seems to be doing it? You're help will be much appreciated.
My LDIF has the following attributes which concern uid and pwd
dn: uid=test\+,ou=People,o=test,dc=sample,dc=com
sn: test
givenname: guy
uid: test\+
uid: test+
userPassword: test+
I even tried with test\+ in the password. Still doesnt work!! HELP!!!thanks for the replies.
iAMTheGuy,
I am using AM 7.1(which came along with Sun Portal server 7.1) installed in legacy mode.
Eric,
I use ldapmodify to add users. I noticed encryption happens automatically, so i dont know pwdhash is needed. I have to note one thing. The authentication works if I add the user from AMCONSOLE and that user has special characters. This is A OK..
All,
But i still have problems with adding user in LDIF file with special character in userPassword. I use only the ldapmodify -a command with the user attributes that are needed to insert a simple user.. stuff like cn,sn,givenname and the likes. I am able to add users & configure them for JDBC authentication to MySQL. This works fine.. LDIF users + JDBC authentication is great. But I might have to accomodate a scenario where LDAP authentication will be used in the near future. So, password havin special characters is needed considering the users in MySQL are allowed such passwords & may be migrated in the future .
Any workarounds? Or should i give up using passwords with special characters.
I had a suggestion, not sure if it'll work. Some1 please shed light on this. In case, I store the password with special characters in some other attribute, say title or some custom attribute not shown in AMCONSOLE, can i change LDAP authentication to use that attribute instead of userPassword? is userPassword the constant attribute for authentication?
Edited by: envious1 on Nov 12, 2007 2:35 AM -
802.1X PEAP fails when using special characters in login
I am using MS AD & NPS for 802.1X Enterprise authentication with PEAP (no client certificate - MS-CHAPv2 user credentials for login). This works fine for iOS devices on 8.1 (iPhone 5 and iPad mini) and 6.1.6 (iPhone 3GS) when the user has standard "English" ASCII characters in the username and password.
However, when I introduce Unicode special accented characters in the login name or password such as French é/ù or Spanish ñ then after accepting the server cert authentication fails with "Incorrect username or password for <WLAN name>". Windows 7 and CentOS 6.5 laptops have no problem authenticating to the same setup with either "English" credentials or ones with special accented characters. I also tried an old iPod touch on ancient software version and that fails, so its not something recently introduced.
I tried using a different access point (TP-Link instead of Ruckus) and had exactly the same issue, so highly unlikely this is an AP issue.
Then I setup FreeRadius with and see exactly the same issue, so its highly unlikely to be a MS AD/NPS issue.
When comparing a working/failed authentication Wireshark packet capture on the NPS server, I see the failed attempt is missing the last 4 packets in the authentication exchange. The last packet sent is an Access-Challenge from the NPS server and no response from the iOS device, so the NPS server never even sends an Access-Reject. The iOS device appears to have decided it can't resolve the special characters and terminates the authentication attempt.
To me this seems to be an Apple iOS software deficiency when using Unicode special characters in the username or password for 801.2X authentication?Enterprise support:
Call enterprise support (866) 752-7753 to create a case ID number
Get an account at
http://developer.apple.com/ then submit a bug report to http://bugreporter.apple.com/
Once on the bugreporter page,
-- click on New icon
-- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs. Scroll down to find the area or application that matches the problem.
-- etc.
Developers:
"Submitting Bugs and Feedback
Your feedback goes a long way towards making our products even better. With Apple Bug Reporter, you can submit bug reports or request enhancements to APIs and developer tools."
https://developer.apple.com/bug-reporting/ -
ACS 4.0 and german password characters???
Hello. I have attempted to map ACS 4.0 to Windows AD 2003 as an External Database.
This all works fine. The only weird thing is that ACS doesn't accept user passwords containing german special characters (such as ä,ö,ü).
From the file "C:\Program Files\CiscoSecure ACS v4.0\CSAuth\Logs\AUTH.log" I get the following information:
AUTH 14/02/2006 14:35:13 I 1554 2088 pvAuthenticateUser: authenticate 'testuser1' against Windows Database
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Starting authentication for user [testuser1]
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user testuser1
AUTH 14/02/2006 14:35:13 E 0376 2088 External DB [NTAuthenDLL.dll]: Windows authentication FAILED (error 1326L)
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Reattempting authentication at domain TESTDOMAIN1
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user testuser1
AUTH 14/02/2006 14:35:13 E 0376 2088 External DB [NTAuthenDLL.dll]: Windows authentication FAILED (error 1326L)
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Reattempting authentication at domain TESTDOMAIN2
AUTH 14/02/2006 14:35:13 I 0376 2088 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user testuser12
AUTH 14/02/2006 14:35:13 E 0376 2088 External DB [NTAuthenDLL.dll]: Windows authentication FAILED (error 1326L)
AUTH 14/02/2006 14:35:13 I 0143 2088 [PDE]: PolicyMgr::TerminateContext: context id=1 is deleted
AUTH 14/02/2006 14:35:13 I 5081 2088 Done RQ1026, client 2, status -2052
When I set the user password (on the AD Server 2003) without an german umlaut (ä, ö..) the authentication process works fine:
AUTH 14/02/2006 15:46:35 I 1554 1840 pvAuthenticateUser: authenticate 'testuser1' against Windows Database
AUTH 14/02/2006 15:46:35 I 0376 1840 External DB [NTAuthenDLL.dll]: Starting authentication for user [testuser1]
AUTH 14/02/2006 15:46:35 I 0376 1840 External DB [NTAuthenDLL.dll]: Attempting Windows authentication for user testuser1
AUTH 14/02/2006 15:46:35 I 0376 1840 External DB [NTAuthenDLL.dll]: Windows authentication SUCCESSFUL (by TESTSRV01)
AUTH 14/02/2006 15:46:35 I 0376 1840 External DB [NTAuthenDLL.dll]: User mapped to ACS group id [5]
AUTH 14/02/2006 15:46:35 I 0143 1840 [PDE]: PdeAttributeSet::addAttribute: PDE-Group-ID-16=5
AUTH 14/02/2006 15:46:35 I 0143 1840 [PDE]: PolicyMgr::Process: request type=4; context id=1; applied default profiles (0) - do nothing
AUTH 14/02/2006 15:46:35 I 0143 1840 [PDE]: PolicyMgr::TerminateContext: context id=1 is deleted
AUTH 14/02/2006 15:46:35 I 5081 1840 Done RQ1026, client 2, status 0
Any ideas ?
Is this an known issue in this release ? At the moment we map ACS 2.6 to Windows NT 4 as an External Database. In this configuration the
authentication process works as well with german password characters!!!
Thanks for help!
Best Regards
Matthias EnderleHi
Looks like you are doing PAP, if you switch to MSCHAP then ACS will never see the password (only a hash created by the supplicant)
This will tell you whether the problem is ACS or AD.
Darran -
How to Handle Special Characters in PI7.1
Hi Team,
I need to handle some special characters like <,>,& etc.. from WS Adapter to CRM in PI 7.1.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
By using the above blog i had implemented the Java Code as
public void execute(InputStream in, OutputStream out){
try{
int read_data;
while((read_data = in.read()) != -1){
if (read_data == '&'){
out.write("&".getBytes());
}else if (read_data == '>'){
out.write(">".getBytes());
}else if (read_data == '<'){
out.write("<".getBytes());
}else if (read_data == '/'){
out.write("⁄".getBytes());
}else if (read_data == '\''){
out.write("'".getBytes());
else { out.write(read_data);
out.flush();
} catch (Exception e){}
I had added this class file in Operational Mapping.
It is working if we have only one IF condition for & in while
Any suggestion
Thanks
SriramHi Ramesh,
Thanks for your inputs, I have tried your code but it is not working. The error message stays the same.
Dear Stephane,
To describe the error more, the requirement is the payload coming from source through WS Adapter consists of the special characters <, > , & which are basic sematics of XML syntax. I need PI to process this payload with special characters and successfully transfer it to target CRM system. I have created the Java class with code (ref: Blog 9420) as stated earlier and added this class to my existing Operation Mapping. I am expecting the java mapping to replace the special characters in payload like < with ">" . So as the case with the other characters >,&,'
After activaton of my operation mapping, I triggered the test message with Soap UI client and I could able to get a successful mapping only When I put the logic for &ersand symbol only. However when I am trying to add the logic for > or < or ' the mapping is failing . I am using UTF-8 encoding across the source and PI enviroments.
Sample SOAP message :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:abcabca.com">
<soapenv:Header/>
<soapenv:Body>
<urn:MT_ABCDEFG_Req>
<activity>
<id/>
<type>ZEMA</type>
<actionType>C</actionType>
<firewall>10000003</firewall>
<subject>small > < attachment test</subject>
<location/>
<startDate>2010-07-08T10:53:31.000Z</startDate>
<endDate>2010-07-08T10:53:31.000Z</endDate>
<mainClient>1000319</mainClient>
<mainContact>1000003</mainContact>
<isConfidential>false</isConfidential>
<summary/>
<fullText>test body - small.txt</fullText>
<owner>1000021</owner>
<from>ABCDEDF</from>
<sendTo>emailaddress</sendTo>
<copyTo/>
<keywords/>
<referenceId/>
<createdBy>1000021</createdBy>
<additionalContacts/>
<additionalClients/>
<additionalParticipants/>
<status>A0008</status>
<attachments>
<fileUrl>20100708110053-XXXXXXXXX</fileUrl>
<fileName>small.txt</fileName>
</attachments>
<attachments>
<fileUrl>20100708110053-XXXXXXXXX</fileUrl>
<fileName>EMail 2010-07-08.pdf</fileName>
</attachments>
</activity>
</urn:MT_ABCDEFG_Req>
</soapenv:Body>
</soapenv:Envelope>
Output on the SOAP UI client for the above request:
<!--see the documentation-->
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:NO_MAPPINGPROGRAM_FOUND:
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1160)
at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(
What do you think where I am doing the wrong?
Sriram -
How to handle special characters in metadata?
I have an implementation in C# to call ACS webservices for a long time. Last week we realized that some special characters in metadata fields are making the package request to not work. Example characters: éë. The response from ACS contains E_ADEPT_DISTRIBUTOR_AUTH. If we remove the special character, the request works as expected.
I know that characters are working in the jar application but we can't manage to make them work from our C# application.
Any help is welcome.Doing a SHA1-HMAC is relatively simple and there are only two inputs, the key and the message.
Since you say this works correctly with lower ascii characters, but not with Unicode characters then I would assume you have the key correct and the only thing that is different is the message. Also since it works correctly with lower ascii characters then you have the XML infoset serialization correct, so assuming a similiarly sized message (ie take one character and replace with a unicode character), then your problem is going to be in the character encoding.
I would suggest some healthy paranoia about this, by verifying that the byte stream being hashed is indeed correctly UTF8 encoded by looking at the hex values (breakpoint in the SHA1-HMAC code) and comparing to a UTF8 table such as http://www.utf8-chartable.de. -
How to convert special characters in ABAP to XML?
Hi All.
We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
Now, if the XML contains any special characters, it will fail.
So if any CHinese char or >, # etc signs are there, it fails.
Can you please tell me how to convert my string in ABAP to a proper XML?
I am new to it and I was trying the following code
DATA: today TYPE string,
result TYPE string.
today = 'This is testing'.
CALL TRANSFORMATION ID
SOURCE today = today
RESULT XML result.
IF sy-subrc = 0.
WRITE result.
ENDIF.
But it does not return me anything.
Thanks in adv.hi
good
go through these links,hope these would help you to solve your problem
http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
thanks
mrutyun^ -
PDFs using BI publisher and special characters - pound sterling
I have a table with character strings which include the £ pound sterling sign.
If I create an xml file from the table using the escape sequence for the pound sign & # 163; and load it into BI publisher, the pdf renders correctly using an rtf template.
If I include the pound sign in the rtf template itself the pdf renders correctly and if I use a report query in Apex based on the table, and an rtf template then the pdf renders correctly.
However there is a limit to the number of columns that can be sent to BI via the report query - we have found this to be 119 columns. For more than this we have been using a stored function to return xml data as a clob and use the clob to generate the pdf with the rtf report layout (using get_print_document). This method works fine but the pound sign is not rendered correctly (appears as "?").
The NLS_LANG is set to english_united kingdom in the database and in BI publisher. The locale in bi publisher is en_GB. BI will create the pdf correctly with the pound sign if using a standard xml file (with escape seq for pound) so I am sure it is not a language issue in BI/Apex.
Any ampersands in the xml cause the pdf to fail completely and we cannot represent special characters with a sequence containing the ampersand for this reason. I have tried "& # 163;" and "& amp;#163;" and variations and have also tried using CDATA, none of which gives the correct pdf output. I have also tried to switch the encoding to Windows-1252 or ISO-8859-1 in the header of the xml (xml generated by stored procedure so can control this), but this gives incorrect results too.
We also need to send other special characters to BI via get_print_document and apex (bullet points, ampersands, dashes ) but cannot use the escape sequences because of the ampersand problem.
Has anyone had any success with this?
Is there any plan ( for a future version of Apex) to increase the number of columns that can be used in report query using Apex/BI publisher?
Thanks
KathrynHi Kathryn
I've had exactly the same problem as you've mentioned.
Firstly, I've also found that I cannot select more than 119 columns from a view using a report query and have opted to the use the stored function to return the xml (same as you).
After conducting a lot of searching and experimenting i've found that you can use the following escape characters in REPLACE in your stored function:-
'£' can be replaced with CHR(194)||CHR(163)
'%' can be replaced with '%25'
'&' can be replaced with '%26amp;'
I found the above escape characters from the xml file or by opening the xml file in Wordpad. Therefore I'm sure you'll be able to find the escape characters for the other symbols that you mentioned i.e. bullet points, dashes etc.
I hope this has helped. Good luck and let me know if you get any developments with the limitation on the number of columns that can be selected from a report query as this would save a lot of trouble (as I'm sure you're aware).
Thanks
Natalie -
Special characters in sender soap adapter provoke HTTP 500 error
Hi,
SAP R3 is sending a SOAP message to PI through SOAP adapter.
When the payload does NOT contain german characters like ü, it works fine.
However, when the payload DOES contain special characters, the SOAP adapter replies with an HTTP 500 code error.
If I use SoapUI to send the soap message, and setting UTF-8 as the encoding in the program options, it will go through fine. If I change to ISO-8859-1 it will fail.
I'm thinking in two options:
- Make sure that SAP R3 sends the message in UTF-8 format (I think this is happening currently), as if SoapUI works, then probably R3 is not using UTF-8.
- Force the adapter to use UTF-8. Is this possible? In the sender SOAP adapter I've added AF_Modules/MessageTransformBean (type local EB), and then Transform.ContentType for parameter name and --> text/plain;charset=utf-8 for parameter value. The sender adapter will fail then for every message, with or without special characters.
Anyway, in this link (http://help.sap.com/saphelp_nwpi71/helpdata/EN/a4/f13341771b4c0de10000000a1550b0/frameset.htm) it seems to say that the sender soap adapter cannot be extended with modules, so maybe that's the reason why it fails when trying to add a module.
ThanksIf I use SoapUI to send the soap message, and setting UTF-8 as the encoding in the program options, it will go through fine. If I change to ISO-8859-1 it will fail.
I'm thinking in two options:
Check the use of option 1 ..... the URL which SAP is using to send the data can containe the encoding information.
Check this SAP note: https://service.sap.com/sap/support/notes/856597
From the above note:
Q: What character encoding is supported by the SOAP sender adapter?
+you can supply the encoding information with the xmlenc variable in the request URL as in+
Regards,
Abhishek. -
Special Characters in the file name in Data Driven Subscription via File Share
Hi,
I am trying to create a Data Driven Subscription with option to delivery as windows file share in SQL server 2005. I need to save the report as a pdf with the following file name '[City] City_Name', but it errors out and it is because of the
Square Brackets. Is there any way i can save the file using the Square brackets as i mentioned above.
I am using a query to get the filename and filepath. It works fine as long as i do not have [], but i need to save the file as i mentioned along with the Square Brackets.
Please help.Hello,
I can reproduce the issue on my test environment: When I create a Data Driven Subscription and specify the report name by get from a subscription delivery table, and the value of the "report name" column contains square brackets. The subscription failed
with following error in the error log:
ERROR: Error occurred processing subscription ab9523a6-0256-4607-b818-a7666204d018:
The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the file name.
notification!WindowsService_1!1f24!05/30/2014-15:31:02:: i INFO: Notification 0cf5a356-3172-4108-9d8c-58ea81a0b80a completed. Success: False, Status: The file name is not valid. Avoid using special characters such as /\?*:<>|+,[]"& in the
file name., DeliveryExtension: Report Server FileShare, Report: Report6, Attempt 0
It seems that the behavior is by design. please avoid using square brackets as file name. Maybe you can try to use parentheses () instead.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
File XML Content Conversion: Problem with special characters
Hello,
in a file sender cc content conversion is used to transform a flat structure to XML. What we experiencecd is that the message mapping failed due to a character that was not allowed in XML:
I was assuming that the file content conversion just creates XML messages with allowed characters. Is there any way to configure content conversion to remove control characters which are not allowed in XML? Unfortunately the sender system cannot be modified.
Thank you.Hi Florian,
Please use this UDF to remove special characters which prevent XML messages to form properly.
public static String removeSpecialChar(String s)
try
s=s.replaceAll("&","& amp ;");
s=s.replaceAll("<" , " & lt ;");
s=s.replaceAll(">", "& gt ;");
s=s.replaceAll("'", "& apos ;");
s=s.replaceAll("\"", "& quot ;");
catch(Exception e)
e.printStackTrace();
return s;
Please remove spaces between characters within double quotes. I have added them because otherwise you can't see this code properly. Please check this below link , please replace the characters with proper values as the display is causing a problem here
http://support.microsoft.com/kb/316063
regards
Anupam
Edited by: anupamsap on Jul 7, 2011 4:22 PM
Edited by: anupamsap on Jul 7, 2011 4:23 PM -
RegExp for excluding special characters in a string.
Hi All,
Im using Flex RegExpValidator. Can anyone suggest me the correct expression to validate this condition?....
I have tried this expression :----- /^[^///\/</>/?/*&]+$/...But in this it is also negating the alphabets.Also I have tried with opposite condition that in the String we should have alphabets and the expression is:-- ([a-z]|[A-Z]|[0-9]|[ ]|[-]|[_])*..... Please can anyone help me on this.
Thanks in advanced to all.
Munirasorry but you are posting things back that do not make any sense
what do you mean with the below comment?
munira06 wrote:
Yes you are correct ,but I have tried this with single special character
say
Re: RegExp for excluding special characters in a string.
here is a sample app taken from the live docs
using ^[a-zA-Z0-9 \-_]*$ as the regex accepts all characters from a-z, A-Z, 0-9 - [space] and_
run the example tell me what regex you are using and what test strings fail when they should pass or pass when they should fail
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the RegExpValidator. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.events.ValidationResultEvent;
import mx.validators.*;
// Write the results to the
private function handleResult(eventObj:ValidationResultEvent):void {
if (eventObj.type == ValidationResultEvent.VALID) {
// For valid events, the results Array contains
// RegExpValidationResult objects.
var xResult:RegExpValidationResult;
reResults.text = "";
for (var i:uint = 0; i < eventObj.results.length; i++) {
xResult = eventObj.results[i];
reResults.text=reResults.text + xResult.matchedIndex + " " + xResult.matchedString + "\n";
} else {
reResults.text = "";
]]>
</fx:Script>
<fx:Declarations>
<mx:RegExpValidator id="regExpV"
source="{regex_text}" property="text"
flags="g" expression="{regex.text}"
valid="handleResult(event)"
invalid="handleResult(event)"
trigger="{myButton}"
triggerEvent="click"/>
</fx:Declarations>
<s:Panel title="RegExpValidator Example"
width="75%" height="75%"
horizontalCenter="0" verticalCenter="0">
<s:VGroup left="10" right="10" top="10" bottom="10">
<s:Label width="100%" text="Instructions:"/>
<s:Label width="100%" text="1. Enter text to search. By default, enter a string containing the letters ABC in sequence followed by any digit."/>
<s:Label width="100%" text="2. Enter the regular expression. By default, enter ABC\d."/>
<s:Label width="100%" text="3. Click the Button control to trigger the validation."/>
<s:Label width="100%" text="4. The results show the index in the text where the matching pattern begins, and the matching pattern. "/>
<mx:Form>
<mx:FormItem label="Enter text:">
<s:TextInput id="regex_text" text="xxxxABC4xxx" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Enter regular expression:">
<s:TextInput id="regex" text="ABC\d" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Results:">
<s:TextInput id="reResults" width="100%"/>
</mx:FormItem>
<mx:FormItem >
<s:Button id="myButton" label="Validate"/>
</mx:FormItem>
</mx:Form>
</s:VGroup>
</s:Panel>
</s:Application>
Maybe you are looking for
-
Condition record not found for service net price
Hi Experts, I have seen other posts related to this topic but didnt solve my issue. Issue is: in one system when trying to create PO for requisition, it says please enter a price for service item since "condition record not found" (because package nu
-
I have a toshiba Satellite that i just got back from the repair place on the 16th. I somehow got a trojan like the second day after i got it back from being repaired. I then managed to restore the system and everything works to my knowledge except no
-
Problem in Updating ME21N Shipping Point :
Hi I have developed a custom screen.In that custom screen it should show the total line items and their netweight,gross weight. In the custom screen i kept two input fields for updating the shipping point and shipping condition. This shipping point a
-
After Effects CS5 - No Offset / Optics Compensation Plugin
Hey Guys, So i was following some tutorial on YouTube when I came across the part that it said I need to use a Offset plugin, So i search for it on after effects and it wasn't there. So i thought, maybe its a Third Party plugin? I looked it up on Ado
-
my iphone 4 won't connect to my apple id account it keeps saying that my account limit has been reached