Application variable erroring in function
All,
Have a hopefully simple question..why am I getting an error when I try to reference an Application variable within a method? Is there a trick to get the method to recognize the application variable?
Exceptions]
09:11:59.059 - Expression Exception - in D:\webroot\model.cfc : line 74
Element DBADMIN is undefined in APPLICATION.
Scope Variables
Application Variables:
DBADMIN=databasename
This suggests to me that at the time the exception was raised, application.dbadmin didn't exist, but at some stage between then and when the debugging was rendered, it was created.
Where's application.dbadmin created?
Adam
Similar Messages
-
Hello,
in my program a main.vi links to a sub-VI via 'open VI reference' and 'invoke node'. In this sub-VI the function 'Ramp Pattern' is used. The program itself runs normally, but if I build a stand-alone application using application builder I get an error message 'error 1003 occurred ..'. I believe this error is directly related to the build specifications which are as follows: the main.vi is referenced in a main build specification, the sub-VI in its own specification where the target is a LLB.
I appended an example-program that exhibits the error (when executing 'Application.exe' and pressing 'calculate ramp'). The error does not occur when disabling the 'ramp pattern' function and rebuilding the application.
I would rate this to be a bug in the application builder and would appreciate any help on how to solve this problem. However, due to the structure of the whole program the sub-VI has to remain in its own LLB.
Attachments:
RampPattern.zip 198 KBThere can be reasons why a VI might appear broken when loaded from an executable. For example, if you have different versions of the same VI or enum that differ in such a way as to break the calling VI, that can cause a broken arrow when loaded from the executable. If you have DLLs being called and the runtime engine can't find the DLL, that can cause a broken arrow that you might not see otherwise. Finally, there is a bug related to a VI appearing broken when its not.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Sir,
i am running a matlab code in mathscript of labview but getting an error
Error -90032 occurred at Error in function centref at line 5 column 8: The indexes are out of bounds for the variable you specified
this code running successfully in matlab
please help me in this regard
a .vi format file is attached named as mfcc_new.vi
Attachments:
mfcc2.vi 35 KB
mfcc_new.vi 111 KBMay I see you have 6 inputs to your Mathscript Node. When you test it in Matlab I suposse that you're using some values for this inputs and everything work as expected. Then, run it in Labview using highlight execution, retaining wire values and using single stepping. Check the values which are being inserted to your Mathscript Node and ensure that they are correct. You're having an "indexes out of bounds" mistake, so it probably means that there is something wrong with the inputs according to your expectations. You can also put the MathScript alone in another VI and insert the inputs you're expecting manually and check in the same way.
Good luck! -
Problem with application-variables - CFLOCK?
Hi,
i have a problem with my application. It is a multi-user
application with 100 parallel-users and CFMX 7.
The problem wich occures is with application variables. These
are mainly structs wich get filled onApplicationStart(). The
problem is, that the variables suddenly disappear, they are empty.
I have read about CFLock and found out, that it is necesseary
to use cflock. And i found out, that onApplicationStart does
correct locking automatically. That is where i do not understand
the problem. The variables get intialized correctly and in further
they only get read-access. Why can they be corrupted?
My other question about that is, wheather i need cflock for
all Read-Access to Application and Session-Variables, even if there
happens no writing to the variables?
Best Regards,
Andreas> ?The element of position 2, of dimension 2, of an array
object used as part of
> an expression, cannot be found.?
> The array is in this case the struct.
Well, OK, that could be a problem. Arrays are not structs:
they are two
different things, are not interchangeable, and have
completely different
sets of functions to utilise them. You cannot treat a struct
as an array.
If CF is claiming your "struct" is an array, then it actually
*is* an
array, not a struct.
What's the line of code which is generating that error?
I suppose one could get this error if you have an array of
structs thus:
myArray
.key1
myArray.key2
(etc)
and you're trying to reference it with a numeric key rather
than by key
name, eg:
myArray
[n]
When n is an integer value, rather than a string (which
corresponds to the
name of the key).
> > Have you trapped the error, done a <cfdump>
of the application scope and
> > checked to see if it's the whole lot going awry, or
just some values?
> I have not used cfdump for it, because the server had to
be immediately
> restarted for our customers. But i think, that it is
not completely empty,
> because the index runs to pos2 of dimenstion2.
So does this not happen in your dev / testing environment?
> Will
> onApplicationStart() be called before? Or only if
onRequestStart() returns true?
I would ***-u-me that the application one would be called
before the
request one. It's pretty easy for you to test this though, I
should think?
(Sorry: for reasons beyond the scope of this conversation,
we're still
forced to use Application.cfm in our software, so I've only a
passing
knowledge of how Application.cfc works).
> Here is the code from onRequestStart()
> <cffunction name="onRequestStart"
returntype="boolean">
> <cfargument name="Requestedpage" required="yes" />
> <cfscript>
> var lFile = "/cargorent/Login.cfm";
> var iPosn = ListFindNoCase( lFile,
Arguments.Requestedpage );
> if( iPosn gt 0 )
> return true;
>
> if( NOT IsDefined( "session.user.Loginname" ) or
session.user.Loginname eq
> "" )
> {
> WriteOutput( "<p><p> The current user is no
longer valid, please log in
> again.</p></p>" & chr(10) & chr(13)
> WriteOutput( "<script
language=""javascript"">parent.location = ""
http://"
> & CGI.HTTP_HOST &
"/Login/Login.cfm"";</script>" );
> return false;
> }
>
> return true;
> </cfscript>
> </cffunction>
One thing I will say here is that I really think you should
be separating
your processing from your display. A function should do
processing. it
should pass that processing back to a CFM template which
should handle
whatever needs to be displayed on the browser. Although
that's nowt to do
with your current issue.
Adam -
How to use session variable in JSP function & How to use both JSP Servlet
Hi,
I am new to JSP and servlets
Still I am devloping a website in JSP. I am not mixing JSP with servlets, but I do create Java files for bean, logic and database works.
I try to keep the hard coding part out of JSP.
I dont how to use both JSP and Servlets in combination.
Hence If needed I write some functions in JSP.
but it gives me error
+<%! public void abc()+
+{+
int intUserId = Integer.valueOf((Integer) session.getAttribute("MySession_UserID"));
+}+
+%>+
Saying cannot find symbol session
1) So can u please tell how can I access session variables within JSP function
2) And also give me some links/tutorials about useing both JSP and Servlets in combination.
Thanks
VenkatThe application architecture when you use Servlets and JSP in a standard MVC pattern is explained here (under the heading "Integrating Servlets and JSP Pages") and here ...
-
I'm trying to set a class to centralized event handling. I'm
using the model from the Flex 2 Beyond the Basis cd, but ran into a
problem. I'm getting an error from a line of code I copied from the
CD, but don't what to do, since the example on the CD runs without
error. The line of code would appear simple, since it's just
setting up a private variable in the class and casting
Application.application to CentralEvents type. Here's the code from
the skeleton of the class. Can anyone tell me what's wrong?
package controller
import mx.core.Application;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
public class FrontController
private var app:CentralEvents = Application.application as
CentralEvents;
public function FrontController()
}To be honest, I'm not exactly sure why the cast of the
Application.application value. As I mentioned, I took the code from
the Training CD. According to the narrator, he's setting up the app
variable to be an instance of the current application. He later
uses the app variable to set up addEventListeners inside the
constructor method for the class. By having an instance of the
application in the class the code was able to value bindable
variables found in the main mxml form.
The goal of the exercise was to set up the class to handle
all event operations from a central class. It made sense to me and
since I had the code from the examples I decided to try it.
That said, when I look at the syntax of casting the type of
the variable to CentralEvents, it looks OK
Thanks for responding and if you have an good ideas please
let me know.
Tom -
ORA-12899 error from function invoked from SQL*Loader
I am getting the above error when I call a function from my SQL*Loader script, and I am not seeing what the problem is. As far as I can see, there should be no problem with the field lengths, unless the length of the automatic variable within my function is somehow being set at 30? Here are the details (in the SQL*Loader script, the field of interest is the last one):
====
Error:
====
Record 1: Rejected - Error on table TESTM8.LET_DRIVE_IN_FCLTY, column DIF_CSA_ID.
ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
=======
Function:
=======
CREATE OR REPLACE FUNCTION find_MCO_id (di_oid_in DECIMAL)
RETURN CHAR IS mco_id CHAR;
BEGIN
SELECT AOL_MCO_LOC_CD INTO mco_id
FROM CONV_DI_FLCTY
WHERE DIF_INST_ELMNT_OID = di_oid_in;
RETURN TRIM(mco_id);
END;
==============
SQL*Loader Script:
==============
LOAD DATA
INFILE 'LET_DRIVE_IN_FCLTY.TXT'
BADFILE 'LOGS\LET_DRIVE_IN_FCLTY_BADDATA.TXT'
DISCARDFILE 'LOGS\LET_DRIVE_IN_FCLTY_DISCARDDATA.TXT'
REPLACE
INTO TABLE TESTM8.LET_DRIVE_IN_FCLTY
FIELDS TERMINATED BY '~' OPTIONALLY ENCLOSED BY '"'
DIF_DRIVE_IN_OID DECIMAL EXTERNAL,
DIF_FCLTY_TYPE_OID DECIMAL EXTERNAL NULLIF DIF_FCLTY_TYPE_OID = 'NULL',
DIF_INST_ELMNT_OID DECIMAL EXTERNAL,
DIF_PRI_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_PRI_PERSON_OID = 'NULL',
DIF_SEC_PERSON_OID DECIMAL EXTERNAL NULLIF DIF_SEC_PERSON_OID = 'NULL',
DIF_CREATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
DIF_LAST_UPDATE_TS TIMESTAMP "yyyy-mm-dd-hh24.mi.ss.ff6",
DIF_ADP_ID CHAR NULLIF DIF_ADP_ID = 'NULL',
DIF_CAT_CLAIMS_IND CHAR,
DIF_CAT_DIF_IND CHAR,
DIF_DAYLT_SAVE_IND CHAR,
DIF_OPEN_PT_TM_IND CHAR,
DIF_CSA_ID CONSTANT "find_MCO_id(:DIF_DRIVE_IN_OID)"
============
Table Definitions:
============
SQL> describe CONV_DI_FLCTY;
Name Null? Type
DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
AOL_MCO_LOC_CD NOT NULL VARCHAR2(3)
SQL> describe LET_DRIVE_IN_FCLTY;
Name Null? Type
DIF_DRIVE_IN_OID NOT NULL NUMBER(18)
DIF_INST_ELMNT_OID NOT NULL NUMBER(18)
DIF_FCLTY_TYPE_OID NUMBER(18)
DIF_ADP_ID VARCHAR2(10)
DIF_CAT_DIF_IND NOT NULL VARCHAR2(1)
DIF_CAT_CLAIMS_IND NOT NULL VARCHAR2(1)
DIF_CSA_ID VARCHAR2(16)
DIF_DAYLT_SAVE_IND NOT NULL VARCHAR2(1)
DIF_ORG_ENTY_ID VARCHAR2(16)
DIF_OPEN_PT_TM_IND NOT NULL VARCHAR2(1)
DIF_CREATE_TS NOT NULL DATE
DIF_LAST_UPDATE_TS NOT NULL DATE
DIF_ITM_FCL_MKT_ID NUMBER(18)
DIF_PRI_PERSON_OID NUMBER(18)
DIF_SEC_PERSON_OID NUMBER(18)
=========================
Thanks for any help with this one!I changed one line of the function to:
RETURN CHAR IS mco_id VARCHAR2(16);
But I still get the same error:
ORA-12899: value too large for column "TESTM8"."LET_DRIVE_IN_FCLTY"."DIF_CSA_ID" (actual: 30, maximum: 16)
I just am not seeing what is being defined as 30 characters. Any ideas much appreciated! -
Why APEX 4.1 Error handling function does not trap the error of missing table?
Say, I create simple application with single IR report page and I also assign standard simple error handling function.
Function works perfectly, except but this case:
If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
and error handling function is not invoked at all.
Is this a feature or a bug?Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
Not able to send SMS " Application server error"
Hi Experts,
I am trying to send sms using one URL . but it is giving application server error. if i seperately copy this url on internet explor it is working fine .
I am getting error in below methos
call method client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
returning 1 and error message
<html><head><title>Application Server Error</title>##<style type="text/css">##body { font-family: arial, sans-serif;}##</style>##</head>##<BODY text="#172972" link="#808080" vlink="#808080"##alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0"##mar
below is the code
call function 'SCP_CODEPAGE_FOR_LANGUAGE'
exporting
language = 'L'
importing
codepage = i_codepage
exceptions
no_codepage = 1
others = 2.
data : I_msg type string.
***Repalcing the starnge characters
call function 'SCP_REPLACE_STRANGE_CHARS'
exporting
intext = I_message
in_cp = i_codepage
importing
outtext = I_msg
exceptions invalid_codepage = 1
codepage_mismatch = 2
internal_error = 3
cannot_convert = 4
fields_not_type_c = 5
others = 6.
endif.
gv_sms_number = I_SMS_number.
****Check the recipient Number
replace all occurrences of '+' in gv_sms_number with ' '.
condense gv_sms_number no-gaps.
data: client type ref to if_http_client,
url type string.
****Build the URL
url created
****Create the HTTP client
call method cl_http_client=>create_by_url
exporting url = url
importing client = client
exceptions others = 1.
*****Set the Request type to GET******
***Sets the value of the specified header field
client->request->set_header_field( name = '~request_method' value = 'GET' ).
CALL METHOD client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
**client->request->set_header_field( name = '~request_method' value = 'GET' ).
"#EC *
****Make the call client->send( ).
****Receive the Response Object
call method client->receive
exceptions
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
if sy-subrc <> 0.
call method client->get_last_error
importing
code = gv_subrc
message = gv_errortext.
endif.Hi,
Pls see this link... Re: Sending SMS frm SAP -
BEx Web Application Unknown Error in EP
Hi ,
When opening a BEx report from Portal 7.0, getting the error.How to resolve.
BEx Web Application
Unknown Error
Exception occured while processing the current request; this exception cannot be handled by the application or framework
Log ID: C00099589C2F31A00000000200001A75
Failed to process request; contact your system administrator
To facilitate analysis of the problem, keep a copy of this error page
We are sorry for the inconvenience
Thanks a tonHi Daniel,
We can check the FPN using remote role assignment.
1. Open you EP (Consumer)
2. Go to User Administration
3. In Search Criteria, select Role in the first field, in second field select "system alias of your producer" and put * in last filed
4. Click Go
You should get all the roles of your producer on your consumer. This functionality is used for Remote Role assignment.
This is simplest way to check whether FPN is working fine or not.
Waiting for results
Dbalhara -
Can't use bind variable in a function
This is a repost from my earlier post at
URGENT: Problem creating the report using Procedure
The problem is when I bind a variable in a function, I get REP-0002. Please look at the following steps to reproduce
===
set serveroutput on
create or replace
package Q_REP_test
as
type drec is record
sdate date
type dreccursor is ref cursor return drec;
Procedure Get_sysdate(retdate out dreccursor);
procedure add_days_tocurdate(no_of_days in number, retdate out dreccursor);
end q_rep_test;
show errors
create or replace
package body q_rep_Test
as
procedure Get_sysdate(retdate out dreccursor)
is
begin
open retdate for
select sysdate retdate from dual;
end;
procedure add_days_tocurdate(no_of_days in number, retdate out dreccursor)
is
begin
open retdate for
select sysdate+no_of_days retdate from dual;
end;
end q_rep_test;
show errors
===
Invoke the SP as follows:
===
function QR_1RefCurDS return q_rep_test.dreccursor is
tempc q_rep_test.dreccursor ;
begin
q_rep_test.add_days_tocurdate(:p_1,tempc);
return tempc;
end;
===
1. Create a report
2. create an user parameter(p_1)
3. add a pl/sql as above
4. run it(to verify the report works)
5. save it.
6. close the report
7. Open it again, you get an as
"REP-0002: Unable to retrieve a string from the Report Builder Message file". Now it is corrupted and can't be used at all.
Please treat this as urgent and help me.
ThanksHi ,
Though you have stated it as Oracle92iDS check whether it has the 9.0.2.2 patchset applied. If not please try applying the latest Patchset 9.0.2.2 for Oracle9i Reports.
To download the patch goto Metalink <http://metalink.oracle.com/metalink/plsql/ml2_gui.startup> and search for Patch# 2842923.
This Patchset is for iAS and iDS.
In either case, please let me know the results.
Thanks,
Vinod. -
Error in function PTCard.Store (): -2147467259
hello,
<p>
I am trying to add a card to the knowledge directory using API. I call <strong>IPTCard.Store()</strong> method to store the card. below is my code.
public void createCard(int folderParent, String cardName){
IPTCatalog catalog = session.GetCatalog();
IPTCard card = catalog.CreateCard();
card.SetName(cardName);
int[] parentIds = {folderParent};
card.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS, parentIds);
card.SetDescription("test description.");
card.Store();
But when i call "IPTCard.Store()" method, it returns the following error;
</p>
<strong> com.plumtree.openfoundation.util.XPException: Error in function PTCard.Store (): -2147467259 - Failed to store card: storing cards in DB failed
</strong>does anybody have an idea, why this error appears ??
thank you for ur openion in adv.
<p>
</p>I can't tell from the error, but I suspect you will need to associate the card with a data source (content upload or similar) before it can be stored in the database (PTCard.Store).
Since I don't remember exactly how I did this at one point, I have provided some code below that I hacked from the API and changed around. It sets some extra stuff related to the file upload data source, but you can probably use some of it to piece together data source info. Here are some relevant lines that you'll probably need to fudge with:
IPTDataSource ptDS = (IPTDataSource)
session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
And here's the rest of the code it was ripped from...
// Functions in this region were somewhat ripped from the UI source (KD submission space)
// they have been slightly cleaned and commented for clarity (actual card submission happens here)
public static IPTCard SubmitCard(int dataSourceId, int parentFolderId, string name, string description, string path, string type, string docId, string duServer, string duId, SortedList propertyList, IPTSession session, AActivitySpace space) {
IXPPropertyBag pbag = CreateCardSubmitUploadPropertyBag(path, type, docId);
return SubmitCardWithPropertyBag(parentFolderId, dataSourceId, name, description, duServer, duId, false, propertyList, pbag, session, space);
public static IPTCard SubmitCardWithPropertyBag(int parentFolderId, int nDataSourceID, string strCardName, string strCardDescription, string duServer, string duId, bool approved, SortedList propertyList, IXPPropertyBag pbagCardProp, IPTSession session, AActivitySpace space) {
// Set Parent Folder
int[] arFolderIDs = new int[] {parentFolderId};
// set language to be that of the default locale
// Retrieve the SearchLocaleVarPack to verify the language
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTSearchLocaleVarPack vpPTSearchLocales = (PTSearchLocaleVarPack) application.GetVarPackManager()
.GetVariablePackage(PTSearchLocaleVarPack.VARPACK_ID);
// Retrieve the user's default language:
string strCardLanguageCode = (string) PTPersonalSettingsHelper.GetPersonalSettingValue(PersonalSettingNames.LANGUAGE,
space);
// default to english if invalid language
if (false == vpPTSearchLocales.IsValidLanguage(strCardLanguageCode)) {
strCardLanguageCode = DirModel.ENGLISH_LOCALE_CODE;
return SubmitCardWithPropertyBag(arFolderIDs, strCardLanguageCode, 0,
nDataSourceID, pbagCardProp, strCardName, strCardDescription, duServer, duId, approved, propertyList, session, space);
public static IPTCard SubmitCardWithPropertyBag(int[] arFolderIDs,
string strLanguage, int nDocTypeID, int nDataSourceID,
IXPPropertyBag pbagCardProp, string strCardName,
string strCardDescription, string duId, string duServer, bool approved,
SortedList propertyList, IPTSession session, AActivitySpace space) {
// create the card
IPTCard ptCard = session.GetCatalog().CreateCard();
ptCard.SetContentLanguage(strLanguage);
// Parent IDs can be a single value or an array of values
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS,
arFolderIDs);
// if the index server isn't up, don't try to index, create the card
// and inform the user later
IXPPropertyBag statusBag = session.GetCatalog().GetSearchServerStatus();
SearchServerStatusInfo statusInfo = new SearchServerStatusInfo(statusBag, "INDEXSTATUS");
if (XPStringUtility.EqualsIgnoreCase(statusInfo.connectStatus,"OK")) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 1);
} else {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 0);
// if the card is approved, we set this flag
if (approved) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INSERTAPPROVED, 1);
/* inherit parent folder ACLs */
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INHERITPARENTFOLDERPERMISSIONS, 1);
// Set the crawler tag to be "Manual"
ptCard.SetCrawlerTag(space.GetString(1635, "ptmsgs_portalbrowsingmsgs"));
if ((null != strCardName) && (strCardName.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITENAME, 0);
ptCard.SetName(strCardName);
if ((null != strCardDescription) && (strCardDescription.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITEDESCRIPTION, 0);
ptCard.SetDescription(strCardDescription);
ptCard.SetDocumentLocation(pbagCardProp);
ptCard.SetDataSourceID(nDataSourceID);
// Get the DocumentTypeMap
if (0 == nDocTypeID) {
// Determine Default
IPTDocumentTypeMap ptMap;
ptMap = (IPTDocumentTypeMap) session.OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_DOCUMENTTYPEMAP,
false);
ptMap.Initialize(session);
nDocTypeID = ptMap.LookupByPropBag(pbagCardProp);
// If no default DocType was found,
// determine what default DocType should be used based on the server config setting
if (0 == nDocTypeID) {
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTDirPrefsVarPack vpPTDirPrefs = (PTDirPrefsVarPack) application.GetVarPackManager()
.GetVariablePackage(PTDirPrefsVarPack.VARPACK_ID);
nDocTypeID = vpPTDirPrefs.GetDefaultDocType();
IPTDataSource ptDS = (IPTDataSource) session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
// set file upload properties
/* get the card and it's property values */
IPTCardPropertyValues ptPropValues = ptCard.GetPropertyValues();
/* Document Upload ID */
IPTCardPropertyValue ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUID);
ptValue.SetOverrideValue(duId); /* make this an override value so it is not lost on a re-index */
/* Document Upload Server */
ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUSERVER);
ptValue.SetOverrideValue(duServer); /* make this an override value so it is not lost on a re-index */
/* Custom Property Settings */
if (propertyList.Count > 0) {
foreach (DictionaryEntry de in propertyList) {
try {
int propId = (int) de.Key;
ptValue = ptPropValues.GetItem(propId);
if (null == ptValue) { ptValue = ptPropValues.Add(propId); }
ptValue.SetOverrideValue(de.Value);
} catch (Exception) {
// ignore exceptions, maybe the wrong property or card
//store the card
ptCard.Store();
ptCard.UnlockObject();
// approve or unapprove the card
/* 2 for approve, 1 for unapprove */
//session.GetCatalog().SetApprovalStateByCard(ptCard.GetObjectID(), (approved ? 2 : 1), arFolderIDs );
return ptCard;
public static IXPPropertyBag CreateCardSubmitUploadPropertyBag(string path, string type, string _docID) {
IXPPropertyBag pbagCardProp;
pbagCardProp = PortalObjectsFactory.CreatePropertyBag();
pbagCardProp.Write("PTC_PBAGFORMAT", 2000);
pbagCardProp.Write("PTC_DTM_SECT", XPConvert.ToInteger(_type));
pbagCardProp.Write("PTC_UNIQUE", _path);
pbagCardProp.Write("PTC_DOC_ID", _docID);
return pbagCardProp;
} -
I have 12 different "applications" in planning that function as 1 application, 11 different cubes of responsibility that all partition to a consolidated app.
Planning/essbase 9.3.1.
I made a change to what is loaded to the "units" (country) dimension as the users want to see many different alternate hierarchies, and now when I try to validate an application I am receiving the following error..
"Error : Server was unable to process request. ---> Object reference not set to an instance of an object."
What does this error mean?
RobertAre you using 9.3.1 and EPMA, if so you are very brave.
If do a seearch on the error you will find it many times in the EPMA world, sometimes restarting the services helps, sometimes you end up having to go to backup.
Cheers
John
http://john-goodwin.blogspot.com/ -
Error accessing function module: HELP
TO ADMINISTRATORS: PLEASE DO NOT DELETE. ADVISE WHICH FORUM TO POST.
Good Day to all SAP Gurus,
I need your help in resolving / understanding an error.
Envirornment - SAP IDES 4.7
While posting any document through FBCJ (Cash Journal), f.26 (incoming payment), f.22 etc., the below mentioned error is appearing.
Error accessing function module: FMFK_FIKRS_READ
Parameter: IP-FIKRS IP_FMA_OBJNR
When I click help (?), the following detailed message appears.
Diagnosis
The application has accessed a Funds Management or Cash Budget Management module with parameters missing or defective.
Can someone please help on this?
Points guaranteed.
Regards
Jamil1. Please do not offer points for replies. This is clearly mentioned in the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]. It is considered impolite and is the quickest way to have someone flag your message using the Abuse Button which usually means that the post will be deleted.
2. Per the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement], please title your subject appropriately. In particular, words such as "help" don't provide any insight into your message either when viewed directly or via search. This too is a possible Abuse violation and may be deleted by the other Moderators. A more appropriate title would be "posting Cash Journal document results in error XX-YYY (FMFK_FIKRS_READ)"... and it would help the others who would attempt to reply to your message if you provided the specific message number.
3. The financials forum is for functional questions. Since you are asking about a FM I'd recommend posting this question in one of the [ABAP Forums|/community [original link is broken];. Posting in the wrong forum won't lead to an abuse report but the message is likely to be locked to discourage other users to post in the correct forum.
Edited by: Nathan Genez on Oct 10, 2008 2:20 PM -
Implemented OWSM -- XML-22045: (Error) Extension function error
good day
When I activated my OWSMAgent within ESB, I launched a null pointer Exception when running a fault, since I have reviewed the documentation WSM_DeploymentGuide and commented that it is not possible to add an error handler general, reviewing the logs I found the following error:
XML-22045: (Error) Extension function error: Class not found '
Missing class: com.cablemas.extensionfunctioncablemas.ExtensionFunctionCablemas
Dependent class: oracle.xml.xpath.XSLExtFunctions
Loader: oracle.xml: 10.1.0_2
Code-Source: / F: / product/10.1.3.1/OracleAS_1/lib/xmlparserv2.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in F: \ product \ 10.1.3.1 \ OracleAS_1 \ j2ee \ home \ oc4j.jar
This load was initiated at oc4j: 10.1.3 using the loadClass () method.
The missing class is available from the following locations:
1. Code-Source: / F: / product/10.1.3.1/OracleAS_1/j2ee/oc4j_soa/applib/ExtensionFunctionCablemas.jar (from <code-source> in / F: / product/10.1.3.1/OracleAS_1/j2ee/oc4j_soa/config / server.xml)
This source code is available in loader global.libraries: 1.0. This shared-library can be made visible to the "oc4j" by modifying the boot loader descriptor.
Class ExtensionFunctionCablemas use it to take the code of the error, locate it within a table in the DB and return the corresponding message, the null pointer exception only if it throws error. OWSM reviewing the request is recorded correctly, and the answer recorded as a fault but I'm not returning the message corresponding to error code.Greetings,
Quoted:
When using Oracle XSLT extensions, make sure you set the namespace of the extension class to be:
http://www.oracle.com/XSL/Transform/java/This was excerpted from the pdf at:
http://www.oracle.com/technology/tech/xml/xdk/collateral/OracleAS10g_10.1.2_XDK_FAQ.pdfThe namespace tells the application how to interpret your XSLT attributes\elements.
-Michael
Maybe you are looking for
-
How do I set up a wireless network with an AirPort Extreme base station and two airport extreme but between apple devices either by ethernet
-
Can anyone assist me with attempting to boot in safe mode? I have tried to boot normally, but I keep getting stuck with the aqua bar in the progress window; I boot up in safe mode, get to the login screen (in Safe Mode) but it accept my only (admin)
-
Guys, We've got various add-on solutions, and reports, that examine the history tables for various B1 objects (documents, Business Partners, etc). Up until 8.8, the history tables always stored the current revision of a record as well as the historic
-
[SOLVED] Firefox won't start - "Failed to execute default Web Browser"
I've just updgraded from Firefox 3 to version 4 (by running "pacman -Syu") on my 64-bit Arch installation. I started XFCE and Firefox 4 worked fine for a few minutes before crashing and closing automatically. A short while later (long enough to forg
-
Not all of my P2 files appear in the Log and Transfer window. I have the p2 cards backed up to a HD. I connect the HD to the G5. I go to the folder that contains the card i want to import.contents folder and lastclip are intact and unaltered. But the