APEX_UTIL.PREPARE_URL cannot produce checksum
Hi, Guys:
I tried to use APEX to generate checksum for url, but it does not work, no checksum is generated. I was confused. Culd anyone tell me what is the problem? here is my code:
DECLARE
l_url varchar2(2000);
BEGIN
:P1_TF_CHECKSUM:= APEX_UTIL.PREPARE_URL('f?p='||:APP_ID||':12:'||:APP_SESSION||'::NO::P12_ACE_ID:xyz', p_checksum_type => 'SESSION');
END;You can find my application on apex.oracle.com:
workspace: LIAPEXTEST
acc:[email protected]
pwd:lxus2000
app_ID: 44976
Thanks!
Hi,
My understanding is that the checksum will only be generated if there is some sort of session state protection enabled, on the items you are trying to set through the URL. (Probably if the page has some sort of protection as well)
For example, the text item you have on page 1 has the security setting: "Checksum required - session level".
So I copied your page process, and attempted to set that page item in the process - now you will see the checksum generated.
On the original process (currently disabled), for which you are setting an item that doesn't exist, and thus has no session state protection, therefore no checksum is needed.
Similar Messages
-
Trouble getting apex_util.prepare_url to produce checksum
Session State Protection is enabled in both apps & Page attribute "Page access protection" is set to "Arguments Must have Checksum"
Does not give checksum...
http://apex.oracle.com/pls/apex/f?p=34780:3
I even went into SSP and had it enabled for all page items and pages and still doesn't make a difference.
Select 'x', APEX_UTIL.PREPARE_URL ('f?p='||:APP_ID || ':1::' || :APP_SESSION || '::::P1_EMPNO:' ) employee_link from dual;
Different app Same Query... Provices checksum
http://apex.oracle.com/pls/apex/f?p=39900:3
Select 'x', APEX_UTIL.PREPARE_URL ('f?p='||:APP_ID || ':1::' || :APP_SESSION || '::::P1_EMPNO:' ) employee_link from dual;
Any Ideas?
Justin
workspace:epicOK.. seems to me that:
Justin Patterson wrote:
Does not give checksum...
http://apex.oracle.com/pls/apex/f?p=34780:3
SSP Screenshot
http://tinypic.com/r/k4fjvc/7
This has no page 1, therefore no checksum would be generated ;).
>
Different app Same Query... Provices checksum
http://apex.oracle.com/pls/apex/f?p=39900:3
SSP Screenshot
http://tinypic.com/r/5fnst2/7
This has page 1, therefore checksum is generated.
Also, the app_session is in the wrong place.
Ta,
Trent -
APEX_UTIL.PREPARE_URL with checksum
Hi all,
sorry to bring up this topic up again.
I was trying to do what was discussed in the following thread, but it just couldn't work for me.
APEX_UTIL.PREPARE_URL 0- cecksum parameter
The link in my email did not have the checksum parameter though i have run it over the APEX_UTIL.prepare_url function
I verify this using the toad debugger.
and I use the following sql to test as well
select apex_util.prepare_url('f?p=137:99::5:NO:5:P5_REQUESTSEQ:2010100246',null,3) from dualit only return that string back without any checksum parameter.
Am I doing this wrongly?
Appreciate any input.
Thanks.
-JoelHi Jari,
Should i have session id because the link will be used by other people whom is the recipient of the email?
I was following the steps in the other thread I mentioned.
So if the link you want them to use is f?p=100:1:::NO:RP:P1_X,P1_Y:abc,def and your new public page is 2, send them this link instead:f?p=100:2::1:NO:RP:P1_X,P1_Y:abc,def.Without the SSP, the redirection and joining existing session are working. So I guess order of the parameter in the URL is correct.
Thanks
-Joel -
APEX_UTIL.PREPARE_URL does not work across workspaces?
We are running ApEx 4.1.1 on Oracle 11g.
I am trying to call an application in another workspace and am using APEX_UTIL.PREPARE_URL in a hidden item and then a button with REDIRECT TO URL using javascript:popUp2 which uses the hidden item (the returned value of the PREPARE_URL. The code works fine if I am in the same workspace and a checksum is returned:
APEX_UTIL.PREPARE_URL('f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION');
returns:
f?p=9002:2:1400894538262901::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:9001,FRD_MASTER_BANSECR&c=STU_WS&cs=3190FB9A8CC967E5B3CED03460DF6F291
I can press the button and app 9002 opens in a new window.
When I try the same code in an application in another workspace, no checksum is returned:
APEX_UTIL.PREPARE_URL('f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION');
returns:
f?p=9002:2:8288147979401::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:112,Testing_Template&c=STU_WS
and I get the error:
Error Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum.
I have also tried it without the workspace '&c=STU_WS' and explicitly passing the parameters, but no checksum is returned.
APEX_UTIL.PREPARE_URL(p_url => 'f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.',p_checksum_type => 'SESSION')
If I do not try to pass any parameters, no checksum is produced, but the button successfully opens app 9002 in a new window:
APEX_UTIL.PREPARE_URL('f?p=9002:4:&SESSION.::NO::&c=STU_WS','SESSION');
returns:
f?p=9002:4:8288147979401::NO:::&c=STU_WS
Again, the above code successfully opens app 9002 in a new window. In fact, when not passing parameters to app 9002, I would not seem to need to use PREPARE_URL.
BUT. I do need to pass the calling app id and the calling app name to app 9002, because 9002 looks up information about the calling app. Since, I must pass parameters, I must use PREPARE_URL, and it does not seem to work when you call it for an app in a different workspace.
Given all of the above, I have found a kludge. I call PREPARE_URL using the APP_ID of the current app and then replace that APP_ID with 9002.
replace(APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION'),
'f?p=&APP_ID.:2','f?p=9002:2')
returns:
f?p=9002:2:8288147979401::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:112,Testing_Template&c=STU_WS&cs=33B2BB2ECFE3555198CE3325CCF9F67B8
And the button opens app 9002 just fine.
Is there anyway to get PREPARE_URL to work with apps in another workspace? What am I missing? Is there a better way than the kludge I came up with?
A little more information: my app 9002 is a help & info for ApEx DBAs and Developers. It is my attempt at code reuse. Calls to 9002 are in a master template. I can continually update and change the help in 9002 without having to update the apps that call it.
Thanks for your help,
Chrislewisc3 wrote:
We are running ApEx 4.1.1 on Oracle 11g.
I am trying to call an application in another workspace and am using APEX_UTIL.PREPARE_URL in a hidden item and then a button with REDIRECT TO URL using javascript:popUp2 which uses the hidden item (the returned value of the PREPARE_URL. The code works fine if I am in the same workspace and a checksum is returned:
APEX_UTIL.PREPARE_URL('f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION');
returns:
f?p=9002:2:1400894538262901::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:9001,FRD_MASTER_BANSECR&c=STU_WS&cs=3190FB9A8CC967E5B3CED03460DF6F291
I can press the button and app 9002 opens in a new window.
When I try the same code in an application in another workspace, no checksum is returned:
APEX_UTIL.PREPARE_URL('f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION');
returns:
f?p=9002:2:8288147979401::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:112,Testing_Template&c=STU_WS
and I get the error:
Error Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum.
I have also tried it without the workspace '&c=STU_WS' and explicitly passing the parameters, but no checksum is returned.
APEX_UTIL.PREPARE_URL(p_url => 'f?p=9002:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.',p_checksum_type => 'SESSION')
If I do not try to pass any parameters, no checksum is produced, but the button successfully opens app 9002 in a new window:
APEX_UTIL.PREPARE_URL('f?p=9002:4:&SESSION.::NO::&c=STU_WS','SESSION');This is wrong because you are passing string SESSION for url_charset parameter, that's why id is not adding any checksum
See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI160
returns:
f?p=9002:4:8288147979401::NO:::&c=STU_WS
Again, the above code successfully opens app 9002 in a new window. In fact, when not passing parameters to app 9002, I would not seem to need to use PREPARE_URL.
BUT. I do need to pass the calling app id and the calling app name to app 9002, because 9002 looks up information about the calling app. Since, I must pass parameters, I must use PREPARE_URL, and it does not seem to work when you call it for an app in a different workspace.
Given all of the above, I have found a kludge. I call PREPARE_URL using the APP_ID of the current app and then replace that APP_ID with 9002.
replace(APEX_UTIL.PREPARE_URL('f?p=&APP_ID.:2:&SESSION.::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:&APP_ID.,&G_APP_NAME.&c=STU_WS','SESSION'),
'f?p=&APP_ID.:2','f?p=9002:2')
returns:
f?p=9002:2:8288147979401::NO::P2_CALLING_APP_ID,P2_CALLING_APP_NAME:112,Testing_Template&c=STU_WS&cs=33B2BB2ECFE3555198CE3325CCF9F67B8
And the button opens app 9002 just fine.
Is there anyway to get PREPARE_URL to work with apps in another workspace? What am I missing? Is there a better way than the kludge I came up with?
A little more information: my app 9002 is a help & info for ApEx DBAs and Developers. It is my attempt at code reuse. Calls to 9002 are in a master template. I can continually update and change the help in 9002 without having to update the apps that call it.
Review all above API calls and make sure you pass right parameters -
Apex_util.prepare_url from PL/SQL (outside APEX)
Hello there,
I have to create a job that sends emails with a link to a page with SSP actived and that requires authentification.
I've read those threads from Dan and Omar and I wonder if this is still possible in APEX 4.2.1?
Re: apex_util.prepare_url outside of ApEx
Create APEX session context from outside APEX (plsql)
My procedure generate the link with the checksum, but when I try to access the page I got an error :
•is_internal_error: true
•apex_error_code: APEX.SESSION_STATE.SSP_VIOLATION2_FOR_DEVELOPERS
•error_backtrace: ----- PL/SQL Call Stack -----
object line object
handle number name
0x69e9c2e8 548 package body APEX_040200.WWV_FLOW_ERROR
0x69e9c2e8 599 package body APEX_040200.WWV_FLOW_ERROR
0x69e9c2e8 903 package body APEX_040200.WWV_FLOW_ERROR
0x6e5ff258 6025 package body APEX_040200.WWV_FLOW
0x73cbd318 249 procedure APEX_040200.F
0x6bdb2dd0 31 anonymous blockHere is my proc (code found in Omar's thread).
Maybe I'm missing something.
CREATE OR REPLACE procedure testInitApexFromOutside
( i_app_id in number
, i_page_id in number
, i_apex_user in varchar2
) is
v_cgivar_name owa.vc_arr;
v_cgivar_val owa.vc_arr;
v_workspace_id NUMBER;
v_app_id number;
BEGIN
-- set up cgi environment
htp.init;
v_cgivar_name(1) := 'REQUEST_PROTOCOL';
v_cgivar_val(1) := 'HTTP';
owa.init_cgi_env
( num_params => v_cgivar_name.count
, param_name => v_cgivar_name
, param_val => v_cgivar_val
-- load apex IDs by application name
SELECT workspace_id,
application_id
INTO v_workspace_id,
v_app_id
FROM apex_applications
WHERE application_id=i_app_id;
-- set up apex workspace
wwv_flow_api.set_security_group_id(v_workspace_id);
-- set up apex session vars
apex_application.g_instance := wwv_flow_custom_auth.get_next_session_id;
apex_application.g_flow_id := v_app_id;
apex_application.g_flow_step_id := i_page_id;
-- "login"
apex_custom_auth.define_user_session
( p_user => i_apex_user
, p_session_id => apex_application.g_instance
wwv_flow_custom_auth_std.post_login
( p_uname => i_apex_user
, p_session_id => apex_application.g_instance
, p_flow_page => apex_application.g_flow_id
|| ':'
|| apex_application.g_flow_step_id
-- set array of protected page IDs for session state protection
apex_application.g_protected_page_ids(1) := '1500'; -- this establishes page 1500 as an SSP-protected page
dbms_output.put_line(APEX_UTIL.PREPARE_URL('f?p='||i_app_id||':'||i_page_id||':::NO:1500:P1500_PEV_SEQ_NO:18137',2));
end testInitApexFromOutside;And the result:
f?p=128:1500:::NO:1500:P1500_PEV_SEQ_NO:18137&cs=3B3D5905A7DDBCB5520E8F88885169CAC
Thanks for your help,
LucienSee Re: Link in report ?
Maarten -
Apex_util.prepare_url within a select statement
APEX Version: 3.1.2.00.02
Need help with embedding APEX_UTIL.PREPARE_URL in select statement. Unable to reference column name as a bind variable...or it allows as in code below, but no values are included in the URL. Using PREPARE_URL so checksum is created.
URL created:*
https://.../f?p=108:90:623968923157010::NO::P90_RID:&cs=3CB12F3B467B3989B51377487817BDB08
Note: href >> replaced with >> hrf
declare
q varchar2(32767); -- query
w varchar2(4000) ; -- where clause
we varchar2(1) := 'N'; -- identifies if where clause exists
begin
q := 'select "RID", '||
' "EMPLOYEE_NO", '||
' InitCap(first_name)||
'||''' '''||
'||InitCap(last_name) as "Name", '||
' "HIRE_DATE", '||
' "JOB_TITLE", '||
' CASE '||
' WHEN CORRECTION_IND = 'X' '||
' THEN ''<a hrf="' ||
apex_util.prepare_url('f?p='||:APP_ID||':90:'||:APP_SESSION||'::'||:DEBUG||'::P90_RID:'||:RID) ||
'">Correction</a>'' ' ||
' ELSE NULL '||
' END CORRECTED '||
' from "#OWNER#"."EMPLOYEE_TABLE" ';
if :P28_FIRST_NAME IS NOT NULL
then
w := w || ' AND first_name LIKE UPPER(:P28_FIRST_NAME||'||'''%''' ||')' ;
we := 'Y';
end if;
if :P28_LAST_NAME IS NOT NULL
then
w := w || ' AND last_name LIKE UPPER(:P28_LAST_NAME||'||'''%''' ||')' ;
we := 'Y';
end if;
if we = 'Y'
then q := q || w;
end if;
return q;
end;Edited by: JSandoval on May 25, 2011 1:03 PMI think that the problem is that the function apex_util.prepare_url is executed building the "q" variable, not during query execution. (you have to try to quote it ...)
I often use the "Query from function".
There a couple of things that helps me:
- I always put in the page an item PXX_SHOW_SQL(checkbox) visible only to administrator (a user setting in my application...).
Before the "return q" put a htp.p(q) if this Item is not null. So you can see the actual SQL (often helps reformattig the output with SqlDeveloper)
- I'm became crasy tring to quote complex query ... Now I write the query code in a TABLE
Example AUXSQL(APP_ID number,APP_PAGE number, PRG number, sql VARCHAR2(4000))
More "PRG" if more than 4000 chars. (I start in this way, but someone use CBLOB ...)
I find this very usefully!!
Thanks
Stefano Corradi -
Error in message mapping - Cannot produce target element
As one step in my integration process, I am builing a very simple file to BPM integration (inbound MI async, outbound MI abstract).
The source type and the target type are completely equal - I am only doing some modifications to some of the content.
The type for both messages - source & target message - is an imported external definition (DTD), and hence no DT or MT are created.
As a first step I am trying to fill the target message with the content from the source message (without any modifications to the content). However, when testing this in the message mapping area, I get an error message already when filling the first element, the 'root node'.
The error message is as follows:
Start of test
Compilation of <MM name> successful
Cannot produce target element <elementname>. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element <elementname>. . Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
End of test
Any suggestions?
Thanks,
CThanks,
when creating the source message manually in the MM it worked - so nothing wrong with the mapping.
I saved this file and compared with the "original file" - containing the content which I wanted to upload, and on which the xsd (external definition) was based - and there where some inconsistancies.
I changed some values in the source XML which made it work, also when uploading the file from a drive.
So, I will go back to the source system and try to get a better XML.
Thanks for now! -
Final cut pro x cannot produce titles. What is the problem?
What can I do to solve this problem.
I just bought a macbook pro retina with mountain lion.
I cannot produce titles anymore. Double clicking in title does not work. Not even with Inspector open.
Does anybody have a suggestion?
Thank you all!Trash your preferences.
-
Changing datatype, afterwards Message-Mapping cannot produce target element
Hi,
we use PI/700.
I changed a working system by changing a datatype of an existing message (adding a new element). My interface mapping contains two mappings: an XSL-Mapping and afterwards a Message-Mapping.
My interface mapping looks like this:
Message-Type A ->
XSL-Mapping ->
Message-Type B ->
Message-Mapping ->
Message-Type B
When I test each mapping alone everything works fine (with the new element I added).
But if I test my interface mapping in IBD with both mappings together, I'll get an error:
"Cannot produce target element /MT_EDM_OUTBOUND_LASTGANG_TO_SAP/LASTGANG/MASSEINHEIT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd".
Is it possible that XI has problems in refreshing the XSDs?
I tried this:
(1) I changed my Message-Mapping and now all elements are mapped 1:1 -> no success!
(2) Later I changed my Message-Mapping and build in "exists" with "if" to check whether the element "MASSEINHEIT" is generated by the XSL-Mapping -> It doesn't exists (??? - WHY? - when I test it, everything works fine)
(2) Afterwards I changed my interface mapping and take only the XSL-Mapping (without the following Message-Mapping) -> the element "MASSEINHEIT" exists now!
I'm totally confused!
Any ideas?
Regards
Wolfgang HummelHi,
If you have made structural changes to the data type..such as number of fields have decreased/increased..or some new fld altogether, then you have to activate the datatype..goto message mapping and then re-do the mapping...but if you have made "typo" changes like names have been changed, etc..then i think it should be alrite..i have sometimes made changes to my datatype, but after activating it, i had to redo the mapping..that was it!...the rest would fall into place:) No changes had to be made in the interface mapping..
Regards,
Sushumna -
1:N mapping for ZALEAUD01: Cannot produce target element /ns:0Messages
Hi,
I am working on a scenario where my sender MT is ZALEAUD01 (idoc occurance 1..1) and receiver MT is a xml file (Root Node occurance 1..1). I want to generate the number of files based on the occurance of a particular node (E1STATE). I am using a multi-mapping here by changing the occurance of the root node of Receiver xml file to 0..unbounded in Messages tab of MM and mapping it with E1STATE
During runtime, I am getting the Mapping error and in Trace I am getting the message: Cannot produce target element /ns0:Messages.Check xml instance is valid for source xsd and target field mapping fullfills requirement of target xsd
Please tell me some solution
Thanks & RegardsHi All,
Thanks for your quick responses
But I have already checked all that..
My mapping is E1STATE----> MT_Root with the context of E1STATE as Idoc,
I have tested the mapping in test and everything is successful.
I know we can not test the mapping with the Idoc structure generated in sxi_monitor as its missing the /ns0: Messages and /ns0: Message1 nodes. So I have added these nodes in my xml structure while testing in IR and the mapping test is successful.
But @ runtime as these Messages node should be generated by Xi so I feel this is where the problem is. -
Hi,
A scenario File - BPM - BAPI call was developed, as described in blog 'RFC scenario using BPM' cfr. link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
The Mapping is as follows:
MT_EDB_MATERIAL_REQ (1:1) --> BAPI_MATERIAL_EXISTENCE_CHECK (1:1)
MATNR (1:1) -
> MATERIAL (1:1)
When executing the scenario, an error appears in the trace of SXMB_MONI, step 'Request Message Mapping'
Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
I tried the following:
1) import the XML-file into the testmapping: executed successfully
File:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_EDB_MATERIAL_REQ xmlns:ns0="http://agfa.com/SD_EDB">
<MATNR>15P6X</MATNR>
</ns0:MT_EDB_MATERIAL_REQ>
2) Removed the mapping on node level and left mapping only on element level (material): same error
3) Activated the message mapping, interface mapping, determinations, etc again...:same error
4) Removed the Interface Mapping and created it again: same error
5) Compared the version ID of the Interface Mapping/message mapping in the Monitor trace with the version ID of the IR and saw that there was a difference.
After the CPA full cache, SXI_CACHE full refresh and object refresh in the IB Administration, the differences remain, and also the error....
Anybody an idea ?Hi
>>>Cannot produce target element /ns1:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd....
The error clearly says that one of the occurrence value for the target node mentioned is not coming from the source during mapping. The easiest way to solve the problem is as follows
<b>
First Execute the mapping as pointed out by "Raj" and the following steps.
</b>
1. Goto the Mapping Editor
2. Double click on the target node that is causing the problem here BAPI_MATERIAL_EXISTENCECHECK.
3. Right click on the same node and select "DisplayQueue".
4. View the Queue.
5. YOu will find "Suppress" entries, which means a value is expected but no value is coming in.
6.Go from right to left and check each node in the mapping and you will be able to trace where the suppress node comes from and take appropriate action
regards
krishna -
Mapping exception in XI :Cannot produce target element
Hi All,
This is for RFC-to-JDBC Scenario.
I import an RFC from SAP for Vendor Master ( BTE Event : 00001421). In that there are tables and structures.
When i create a Vendor in transaction XK01, if i dont fill any of the values in structure WYT3, it gives an exception in mapping in XI when i test it in Message Mapping ( Cannot produce target element /ns1:MT_MDM_RECEIVER/STATEMENT1/NC_SUPPLIERMASTER/ACCESS/PARTNERTYPE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd ).
In the XML format in XI at sender side it doesn`t show the fields in the structure at all if it doesnt have any data.
Thanks & Regards,
RuchiHi Suraj,
The sender xml is a structure(FWYT3) which might have data and might not , -
- <xsd:complexType name="FWYT3">
- <xsd:sequence>
- <xsd:element name="PARVW" minOccurs="0">
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="2" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
If this structure doesnt have data it`ll only show like this in sender xml,ni.e it doesnt show the fields in this structure (T_YWYT3).So this field parvw is mapped to partnertype in target.But when parvw doesnt have any data this field is not at all displayed in this structure WYT3.
- </T_YWYT3>
The target xml structure is whose occurence is '1'-
- <xsd:element name="PARTNERTYPE" default="Supplier">
- <xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">d27dbd80e40b11da8293ece80a9821f4</xsd:appinfo>
</xsd:annotation>
- <xsd:simpleType>
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="40" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
Thanks & Regards,
Ruchi -
Mapping error: cannot produce target element
Hello all,
I am trying to test a mapping. i have 3 messages in my source and one Msg in my target. when i test execute it
i get this msg:
1) compilation of mapping successful
2) cannot produce target elements/Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.
I am not sure what the error might be, can somebody please advice..
Thanks in advanceHi Harika,
how many Elements do u have In your Source Message Type(for example you have 3 elements and how u want to see these elements in your Target Message Type, define that much elements in your Target Message Type and Mappe those)
1. usually people will go with one to one element mappaing, in such case define your souce and Target Message type Elements equal
other wise you can do one Source having 3 elements and you want to see only one output from them then use Standard Function like "Contacte" that will add the 3 elements in one.
if you are satisfied with this please provide points to me.
Ashok -
Apex_Util.Prepare_URL Question due to Apex Util Advisor msg
Hi,
I have the following code in an SQL statement within an IRR:
APEX_UTIL.PREPARE_URL( p_url => 'f?p=' || v('APP_ID') || ':398:'||v('APP_SESSION')||'::NO:398:P398_IDOBJ:||VIMG_SEARCH.IDOBJ:', p_checksum_type => 'SESSION') FullImg,
And it works as expected. However when i run the Apex Util Advisor I get the following:
Attribute Region Source (Identifies the source of the region, reference Region Source Type)
Check V Function used in SQL Statements
Category Performance
Message Contains V/NV/DV function call in SQL statement (can be a performance problem).
Do I need to worry about this ? or should I change the syntaxt within the APEX_UTIL.PREPARE_URL parameters ?
Thank you
DanielIn SQL (and PL/SQL blocks within APEX) the bind variable notation should be used:
APEX_UTIL.PREPARE_URL( p_url => 'f?p=' || :APP_ID || ':398:'||:APP_SESSION||'::NO:398:P398_IDOBJ:||VIMG_SEARCH.IDOBJ:', p_checksum_type => 'SESSION') FullImg,The <tt>v(...)</tt> notation is for use in database PL/SQL program units called from APEX. -
Hi,
I am getting "Cannot produce target element /ns:OUTFILE_MT" error when trying to do a simple File2File scenario.
Message Mapping test is working fine.
Any help would be appreciated.
Regards,
Sudhaif your scenario is text file to xml file then use the following parameters in the sender communication channel.
RECORD.fieldSeparator :,
RECORD.fieldNames :KEY,FNAME,LNAME,AGE
RECORD.keyFieldValue :1
DETAIL.fieldSeparatr :,
DETAIL.fieldNames :KEY,SALARY,EMPID
DETAIL.fieldNames :2
Note:these parameters are accoding to the structure given below.
suppose you have a structure like as below
data (0..unbounded)
record (0..unbounded)
key (1..1)
fname (1..1)
lname (1..1)
age (1..1)
detail (0..unbounded)
key (1..1)
salary (1..1)
empid (1..1)
and the input file will look like as below
1,aaa,bbb,23
2,12000,10838
1,ccc,ddd,23
2,13000,10830
Thanks
Rinku
Maybe you are looking for
-
After Effects CC 2014 takes 10 minutes to launch
So, I downloaded and installed the CC 2014 updates. And, it's been a debacle. Both After Effects and Premiere take well over 10 minutes just to launch. When AE CC 2014 finally does open, I receive the following error message: "QuickTime is not insta
-
How to set up multiple Airport Extremes with 1 SSID
Equipment: Office with 2 floors 1 Modem 1 Router 1 Switch 5 Airport Extremes (2014 models, each in Bridge mode) Network layout: Modem -> Router -> Switch -> 5 Airport Extremes Current Setup: Each Airport has their o
-
Dear All, When i am generating the XL Report it's give me the like An error while executing report! Description: Definition Parsing Failed. Details: Syntax Error Near : ItemType_0 at row $11:$16 Syntax Error Near : TotForwarding_0 at row $14:$14 Plea
-
"DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC
Hi All, Short dump is occuring while trying to activate the data in the ods. The ods consists of 5 million records. I have gone through the short dump analysis. The error is showing that the file system is full. Database error text........: "SQL0968C
-
Swap Partitioning and multiple disks
Ok so I have been setting up a workstation with Arch Linux that has a total of 16GB of RAM and, because it will run very memory intensive applications we actually require a large swap partition. Because this may eventually get upgraded to even more R