Error when reading data in to ArrayCollection using HTTPService
Hi,
I am trying to read data in to ArrayCollection using HTTPService result property:
[Bindable] private var myData:ArrayCollection=new ArrayCollection();
private function result_handler(e:ResultEvent):void
myData = e.result.root.contact;
<mx:HTTPService id="post_submit"
url="test.php"
method="POST"
result="result_handler(event)"
fault="fault_handler(event)">
<mx:request xmlns="">
</mx:request>
</mx:HTTPService>
I am getting the following error when there is no "contact" record in the xml root:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Also I am getting the following error when there is only ONE "contact" record in the xml root:
TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectProxy@280c9ca1 to mx.collections.ArrayCollection.
And it works fine when there is two or more "contact" records in the xml root.
Am I missing something?
Thanks
I am getting the following error when there is no "contact" record in the xml root:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
You'll be getting this error because it's trying to access nodes that don't exist;
there are no 'contact' records, thus when it tries to access node 'root.contact', it doesn't exist, hence it's receiving NULL when it's expecting something
Also I am getting the following error when there is only ONE "contact" record in the xml root:TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::ObjectProxy@280c9ca1 to mx.collections.ArrayCollection.
And it works fine when there is two or more "contact" records in the xml root.
Am I missing something?
Thanks
When there is only 1 value, it'll be returned as an object (Arrays are used for multiple items). So it throws an error as it isn't expecting a single object, it wants an Array.
This is also why when it returns 2+ records, there is no error. Multiple results will be returned as an Array, what your flex app was expecting.
My initial guess to solve the first problem would be similar to Greg's, although i'm guessing you'd want;
if(e.result != null){
instead of
if(e.result.root.contact != null){
as you'd initially want to check if anything was returned in the result, rather than checking to see if a certain node exists.
If you attempt to see if a certain node isn't null, and the node doesn't exist, it'll probably throw another #1009
For the #1034 error, you'll have to check to see how many results were returned, as Madhav has described for you.
Similar Messages
-
Error when reading data from socket
Hi,
I am getting the error 'NiRawReadError: An error occured when reading data from socket.' when using the ABAP API 'mo_core_service->invoke_matching'.
And I get this error only when I pass ABAP_TRUE to the paramter 'iv_wait_for_invocation' .
Can anybody help me in correcting this?Hi Narasa,
The following error is already in discussion in the below forum.Plz consult the forum link you will find the error solution.
Problem in ABAP API - NiRawReadError: error when reading data from socket
Rgds
Ankit -
Activating DemoContent: Error when reading data target
I'm trying to activate the SAP Demo cube <i>Purchasing Data</i> (0D_PU_C01). The Grouping Mode is set to <i>In Dataflow Before and Afterwards</i>.
When I simulate installation, I get the error message <b>Error when reading data target 0D_PU_C01</b> (Message no. RSAU126) in the logs (although in the Collection Area the Simulation Result column is marked with a green check).
I could find only 2 notes related to this error in the SAP Service Marketplace. SAP note nr. 540873 is about the BW indexing job. Note nr. 587796 (Error in after import of update rules) seams more appropriate, however not thoroughly right. In fact it refers to <b>BW 3.1 Content</b> or <b>BW 3.0B</b>.
My system version instead is:
BI_CONT 353
SAP_BW 350
The very same problem occurs when I try to activate the SAP Demo <i>Sales and Distribution</i>.
Any suggestion?
Thanks, DavideOk, it worked! Now however I have some more doubts.
1. I can't find the InfoObjects (e.g. 0D_GR_QTY, 0D_PLANT, 0D_MATERIAL, etc.) anywhere in <i>Modeling -> InfoObjects</i>, even if:
a) I can find them under the <i>InfoSource</i> tree of the <i>SAP Demo</i> Application Component
b) they appear activated in <i>Business Content</i>
What's going on?
2. The newly activated <i>Purchasing Data</i> cube has been added to the <i>Unassigned Nodes</i> InfoArea, and not to a newly created SAP Demo Purchasing (0D_MMPUR) InfoArea, similarly to the structure I saw when collecting the InfoProvider in Business Content. Is this the normal behaviour?
3. No DataSource has been assigned to any of the InfoSources. I read at:
http://help.sap.com/saphelp_erp2004/helpdata/en/43/57df37463a126ae10000009b38f842/content.htm
that the <i>SAP Demo</i> Source System will be used. What I can't understand is if I need to manually create and select this Source System. I thought it would be automatically created and assigned during the Business Content's cube activation. This is not the case. What steps would I have needed to perform?
Davide -
Error when reading data from XML using JAXB?
Hi all,
I get the error message when reading data from XML using JAXB.
[org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
(AbstractUnmarshallerImpl.java:315)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
I don't find the reason, please help!
Thanks in advance!The problem is sovled.
-
ORA-28522 error when reading data from DB2 via hsodbc
Hi All,
I'm trying to connect to a DB2 database running on an AS/400 system, via Oracle HS.
I'm using Oracle 9.2.08. The DB2 version is V4R5.
My ODBC DSN is called TEST_odbc.
The initTEST_sid.ora file contains the following:
HS_FDS_CONNECT_INFO = TEST_odbc
My Listener.ora file contains the following:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = vm-dashboarddemo)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = D:\oracle\ora92)
(SID_NAME = TEST_sid)
My TNSNames.ora file contains:
TEST_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = VM-DASHBOARDDEMO)(PORT = 1521))
(CONNECT_DATA =
(SID = TEST_sid)
(HS = OK)
When I use TNSPing, I get a successful result:
D:\oracle\ora92\bin>tnsping TEST_name
TNS Ping Utility for 32-bit Windows: Version 9.2.0.8.0 - Production on 04-JUL-20
07 13:46:47
Copyright (c) 1997, 2006, Oracle Corporation. All rights reserved.
Used parameter files:
D:\oracle\ora92\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = VM-DASHBOARDDEMO)(PORT = 1521))) (CONNECT_DATA = (SID = TEST_sid)) (HS =
OK))
OK (10 msec)
I can then login to SQLPlus as SYSDBA, and create a database link:
SQL> create database link TEST_link connect to "<username>" identified by "<password>" using 'TEST_name';
Database link created.
So far everything seems to be going well.
But then, when I try and select some data from the linked database, i get the following:
SQL> select * from <tablename>@TEST_link;
select * from <tablename>@TEST_link
ERROR at line 1:
ORA-00942: table or view does not exist
[Generic Connectivity Using ODBC][IBM][Client Access Express ODBC Driver
(32-bit)][DB2/400 SQL]SQL0204 - ZASTSE00 in QGPL type *FILE not found. (SQL
State: S0002; SQL Code: -204)
ORA-02063: preceding 2 lines from TEST_LINK
Does anyone have any ideas? I'd love to get this solved!!
Many Many Thanks,
RiverI should have mentioned that I know that the table exists in the database.
The main reason I'm trying to do this is because I'm trying to get the data from the DB2 DB into my Oracle DB. I have been trying the EXP utility, which gives me a different error code:
D:\oracle\ora92\bin>exp <username>/<password>@TEST_name file=TEST.dmp rows=yes indexes=no
Export: Release 9.2.0.8.0 - Production on Wed Jul 4 13:44:06 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
EXP-00056: ORACLE error 3113 encountered
ORA-03113: end-of-file on communication channel
Username: <username>
Password:
Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
Note: indexes on tables will not be exported
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user <username>
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user <username>
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully
Thanks Again,
Riv -
Error while reading data from SharePoint List - using object model
Any idea what could be reason for this error:-
Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
at Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()
at Microsoft.SharePoint.SPListItemCollection.GetDataTableCore(Boolean isJsGrid)
at HRCompetencyGuide.SPHelper.<>c__DisplayClass2.<getDataTableFromList>b__0()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad NizamuddinIt is a simple code:- below is the part of the code taken from the method
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite(siteURL))
if (site != null)
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists.TryGetList(listName);
if (whereQuery == null)
collection = list.GetItems().GetDataTable();
else
collection = list.GetItems(whereQuery).GetDataTable();
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin -
Error when reading DataTarget 0RPA_C01
Hi
I activated (simulated) InfoCube 0RPA_C01 (Store/Artikel/day) in BCT by grouping (data flow before) and got the errors:
- Error when reading data target 0RPA_C01; Message no: RSAU126
Object Update Rules AOVQMV1HXG826N2K14P5TPOYA: Installation of the Content Version; Message no. RSO425
Transfer update rules IC: 0DBDUNS_NUM / IS: 0DBDUNS_APPENDIX_ATTR_1; Message no. RSAU180
- No update specified for key figures; message no: RSAU232
do anyone knows this problem in BW Release 3.5?
Thanks and Regards
HeshamOk, it worked! Now however I have some more doubts.
1. I can't find the InfoObjects (e.g. 0D_GR_QTY, 0D_PLANT, 0D_MATERIAL, etc.) anywhere in <i>Modeling -> InfoObjects</i>, even if:
a) I can find them under the <i>InfoSource</i> tree of the <i>SAP Demo</i> Application Component
b) they appear activated in <i>Business Content</i>
What's going on?
2. The newly activated <i>Purchasing Data</i> cube has been added to the <i>Unassigned Nodes</i> InfoArea, and not to a newly created SAP Demo Purchasing (0D_MMPUR) InfoArea, similarly to the structure I saw when collecting the InfoProvider in Business Content. Is this the normal behaviour?
3. No DataSource has been assigned to any of the InfoSources. I read at:
http://help.sap.com/saphelp_erp2004/helpdata/en/43/57df37463a126ae10000009b38f842/content.htm
that the <i>SAP Demo</i> Source System will be used. What I can't understand is if I need to manually create and select this Source System. I thought it would be automatically created and assigned during the Business Content's cube activation. This is not the case. What steps would I have needed to perform?
Davide -
Error in reading data from InfoSet
Hi Experts,
I am facing the below errros when doing a selection to retraive data.
@5C\QError@ Error when reading data from InfoSet Z40_2 (return code 1) @5F\QNo long text exists@ 17:56:24 A Preparatory Steps 1 Selection and Bundle Formation 00000000000195819816 1 E /BA1/F3_BASIS 6 1 1
@5C\QError@ Data transfer structures in EWLS object do not match @5F\QNo long text exists@ 17:56:24 A Preparatory Steps 1 Selection and Bundle Formation 00000000000195819816 2 E /BA1/F3_EWLS 117 1 2
Please let us know if any one knows why tehse erros apear and sloution for these.
Please do the needful,'
Thanks,'Maheshthanks
-
Error when reading the access data for the Adapter Engine
We are getting the following error in XI. It started on Jan 22 and resolved on Jan 23 automatically. Nothing has been changed and we don't able to understand how problem started and how it resolved:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.xpd.dbcixpd</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.xpd.dbcixpd</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.xpd.dbcixpd</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
Pls suggest if anyone has gone thru same problem.
Regards
AmarI got the same problem while using RFC lookup.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.tx1.netweaver</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>3: Unable to find URL for Adapter Engine af.tx1.netweaver</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.tx1.netweaver</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Any idea ,when we get this error usually. -
Can anyone list problems/errors when uploading data using BDC's and BAPI's?
Can anyone list the problems/errors when uploading data using BDC's and BAPI's?
Hi,
If you are actually creating a BDC to load data pls be more specific.
Data format incorrect. Tab delimited/ etc
Dates in wrong formats
Currency incorrect formats
Missing screens
Wrong transaction code
File not found,
Missing Mandatory fields,
Screen resoultion.
You should always use refresh for your Bdcdata table.
Loop at internal table.
refresh Bdcdata.
regards,
sowjanya. -
Error when reading the DDIC-data for table
Hi Tobias
We upgraded from DMIS 2011 SP04 to SP07. We are in development system.
To test initial load, we stopped replication for an existing table and then started replication for the same table.
Mass transfer id connects ECC system to BW on HANA system.
Replication errored with the following message:
Error when reading the ddic-data for table MARD (RFC destination DWACLNT010).
Looking for your guidance.
Kind Regards
Kamaljit VilkhooWas able to solve using oss note 1972533.
-
Error when importing data using DTW template
Dear All gurus/experts,
I have a problem when importing data into SBO system using DTW. The error message is "sort error, pls check the prepared data and delimeter. I use SBO 2004 SP 00 PL 41. I don't understand to cope with this problem, I have no idea anymore. I appreciate your answer. TIA
Rgds,Tks for your reply. I have seen it and the error message relates to delimeter. I have tried to correct the error by recreate the file and save as tab delimeted. Right now I am trying to import the files.
Rgds, -
Read error when reading the master data of 0EMPLOYEE on demand, attribute 0
Hello All,
While loading data for HR data source 0HR_PA_OS_1 i am getting the below error message..
Error 1 in update.
Read error when reading the master data of 0EMPLOYEE on demand, attribute 0COMP_CODE
Please let me know how can it be resolved.
Regards
Rohit PartiThe problem occurs during data load from R/3. It was not occuring before. When I go to check the PSA contents I get a runtime error - GETWA_NOT_ASSIGNED.
Error analysis
You attempted to access an unassigned field symbol
(data segment 32821).
This error may occur if
- You address a typed field symbol before it has been set with
ASSIGN
- You address a field symbol that pointed to the line of an
internal table that was deleted
- You address a field symbol that was previously reset using
UNASSIGN or that pointed to a local field that no
longer exists
- You address a global function interface, although the
respective function module is not active - that is, is
not in the list of active calls. The list of active calls
can be taken from this short dump. -
I have a question about Lightroom 5... I used it last night, I go to get on it today and its will not open. I have an error msg "Lightroom encountered an error when reading from its preview cache and needs to quit" Lightroom will attempt to fix the problem when reopened
https://forums.adobe.com/message/6219922#6219922
See if the issue in the thread above helps you to solve your problem. -
Error when reading the access data(URL,user, password) for Adapter Engine
Hi,
We are getting this error in production system
"SXMBSysErrorAlerts, Category INTERNAL, Error code: AE_DETAILS_GET_ERROR error text: Error when reading the access data (URL, user, password) for the Adapter Engine".
Please tell what can be the cause of error. Where are the access data (URL, user, password) for the Adapter Engine read from?
Its urgent. We are in support project.
regards,
johnHi jhon,
please check the following threads to resolve the problem.
AE_DETAILS_GET_ERROR
Error : no_adapter_engine_found: Unable to find Adapter Engine
regards
mahesh.
Maybe you are looking for
-
How to restrict the field in invoice documnet
Hi All, We don't want to allow users to change the vendor at the time of creation of invoice. we want to restict the filed invoice praty (under details tab) to display only. Is it possible? How to achieve it. Thank you.
-
Problem with ClusterPanelWidget having RadioButtons
Hi All, I was facing a problem in InDesign CS3 on Mac in using two panels having radio buttons on a dialog box. Details are as follows:- 1: I had created a modal dialog . 2: At run time I am adding two GenericPanelWithBorderWidget to this dialog. 3:
-
It is getting so frustrating to contact your Customer Service for anything. Can you explain why it is that you took away the email Customer Service option and replaced it by a chat button that is ALWAYS greyed out! It takes longer in days to simply
-
Unable to Revert to Automatic Contact Names
Hello, I recently renamed a Skype contact and I'm now unable to get Skype to revert back to automatically updating the contact's display name. Following instructions in another forum post, I removed the custom name by editing the name, leaving it bla
-
Impossible to prin with my samsung ML-1520 I don't find the driver?
my new MacBook Air identify the samsung ML-1520 but ask for a driver. I have the CD with the laser Printer Driver (vert 1.04) but when I try to open the CD it does not work? Impossible to find the correct printer driver on Internet? Any help? Thanks