Camt.053.001.02 XML Set up
Hi,
We would like to know apart from OSS notes and XSLT transformation , what other configuration is needed in SAP to upload the camt.053.001.02 XML stmt successfully through FF_5 ? Do we need to set up OT83 Config where posting rules are set up to determine the postings.
Please let us know. Your help would be greatley appreciated.
Thanks
Regards
AP
Hello A P,
I don't think any specific settings in OT83 is required for CAMT solutions. Basically CAMT replaces the classic notepad file info into an XML based file. This XML file will have more clearing information compared to old formats. After implementing required OSS notes, you must be able to upload XML files. Please check whether the external trans type send by bank for CAMT is already existing in your SAP system. This should work fine.
Please give attention to Note to payee field.
If you get any error while uploading the file, please share the error screenshot.
BR, D'nesh
Similar Messages
-
Camt.054.001.02 Set up
Hi,
We would like to know apart from OSS notes and XSLT transformation , what other configuration is needed in SAP to upload the camt.054.001.02 XML stmt successfully through FF_5 ? Do we need to set up OT83 Config where posting rules are set up to determine the postings.
Please let us know. Your help would be greatley appreciated.
Thanks
APHello A P,
I don't think any specific settings in OT83 is required for CAMT solutions. Basically CAMT replaces the classic notepad file info into an XML based file. This XML file will have more clearing information compared to old formats. After implementing required OSS notes, you must be able to upload XML files. Please check whether the external trans type send by bank for CAMT is already existing in your SAP system. This should work fine.
Please give attention to Note to payee field.
If you get any error while uploading the file, please share the error screenshot.
BR, D'nesh -
ISO 20022 XML CAMT.053 Account Statement support
Dear all,
We are in the process of changing our electronic banking interface from EDIFACT to ISO 20022 XML, However I have not been able to find any usefull information on support of camt.053 message (Currently we are receiving EDIFACT FINSTA and SWIFT MT940). Does anyone know if SAP intends support of this format equally to MT940 / Multicash, or have experience with CAMT.053 and would like to share what approach has been applied. My initial idea would be convert camt.053 to a supported format e.g. MT940 or MultiCash.
Brgds T. KofoedHi Torben
Most probably there will be never ONE CAMT.053 - most of the banks will have their own flavor.
There will be as well some national and regional differences.
CGI ISO20022 want's to develop global standards for PAIN.001 and CAMT.053. As far as I know the CGI standards comprises of +/- 860 mandatory tags and +/- 120 optional tags.
And I already bet today that the +/-120 optional tags will be used heavily!
There are various options you can go for:
1. develop and defin jointly together with all your corporate banks your specfic CAMT.053 standard
--> time consuming! And what happens if you have to change banks?
2. use each banks CAMT.053
--> do all your banks support CAMT.053 today?! Do they provide you with all the information you need for reconciliation?
3. use a service provide and SAP partner like us, which can convert / map all the various bank statements (MT940, CAMT.053, FINSTA, BAI etc.) to one (your) bank account statement format.
Please let me know if you want to discuss further.
You can drop me an E-Mail to [email protected]
Best regards
Christoph -
SQL Adapter Crashes with large XML set returned by SQL stored procedure
Hello everyone. I'm running BizTalk Server 2009 32 bit on Windows Server 2008 R2 with 8 GB of memory.
I have a Receive Port with the Transport Type being SQL and the Receive Pipeline being XML Receive.
I have a Send Port which processes the XML from this Receive Port and creates an HIPAA 834 file.
Once a large file is created (approximately 1.6 GB in XML format, 32 MB in EDI form), a second file 1.7 GB fails to create.
I get the following error in the Event Viewer:
Event Type: Warning
Event Source: BizTalk Server 2009
Event Category: (1)
Event ID: 5740
Date: 10/28/2014
Time: 7:15:31 PM
User: N/A
The adapter "SQL" raised an error message. Details "HRESULT="0x80004005" Description="Unspecified error"
Is there a way to change some BizTalk server settings to help in the processing of this large XML set without the SQL adapter crashing?
PaulCould you check Sql Profiler to trace or determine if you are facing deadlock?
Is your Adapter running under 64 bits?
Have you studied the possibility of using SqlBulkInser Adapter?
http://blogs.objectsharp.com/post/2005/10/23/Processing-a-Large-Flat-File-Message-with-BizTalk-and-the-SqlBulkInsert-Adapter.aspx -
Question about servlet.xml setting
<?xml version="1.0" encoding="UTF-8"?>
<!-- Example Server Configuration File -->
<Server port="8025" shutdown="TEARSDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
<Resource name="jdbc/mp" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@172.25.43.224:1521:mp"
username="mpuser" password="mp" maxActive="20" maxIdle="10"
maxWait="-1"/>
<Resource name="jdbc/passport" auth="Container"
type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://218.1.14.134:3306/xmnext_passport?autoReconnect=true"
username="zhouzhijun" password="zhouzhijun*1234567" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector URIEncoding="utf-8" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8084" redirectPort="8443"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<!-- Define the top level container in our container hierarchy -->
<Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
<!-- a Realm is setUp for JOSSO -->
<Realm className="org.josso.tc55.agent.jaas.CatalinaJAASRealm"
appName="app1"
userClassNames="org.josso.gateway.identity.service.BaseUserImpl"
roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
debug="1" /> // I am not sure realm can set twice like this?
<Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
<!-- a Valve for JOSSO -->
<Valve className="org.josso.tc55.agent.SSOAgentValve" debug="9" /> when I set this valve, the tomcat seems running abnormal...
</Host>
</Engine>
</Service>
</Server>
Could you help me to check this file setting? Just check this "servlet.xml". Thank you very much!<?xml version="1.0" encoding="UTF-8"?>
<!-- Example Server Configuration File -->
<Server port="8025" shutdown="TEARSDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
<Resource name="jdbc/mp" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@172.25.43.224:1521:mp"
username="mpuser" password="mp" maxActive="20" maxIdle="10"
maxWait="-1"/>
<Resource name="jdbc/passport" auth="Container"
type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://218.1.14.134:3306/xmnext_passport?autoReconnect=true"
username="zhouzhijun" password="zhouzhijun*1234567" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector URIEncoding="utf-8" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8084" redirectPort="8443"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector enableLookups="false" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
<!-- Define the top level container in our container hierarchy -->
<Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
<!-- a Realm is setUp for JOSSO -->
<Realm className="org.josso.tc55.agent.jaas.CatalinaJAASRealm"
appName="app1"
userClassNames="org.josso.gateway.identity.service.BaseUserImpl"
roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
debug="1" /> // I am not sure realm can set twice like this?
<Host appBase="webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
<!-- a Valve for JOSSO -->
<Valve className="org.josso.tc55.agent.SSOAgentValve" debug="9" /> when I set this valve, the tomcat seems running abnormal...
</Host>
</Engine>
</Service>
</Server>
Could you help me to check this file setting? Just check this "servlet.xml". Thank you very much! -
Autounattend.xml - Set Language to English - Australia (en-AU)
Hi all,
Am trying to use the AIK's WSIM application to make my own Autounattend.xml file. This file, along with the Windows install source, is copied onto a USB stick / thumb drive, and the PC is booted from that drive to install Windows 7. Note that there is no
WDS, no MDS or anything else in use here.
The Autounattend.xml works in general, in that I can use it set disk partitions, accept the EULA and enter the license key. What does not work is the language and localisation - what I'm trying to set is:
Input locale: en-AU (or 0c09:00000409)
System locale: en-AU
UI Language: en-AU
UI Language Fallback: en-US
User locale: en-AU
Setup UI Language (winPE only): en-US
I've tried setting this in the following passes:
windowsPE: Microsoft-Windows-International-Core-winPE
specialize: Microsoft-Windows-International-Core
oobeSystem: Microsoft-Windows-International-Core
It does not work: both the language / locale dialogs (one at the very start of setup, before the "Install Now ->" screen; and the other at the very end jus before the desktop appears) still appear, and still default to en-US for everything.
Help! There seem to be various other posts (here and elsewhere) about this, but no resolution for the USB-only scenario. Similar issue seems to exist for en-GB.
Even if I set everything to en-US, the langauge prompts still appear.
Thanks
LukasLatest version of Autounattend.xml file (en-AU set in all 3 places):
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>Boot</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>0c09:00000409</InputLocale>
<SystemLocale>en-AU</SystemLocale>
<UILanguageFallback>en-US</UILanguageFallback>
<UILanguage>en-AU</UILanguage>
<UserLocale>en-AU</UserLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProductKey>AAAAA-AAAAA-AAAAA-AAAAA-AAAAA</ProductKey>
<RegisteredOrganization>Org</RegisteredOrganization>
<RegisteredOwner>Owner</RegisteredOwner>
</component>
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>0c09:00000409</InputLocale>
<SystemLocale>en-AU</SystemLocale>
<UILanguage>en-AU</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-AU</UserLocale>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>0c09:00000409</InputLocale>
<UILanguage>en-AU</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-AU</UserLocale>
<SystemLocale>en-AU</SystemLocale>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/windows%207%20setup/sources/install.wim#Windows 7 PROFESSIONAL" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> -
I'm able to set a variable based on an xml response. When I
output it, it appears fine. When I update my database with the
variable, it's showing extra information. Why isn't it showing up
in the output? I'm using the same #variable.resultcode#, etc.
Example:
Result Code: Error
Code: E00012
Text: You have submitted a duplicate ...
Update Query:
set ARBresultcode = '<?xml version="1.0"
encoding="UTF-8"?> <resultCode
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">Error</resultCode>',
ARBcode = '<?xml version="1.0" encoding="UTF-8"?> <code
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">E00012</code>',
ARBtext = '<?xml version="1.0" encoding="UTF-8"?> <text
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">You have
submitted a duplicate of Subscription 1395221. A duplicate
subscription will not be created.</text>'> I don't want it to input all of that, only the result,
"Success."
Then you should
not be doing
SET status = '<?xml version="1.0" encoding="UTF-8"?>
<resultCode
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">Success</resultCode>'
You should instead do something like
<cfxml variable="statusXML">
<?xml version="1.0" encoding="UTF-8"?>
<resultCode
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
Success
</resultCode>
</cfxml>
<cfset XmlStatus = statusXML.XmlRoot.XmlText>
Then, in the update query, you would do
SET status = '#trim(XmlStatus)#'
The cfoutput tag has been designed to ignore tags, including
your own custom ones. That is why you get just the word
Success when you cfoutput the string
<?xml version="1.0" encoding="UTF-8"?> <resultCode
xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">Success</resultCode> -
IFolder 3.8.4 AutoAccount.xml setting for recovery agent
hi,
Does the AutoAccount.xml response file have setting for recovery agent setting on client.
I would like to deploy ifolder client must using server default for the passphrase recover, rather sscert, sscert is much complex.
Many thankslywwing,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Hello everyone,
I need assistance of setting up an xml development enviroment, I'm currently runing 8.1.6 on NT and I have also installed. I understand that I need XSQL which conatins a personal web server. how could I set it up together and start coding..
thank you in advance..Hi,
Maybe I'm missing something but the installation doc does not seem to match the distribution. I'm looking at the 'Oracle XSQL Pages and the XSQL Servlet' release notes for v9.0.1.0.0 (Production). They are dated 15apr2001.
These notes seem to be in a context of XSQL as it's own package but upon attempting to download I find it's now part of the XDK. No problem except that the notes don't seem to reflect this. The tree structure is slightly different and the included files no longer match the notes (where is sax2.jar?).
I'm trying to hook this into Tomcat. Are there some release notes that actually match the release somewhere? Am I just not reading it properly (sorta new to this)? I navigate around the XDK area but keep ending up with this doc...
Thanx much...
Varek -
Parse XML that is stored in portions in VARCHAR2(4000)
Hello,
I have to query data from a third party application, so don't blame me for the data model :-)
The XML is stored in a VARCHAR2(4000) column and when it has more then 4000 characters it is split into parts with a sequence to identify the order.
Example:
DROP TABLE junk_xml;
CREATE TABLE junk_xml(
id INTEGER -- content id
,nr INTEGER -- content sequence
,fragment VARCHAR2(4000)
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,1,'<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:camt.053.001.02 camt.053.001.02.xsd">
<BkToCstmrStmt>
<GrpHdr>
<MsgId>27632364572</MsgId>
<CreDtTm>2008-09-01T19:30:47.0+01:00</CreDtTm>
<MsgRcpt>
<Id>
<OrgId>
<Othr>
<Id>BCS45678</Id>
</Othr>
</OrgId>
</Id>
</MsgRcpt>
<MsgPgntn>
<PgNb>1</PgNb>
<LastPgInd>true</LastPgInd>
</MsgPgntn>
</GrpHdr>
<Stmt>
<Id>2736482736482</Id>
<ElctrncSeqNb>101</ElctrncSeqNb>
<LglSeqNb>32</LglSeqNb>
<CreDtTm>2008-09-01T17:30:47.0+01:00</CreDtTm>
<Acct>
<Id>
<IBAN>DE62210500001234567890</IBAN>
</Id>
<Ccy>EUR</Ccy>
<Ownr>
<Nm>Name Kontoinhaber</Nm>
</Ownr>
<Svcr>
<FinInstnId>
<BIC>BANKDEFFXXX</BIC>
<Othr>
<Id>123456789</Id>
<Issr>UmsStId</Issr>
</Othr>
</FinInstnId>
</Svcr>
</Acct>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>PRCD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="EUR">112.72</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Dt>
<Dt>2008-09-01</Dt>
</Dt>
</Bal>
<Bal>
<Tp>
<CdOrPrtry>
<Cd>CLBD</Cd>
</CdOrPrtry>
</Tp>
<Amt Ccy="EUR">158780.32</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Dt>
<Dt>2008-09-01</Dt>
</Dt>
</Bal>
<!-- Beispiel 1: SEPA-Zahlungen (Ueberweisung, Lastschrift, R-Nachricht -->
<!--Gutschrift aufgrund eines SEPA-Ueberweisungseinganges-->
<Ntry>
<Amt Ccy="EUR">100.00</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-01</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-01</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>');
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,2,'Ende-zu-Ende-Id des Ueberweisenden</EndToEndId>
</Refs>
<BkTxCd>
<Prtry>
<Cd>NTRF+166</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>
<Nm>Herr Ueberweisender</Nm>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN>DE21500500001234567897</IBAN>
</Id>
</DbtrAcct>
<UltmtDbtr>
<Nm>Herr Debtor Reference Party</Nm>
</UltmtDbtr>
<Cdtr>
<Nm>Herr Kontoinhaber</Nm>
</Cdtr>
<UltmtCdtr>
<Nm>Herr Creditor Reference Party</Nm>
</UltmtCdtr>
</RltdPties>
<Purp>
<Cd>GDDS</Cd>
</Purp>
<RmtInf>
<Ustrd>Rechnungsnr. 4711 vom 20.08.2008</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>SEPA GUTSCHRIFT</AddtlNtryInf>
</Ntry>
<!--Gutschrift aufgrund einer zurueckgekommenen SEPA-Ueberweisung-->
<Ntry>
<Amt Ccy="EUR">200.00</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-01</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-01</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>Urspr. E2E-Id der Hintransaktion</EndToEndId>
</Refs>
<BkTxCd>
<Prtry>
<Cd>NTRF+159++901</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RmtInf>
<Ustrd>Angabe des urspruenglichen Verwendungszweckes</Ustrd>
</RmtInf>
<RtrInf>
<OrgnlBkTxCd>
<Prtry>
<Cd>NTRF+116</Cd>
<Issr>ZKA</Issr>
</Prtry>
</OrgnlBkTxCd>
<Orgtr>
<Id>
<OrgId>
<BICOrBEI>BANKDEHH</BICOrBEI>
</OrgId>
</Id>
</Orgtr>
<Rsn>
<Cd>AC01</Cd>
</Rsn>
<AddtlInf>IBAN FEHLERHAFT</AddtlInf>
</RtrInf>
</TxDtls>');
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,3,'
</NtryDtls>
<AddtlNtryInf>SEPA RUECKBUCHUNG</AddtlNtryInf>
</Ntry>
<!--Belastung aufgrund einer SEPA-Lastschrift-->
<Ntry>
<Amt Ccy="EUR">50.00</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-01</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-01</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<Refs>
<EndToEndId>E2E-Id vergeben vom Glaeubiger</EndToEndId>
<MndtId>Ref. des SEPA-Lastschriftmandats</MndtId>
</Refs>
<BkTxCd>
<Prtry>
<Cd>NDDT+105</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>
<Nm>Herr Zahlungspflichtiger</Nm>
</Dbtr>
<UltmtDbtr>
<Nm>Herr Debtor Reference Party</Nm>
</UltmtDbtr>
<Cdtr>
<Nm>Glaeubigerfirma</Nm>
<Id>
<PrvtId>
<Othr>
<Id>Cdtr-Id des Glaeubigers</Id>
</Othr>
</PrvtId>
</Id>
</Cdtr>
</RltdPties>
<Purp>
<Cd>PHON</Cd>
</Purp>
<RmtInf>
<Ustrd>Telefonrechnung August 2009, Vertragsnummer 3536456345</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>SEPA LASTSCHRIFT</AddtlNtryInf>
</Ntry>
<!-- Beispiel 2: DTAUS-Zahlungen (Ueberweisung, Lastschrift, Rueckgabe) -->
<!--Gutschrift aufgrund eines DTA-Überweisungseinganges-->
<Ntry>
<Amt Ccy="EUR">100.00</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-02</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-02</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz aus DTA C-Satz Feld 6</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+051++000</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>');
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,4,'
<Nm>Herr Überweisender</Nm>
</Dbtr>
<DbtrAcct>
<Id>
<Othr>
<Id>1234567890</Id>
</Othr>
</Id>
</DbtrAcct>
</RltdPties>
<RmtInf>
<Ustrd>Rechnungsnr 4711 - Warenlieferung vom 20.08.2008</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>ÜBERWEISUNGSGUTSCHRIFT</AddtlNtryInf>
</Ntry>
<!--Gutschrift aufgrund einer zurückgekommenen DTA-Überweisung-->
<Ntry>
<Amt Ccy="EUR">200.00</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-02</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-02</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz aus DTA C-Satz Feld 6</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+059++511</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RmtInf>
<Ustrd>Angabe des ursprünglichen Verwendungszweckes</Ustrd>
</RmtInf>
<RtrInf>
<OrgnlBkTxCd>
<Prtry>
<Cd>NTRF+051++000</Cd>
<Issr>ZKA</Issr>
</Prtry>
</OrgnlBkTxCd>
<Orgtr>
<Nm>Herr Überweisungsempfänger</Nm>
</Orgtr>
<Rsn>
<Prtry>512</Prtry>
</Rsn>
<AddtlInf>BLZ 25069674 EXISTIERT NICHT</AddtlInf>
</RtrInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>RÜCKÜBERWEISUNG</AddtlNtryInf>
</Ntry>
<!--Belastung aufgrund einer DTA-Lastschrift-->
<Ntry>
<Amt Ccy="EUR">50</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-02</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-02</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz aus DTA C-Satz Feld 6</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+005++000</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,5,'<RltdPties>
<Cdtr>
<Nm>Telefongesellschaft ABC</Nm>
</Cdtr>
</RltdPties>
<RmtInf>
<Ustrd>Telefonrechnung August 2009, Vertragsnummer 3536456345</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>LASTSCHRIFT</AddtlNtryInf>
</Ntry>
<!-- Beispiel 3a: Sammlerdarstellung mit Aufloesung innerhalb der Nachricht -->
<!--Belastung aufgrund von SEPA-Lastschriftrueckgaben (Sammelbuchung) mit Sammleraufloesung unter Transaction Details-->
<Ntry>
<Amt Ccy="EUR">276</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-03</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-03</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<!-- BkTxCd ist Pflichtfeld gemaess ISO, wird jedoch ausschliesslich auf Tx-Ebene verwendet -->
<NtryDtls>
<Btch>
<NbOfTxs>3</NbOfTxs>
</Btch>
<TxDtls>
<!-- Ab hier Aufloesung des Sammlers bestehend aus 3 Einzelumsaetzen -->
<Refs>
<EndToEndId>79892</EndToEndId>
<MndtId>10001</MndtId>
</Refs>
<AmtDtls>
<TxAmt>
<Amt Ccy="EUR">76</Amt>
</TxAmt>
</AmtDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+109++901</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>
<Nm>Herr Zahlungspflichtiger 1</Nm>
</Dbtr>
<Cdtr>
<Nm>Telefongesellschaft ABC</Nm>
<Id>
<PrvtId>
<Othr>
<Id>CdtrId des SEPA-Lastschrifteinr.</Id>
</Othr>
</PrvtId>
</Id>
</Cdtr>
</RltdPties>
<Purp>
<Cd>PHON</Cd>
</Purp>
<RmtInf>
<Ustrd>Telefonrechnung August 2009, Vertragsnummer 3536456345</Ustrd>
</RmtInf>
</TxDtls>
<TxDtls>
<Refs>
<EndToEndId>768768</EndToEndId>
<MndtId>10002');
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,6,'</MndtId>
</Refs>
<AmtDtls>
<TxAmt>
<Amt Ccy="EUR">80</Amt>
</TxAmt>
</AmtDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+109++901</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>
<Nm>Herr Zahlungspflichtiger 2</Nm>
</Dbtr>
<Cdtr>
<Nm>Telefongesellschaft ABC</Nm>
<Id>
<PrvtId>
<Othr>
<Id>CdtrId des SEPA-Lastschrifteinr.</Id>
</Othr>
</PrvtId>
</Id>
</Cdtr>
</RltdPties>
<Purp>
<Cd>PHON</Cd>
</Purp>
<RmtInf>
<Ustrd>Telefonrechnung August 2009, Vertragsnummer 3536456888</Ustrd>
</RmtInf>
</TxDtls>
<TxDtls>
<Refs>
<EndToEndId>45456465</EndToEndId>
<MndtId>10003</MndtId>
</Refs>
<AmtDtls>
<TxAmt>
<Amt Ccy="EUR">120</Amt>
</TxAmt>
</AmtDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+109++901</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<RltdPties>
<Dbtr>
<Nm>Herr Zahlungspflichtiger 3</Nm>
</Dbtr>
<Cdtr>
<Nm>Telefongesellschaft ABC</Nm>
<Id>
<PrvtId>
<Othr>
<Id>CdtrId des SEPA-Lastschrifteinr.</Id>
</Othr>
</PrvtId>
</Id>
</Cdtr>
</RltdPties>
<Purp>
<Cd>PHON</Cd>
</Purp>
<RmtInf>
<Ustrd>Telefonrechnung August 2009, Vertragsnummer 3536456345</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>SEPA Direct Debit (Einzelbuchung-Soll, Core)</AddtlNtryInf>
</Ntry>
<!-- Beispiel 3b: Sammlerdarstellung mit Verweis auf pain-Nachricht und separate camt.054.001.01-Nachricht -->
<!--Belastung aufgrund einer SEPA-Ueberweisung (Sammler) mit Verweis auf Original pain-Nachricht-->
<Ntry>
<Amt Ccy="');
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,7,'EUR">100876.00</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-03</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-03</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<Btch>
<MsgId>MsgId der pain-Nachricht</MsgId>
<PmtInfId>Sammler-Id dieser pain-Nachricht</PmtInfId>
</Btch>
<TxDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+191</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>SEPA Credit Transfer (Sammler-Soll)</AddtlNtryInf>
</Ntry>
<!--Belastung aufgrund von SEPA-Lastschriftrueckgaben (Sammelbuchung) mit Verweis auf separate camt.054.001.01-Nachricht-->
<Ntry>
<Amt Ccy="EUR">276.00</Amt>
<CdtDbtInd>DBIT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-03</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-03</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<AddtlInfInd>
<MsgNmId>camt.054.001.01</MsgNmId>
<MsgId>054-20090903-00034</MsgId>
<!-- siehe Bsp. camt54 Bsp 3b -->
</AddtlInfInd>
<NtryDtls>
<TxDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+109++901</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>SEPA Direct Debit (Einzelbuchung-Soll, Core)</AddtlNtryInf>
</Ntry>
<!-- Beispiel 4: USD-Zahlung mit Gutschrift auf einem EUR-Konto -->
<!-- USD-Zahlung mit Gutschrift auf einem EUR-Konto -->
<Ntry>
<Amt Ccy="EUR">259595.60</Amt>
<CdtDbtInd>CRDT</CdtDbtInd>
<Sts>BOOK</Sts>
<BookgDt>
<Dt>2008-09-04</Dt>
</BookgDt>
<ValDt>
<Dt>2008-09-04</Dt>
</ValDt>
<AcctSvcrRef>Bankreferenz</AcctSvcrRef>
<BkTxCd/>
<NtryDtls>
<TxDtls>
<AmtDtls>
<InstdAmt>
<Amt Ccy="USD">360873.97</Amt>
INSERT INTO junk_xml (id,nr,fragment)
VALUES (0,8,'</InstdAmt>
<TxAmt>
<Amt Ccy="EUR">259595.60</Amt>
</TxAmt>
<CntrValAmt>
<Amt Ccy="EUR">259621.56</Amt>
<CcyXchg>
<SrcCcy>USD</SrcCcy>
<TrgtCcy>EUR</TrgtCcy>
<XchgRate>1.39</XchgRate>
</CcyXchg>
</CntrValAmt>
</AmtDtls>
<BkTxCd>
<Prtry>
<Cd>NTRF+202</Cd>
<Issr>ZKA</Issr>
</Prtry>
</BkTxCd>
<Chrgs>
<Amt Ccy="EUR">25.96</Amt>
</Chrgs>
<RltdPties>
<Dbtr>
<Nm>West Coast Ltd.</Nm>
<PstlAdr>
<Ctry>US</Ctry>
<AdrLine>52, Main Street</AdrLine>
<AdrLine>3733 San Francisco</AdrLine>
</PstlAdr>
</Dbtr>
<DbtrAcct>
<Id>
<Othr>
<Id>546237687</Id>
</Othr>
</Id>
</DbtrAcct>
</RltdPties>
<RltdAgts>
<DbtrAgt>
<FinInstnId>
<BIC>BANKUSNY</BIC>
</FinInstnId>
</DbtrAgt>
</RltdAgts>
<RmtInf>
<Ustrd>Invoice No. 4545</Ustrd>
</RmtInf>
</TxDtls>
</NtryDtls>
<AddtlNtryInf>AZV-UEBERWEISUNGSGUTSCHRIFT</AddtlNtryInf>
</Ntry>
</Stmt>
</BkToCstmrStmt>
</Document>');
COMMIT;
My first idea was to use LISTAGG to splice the pieces, but I get an ORA-01489: result of string concatenation is too long
SELECT XMLTYPE(
LISTAGG(fragment,'')
WITHIN GROUP(ORDER BY nr))
FROM junk_xml
WHERE id = 0
GROUP BY id;
I also considered exporting the data into another table using maybe dbms_lob to concatenate the strings, but I'm not allowed to create another table.
Any idea how I can access the data hidden in this application?
Regards
Marcus
P.S.: The application is not about SEPA-processing, but I don't want to show the real data.Hi Marcus,
This should work nicely :
select xmlparse(document
xmlcast(
xmlagg(xmlforest(fragment) order by nr)
as clob
) as complete_doc
from junk_xml
where id = 0 ; -
10.2 equivalent to xmlexists - existsnode?
Hi
When I was trying to compile a procedure on a 10.2 server I realized that it doesn't support XMLEXISTS, what is the recommended 10.2 equivalent, existsnode?
I might be doing it all wrong though, I need to count the number of occurences of a certain node, I haven't found a better way than looping through the data and querying it if a certain occurence exists:
select 1
from test_table t
where xmlexists('declare default element namespace "urn:iso:std:iso:20022:tech:xsd:camt.053.001.02"; (: :)
$root/Document/BkToCstmrStmt/Stmt[$id]'
passing object_value as "root"
, cast(b_stmt_nr as number) as "id"
)In theory, the occurences might be more than 1, in practice it is always 1, but I still have to check. Is there an altogether better way to count the nodes?When I was trying to compile a procedure on a 10.2 server I realized that it doesn't support XMLEXISTS, what is the recommended 10.2 equivalent, existsnode?Yes, it's existsNode.
I might be doing it all wrong though, I need to count the number of occurences of a certain node, I haven't found a better way than looping through the data and querying it if a certain occurence existsNot sure what you're after exactly.
This will count the number of Stmt element :
select count(*)
from test_table t
, xmltable(
xmlnamespaces(default 'urn:iso:std:iso:20022:tech:xsd:camt.053.001.02')
, '/Document/BkToCstmrStmt/Stmt'
passing t.object_value
;Is that what you need? -
Hi all,
I did the basic stuff of T-SQL long time ago. I dive in to do the SQL Server XQuery programming. I saw the following set of code statements from a tutotial website:
DECLARE @x xml;
SET @x = N'';
SELECT @x.query('(1,2,(10,11,12,13,14,15)),-6');
1) What is @x in the code statement of DECLARE @x xml;? What is N in the code statement of SET @x = N ' '?
2) Is the N in the code statement of SET @x = N ' '; absobutally necessary in the SQL Server XQuery programming? From XQuery Language Reference of SQL Server 2012 Books Online, I saw the following set of code statements:
DECLARE @x XML
SET @x = '<a/>'
SELECT @x.query('if (/a[1]) then "true" else "false"')
go
I wonder why there is no N in the code statement of the XQuery Language Reference?
Please kindly help, clarify my confusions and answer my questions mentioned above.
Thanks in advance,
Scott Chang@x is a variable with xml data type. An N prefix stands for the string in Unicode. The N is not necessary in the SQL Server XQuery programming if the values of the element or attribute in the xml are not in an international language.
A Fan of SSIS, SSRS and SSAS -
Parsing XML with VBS at a Windows Server 2008 R2
Hi
my name is Marius, and I have a little problem with my vbs script. I use this script to parse an xml File if there are errors inside. In my old environment Windows Server 2003 it would work fine.
Now I will run this script at a newer Server 2008 R2, and it is not working.
Dim sName
sName = "Path to xml file"
Dim xmlFile
Dim oneNode
Dim childNodes, childNode
Dim attribut
Dim EventID
Dim repGroup
Dim CustomDomain
Dim ErrorCounter
BackupNotes = ""
ErrorCounter = 0
wscript.Echo "sName: " & sName 'Wird in die Logdatei geschrieben
set xmlFile = CreateObject("Microsoft.XMLDOM")
'Es wird die XML Datei geladen
if xmlFile.load(sName) then
'Schreibt das Datum und die Uhrzeit des XML Datei in oneNode
set oneNode = xmlFile.selectSingleNode("//timestamp/systemTime")
if oneNode is Nothing then
BackupBeginTime = ""
BackupEndTime = ""
BackupBeginDate = ""
BackupEndDate = ""
'wscript.echo "Keine Daten vorhanden" 'Wird in die Logdatei geschrieben
else
'Friday, November 09, 2012 11:55:32
BackupBeginTime = right(oneNode.text, 8)
'nimm von rechts die 8 folgenden Zeichen (11:55:32)
BackupEndTime = BackupBeginTime
Dim Laenge
Laenge = LEN(oneNode.text)
'zaehlt die Lange des Strings in oneNode 'Friday, November 09, 2012 11:55:32 = 34
'wscript.echo Laenge
Laenge = Laenge - 9
'34 - 9 = 25
'es wird das Datum aus dem String der XML Datei gebaut, damit es in die DB geschrieben werden kann
Dim dfsDate
Dim dfsVon
Dim dfsBis
dfsDate = left(oneNode.text, Laenge)
'nimm von links die 25 folgenden Zeichen (Friday, November 09, 2012)
dfsVon = inStr(dfsDate, ",")
'pruefe wo das 1. Komma ist und schreiben die Zeichen in die Variable
dfsVon = dfsVon + 1
'wscript.echo dfsVon
dfsBis = LEN(dfsDate)
'wscript.echo dfsBis
dfsDate = mid(dfsDate, dfsVon, dfsBis)
'Nimm die daten ab dem Komme bis zum Ende des Strings
dfsDate = trim(dfsDate)
'entferne die Leerzeichen Vor und Nach dem Sting
'Wscript.echo dfsDate
dfsDate = cdate(dfsDate)
'dfsDate = November 09, 2012 und wird in 09.11.2012 durch cdate umgebaut
'wscript.echo dfsDate
BackupBeginDate = dfsDate
BackupEndDate = dfsDate
end if
set oneNode = xmlFile.selectSingleNode("//replicationGroup")
'Sucht nach der Replikationsgruppe und der Domain
repGroup = oneNode.getAttribute("name")
CustomDomain = oneNode.getAttribute("domain")
if oneNode is Nothing then
wscript.echo "Keine Daten vorhanden"
'Wird in die Logdatei geschrieben
else
wscript.echo "RepGroup: " & repGroup
'holt sich den Namen der Replikations Gruppe 'Wird in die Logdatei geschrieben
wscript.echo "Domain: " & CustomDomain
'holt sich den Domain 'Wird in die Logdatei geschrieben
end if
set childNodes = xmlFile.selectNodes("//serverErrors/error")
for each childNode in childNodes
'Zugriff auf den Type und die Event ID
attribut = childNode.getAttribute("type")
EventID = childNode.getAttribute("id")
if isNull(attribut) then
wscript.echo "MultiParameter nicht gefunden" 'Wird in die Logdatei geschrieben
'Fehlerhandling, da attribut nicht vorhanden
'wenn keines dieser Attribute vorhanden ist, ist der Backupjob erfolgreich
ErrorCounter = 0
else
' pruefen was im attribut steht und dann entscheiden ob erfolgreich oder nicht
if(attribut = "error") then
if(EventID = "6002") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &")"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - http://support.microsoft.com/kb/953527" 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 1
elseif(EventID = "11004") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Temp File)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Es konnten nicht alle Daten kopiert werden, Temporaere Dateien http://social.technet.microsoft.com/wiki/contents/articles/406.dfsr-does-not-replicate-temporary-files.aspx"
'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif(EventID = "4302") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Freigabeverletzung)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Freigabeverletzung http://support.microsoft.com/kb/973836 - Fehler ist bekannt und kann ignoriert werden" 'Wird in die
Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif(EventID = "4208") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Staging Quota)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Staging Quota zu klein http://blogs.technet.com/b/askds/archive/2011/07/13/how-to-determine-the-minimum-staging-area-dfsr-needs-for-a-replicated-folder.aspx"
'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 1
else
BackupNotes = BackupNotes & " "& attribut &"("& EventID &")"
wscript.echo "EventID: "& attribut &" ("& EventID & ")" 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 1
end if
end if
if(attribut = "warning") then
if (EventID = "4208") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Staging Quota)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Staging Quota zu klein http://www.retherfords.com/blogs/CoryRetherford/Lists/Posts/Post.aspx?ID=104 - Fehler ist bekannt und
kann ignoriert werden" 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif (EventID = "11004") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Temp Datei)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Es konnten nicht alle Daten kopiert werden, Temporaere Dateien - Fehler ist bekannt und kann ignoriert werden" 'Wird
in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif (EventID = "4302") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Freigabeverletzung)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Freigabeverletzung http://support.microsoft.com/kb/973836 - Fehler ist bekannt und kann ignoriert werden" 'Wird
in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif (EventID = "4206") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" - Staging Quota)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - Staging Quota zu klein http://mpwiki.viacode.com/default.aspx?g=posts&t=123818" 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
elseif (EventID = "11001") then
BackupNotes = BackupNotes & " "& attribut &"("& EventID &" -)"
wscript.echo "EventID: "& attribut &" ("& EventID & ") - " 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
else
BackupNotes = BackupNotes & " "& attribut &"("& EventID &")"
wscript.echo "EventID: "& attribut &" ("& EventID & ")" 'Wird in die Logdatei geschrieben
'Fehlerbehandlung mit ErrrorCounter - Fehler bekannt = 0 Fehler unbekannt + 1
ErrorCounter = ErrorCounter + 0
end if
end if
end if
next
else
wscript.echo "Pfad (sName): XML Datei nicht vorhanden" 'Wird in die Logdatei geschrieben
ErrorCounter = ErrorCounter + 1
'Wenn keine XML Datei vorhanden ist, wird dies in die DB geschrieben
BackupBeginTime = ""
BackupEndTime = ""
BackupBeginDate = ""
BackupEndDate = ""
BackupNotes = "XML Datei nicht vorhanden"
end if
Had somebody a Info for me what I'm doing wrong :)
Thanks & Regards
MariusHi JRV,
I have checked my script und I have get it running by wscript.
And I have an error with the funktion cdate:
sName: \\S-49-NICSAS-201.nicsas.local\_logs\RH\S-49-RHBAD-001\DFS\S-49-RHBAD-001-Bad_Users.xml
10
27
December 19, 2013
C:\_scripts\xmltest.vbs(56, 3) Microsoft VBScript runtime error: Type mismatch:'cdate'
THis is the Code:
dfsDate = left(oneNode.text, Laenge)
'nimm von links die 25 folgenden Zeichen (Friday, November 09, 2012)
dfsVon = inStr(dfsDate, ",")
'pruefe wo das 1. Komma ist und schreiben die Zeichen in die Variable
dfsVon = dfsVon + 1
wscript.echo dfsVon
dfsBis = LEN(dfsDate)
wscript.echo dfsBis
dfsDate = mid(dfsDate, dfsVon, dfsBis)
'Nimm die daten ab dem Komme bis zum Ende des Strings
dfsDate = trim(dfsDate)
'entferne die Leerzeichen Vor und Nach dem Sting
Wscript.echo dfsDate
dfsDate = cdate(dfsDate)
'dfsDate = November 09, 2012 und wird in 09.11.2012 durch cdate umgebaut
wscript.echo dfsDate
I'm not sure why it is not working, could you help?
Thanks & Regards
Marius -
I have a SQL Server table which needs to be output into a specific format.
Create Table
CREATE TABLE [ESS].[tblAdressGeoTag](
[RowId] [int] IDENTITY(1,1) NOT NULL,
[EntityID] [nvarchar](255) NULL,
[Name] [nvarchar](255) NULL,
[DisplayName] [nvarchar](255) NULL,
[AddressLine] [nvarchar](255) NULL,
[Locality] [nvarchar](255) NULL,
[AdminDistrict] [nvarchar](255) NULL,
[AdminDistrict2] [nvarchar](255) NULL,
[CountryRegion] [nvarchar](255) NULL,
[PostalCode] [nvarchar](255) NULL,
[Latitude] [geography] NULL,
[Longitude] [geography] NULL,
[EntityTypeId] [nvarchar](255) NULL,
CONSTRAINT [PK_ESS.tblAdressGeoTag] PRIMARY KEY CLUSTERED
[RowId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
Insert Sample Data
insert into ESS.tblAdressGeoTag
[EntityID],
[Name] ,
[DisplayName] ,
[AddressLine] ,
[Locality] ,
[AdminDistrict] ,
[CountryRegion] ,
[PostalCode]
Values
(N'2555',N'Microsoft', N'Microsoft', N'1 Microsoft Way',N'Redmond', N'WA', N'USA', N'98052'),
(N'5588','ABC Enterprises', 'ABC Enterprises', '2501 Broadway','Bakersfield', 'CA', 'USA', '94022')
TSQL Select Statement to Format XML Data
Declare @XMLOutput XML
Set @XMLOutput= (Select
[RowId] id
,[EntityID]
,[Name]
,[DisplayName]
,[AddressLine]
,[Locality]
,[AdminDistrict]
,[AdminDistrict2]
,[CountryRegion]
,[PostalCode]
,[EntityTypeId]
from ESS.tblAdressGeoTag as GeocodeEntity
For XML Auto, Root ('GeocodeEntity'))
Select @XMLOutput
Results to this Output
<GeocodeEntity>
<GeocodeEntity RowId="1" EntityID="2555" Name="Microsoft" DisplayName="Microsoft" AddressLine="1 Microsoft Way" Locality="Redmond" AdminDistrict="WA" CountryRegion="USA" PostalCode="98052" />
<GeocodeEntity RowId="2" EntityID="5588" Name="ABC Enterprises" DisplayName="ABC Enterprises" AddressLine="250 Broadway" Locality="Bakersfield" AdminDistrict="CA" CountryRegion="USA" PostalCode="88752" />
</GeocodeEntity>
But Output must look exactly like this, including the header information:
<?xml version="1.0" encoding="utf-8"?>
<GeocodeFeed xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode"
Version="2.0">
<GeocodeEntity Id="001"
xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
<GeocodeRequest Culture="en-US" IncludeNeighborhood="1">
<Address AddressLine="1 Microsoft Way" AdminDistrict="WA" Locality="Redmond"
PostalCode="98052" />
</GeocodeRequest>
</GeocodeEntity>
<GeocodeEntity Id="002"
xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
<GeocodeRequest Culture="en-US" IncludeNeighborhood="1">
<Address AddressLine="2501 Broadway" AdminDistrict="CA" Locality="Bakersfield"
PostalCode="94022" />
</GeocodeRequest>
</GeocodeEntity>
</GeocodeFeed>
Can someone please let me know how to format my TSQL Select script so that required output is achieved, including header.
Thank you,
JohnThank you Saeid, I'm not quite certain how to put several elements in here:
e.g:
The required header information,
the section:
<?xml version="1.0" encoding="utf-8"?>
<GeocodeFeed xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode"
Version="2.0">
and
<GeocodeEntity Id="001"
xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
<GeocodeRequest Culture="en-US" IncludeNeighborhood="1">
and then the insert portion of the
Address section.
The final output must be exactly like:
<?xml version="1.0" encoding="utf-8"?>
<GeocodeFeed xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode"
Version="2.0">
<GeocodeEntity Id="001"
xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
<GeocodeRequest Culture="en-US" IncludeNeighborhood="1">
<Address AddressLine="1 Microsoft Way" AdminDistrict="WA" Locality="Redmond"
PostalCode="98052" />
</GeocodeRequest>
</GeocodeEntity>
<GeocodeEntity Id="002"
xmlns="http://schemas.microsoft.com/search/local/2010/5/geocode">
<GeocodeRequest Culture="en-US" IncludeNeighborhood="1">
<Address AddressLine="2501 Broadway" AdminDistrict="CA" Locality="Bakersfield"
PostalCode="94022" />
</GeocodeRequest>
</GeocodeEntity>
</GeocodeFeed> -
Script for generating XML file ... problem with null values
Greetings everyone,
i come here with a question that troubles me for some time now. I have a script which i run from SQLPLUS every now and then to generate an XML file.
Problem is that data which needs to be in XML is not allways <> NULL and i need to hide those tags that are empty </tag>.
I will post below my script and if you could help me with it it would be really great!
Thanks for reading!
set long 20000000
set long 20000000
set linesize 32000
SET ECHO OFF
SET TRIMSPOOL on
SET HEADING OFF
SET PAGESIZE 50000
SET VERIFY OFF
SET FEEDBACK OFF
SET TERMOUT OFF
spool C:\test.xml
set serveroutput on
begin
dbms_output.put_line('<?xml version="1.0" encoding="utf-8" ?>');
end;
SELECT
XMLELEMENT("ReportRoot",XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi", 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" , '1.0' as "Version",sysdate as "CreationDate",to_char(sysdate,'hh:mm:ss') as "CreationTime",'1524544845' as "id"),
XMLELEMENT("Porocila",XMLELEMENT("JOLY",(SELECT XMLAGG (XMLELEMENT("RefNrReport",replace('SON'||to_char(ref_ST,'00000'),' ',''))) from access_table_2 where ref_ST = &1),
XMLELEMENT("ReportDate",sysdate),XMLELEMENT("Labeling",'545254450'),
(SELECT XMLAGG (XMLELEMENT("Reportf",
XMLELEMENT("access",access),
XMLELEMENT("date",date),
XMLELEMENT("datep",datep),
XMLELEMENT("ModificationInfo",'M'),XMLELEMENT("ModificationReason",modireason)))
from v_xml_test where id_dok = &1 and ind_print = '1'))))
.extract('/*')
from dual
spool off
exitNow lets pretend that XMLELEMENT("datep",datep), is sometimes NULL and i do not want to display it.may be
with t as
select sysdate datep from dual union all
select null datep from dual
select xmlagg(xmlelement("Reportf",
case when datep is not null then XMLELEMENT("datep", datep)
end
from t
Maybe you are looking for
-
How to get int value from [session.getAttribute("String")]
i am not able to get int value from the following statiment int i=session.getAttribute("String"); i also try by casting it into int but it dont work, can somebody help me in this regard
-
Help, was clearing HD out and now will not start up!
I think I may have deleted some files i shouldn't have whilst trying to free up some space on my imac. If I turn it on it goes to the screen with the grey box telling me to restart my computer. Over the screen there is loads of text starting with, pa
-
How to erase all content in MacBook Pro?
I need to erase all data and content in my MacBook. How can I do this?
-
How to getLine Details from Invoice Details window inside Service Contracts
Working on 11.5.10.2 Service Contracts Module. Trying to retrieve Line Details from Invoice Details tab. Service Contracts Authoring > Invoice Details > Line Details. I have tried creating a join to oks_bill_transactions but this returns too many rec
-
Experts, In the IDOC I receive, there a ~ symbol after each record. So while conversion, my file is holding only the first record. Later records are missing. What do I need to do to get complete file output.