XML import only creates one record at a time
Hi All,
I have an XML import map that automatically imports data into main product table. It's working fine when the XML file has only one main record. When it has more than one record, the import manager and import server can only import the last record in the file and skip the rest.
I already checked the record matching tab. It correctly shows that all records will be created and 0 will be skipped. Even the log file indicates all records are created after I execute the map. Yet, when I try to look for them in the data manager, I can only find the last one. If I execute the map with the exact same file again, it will create one more record again and skip the rest.
Someone else posted the same question a while back: Import map issue one record at a time. But it was never answered. Does anyone else have this issue? Is this a MDM bug?
Thanks,
Kenny
Hi Kenny,
Please refer to the note below:
Note 1575981
Regards,
Neethu Joy
Similar Messages
-
Import map issue one record at a time
Hello Experts,
I built an import map to run it manually with import manager, but when I click on Ready to Import, the import manager is doing one record at a time. I have to go back to the match tab and refresh in order to import the rest.
Any idea where to setup a setting to import all records at once?
Thank you very much for your help,
Claudia HardemanHi Claudia,
Please check if your matching criteria results in fewer records,what is the matching criteria you are setting?
Do you see a total of 300 under "Create" Match Action?
No of records to be imported is governed by Match action which tell the MDS which are distinct records,Match Action tells MDS what is to be done with this number of records which have this Match type.
Please check if you have "SKIP" as match action,if yes use a appropriate action for match type.
Do a "Save Update" of the map.
Please revert with results.
Thanks,
Ravi -
Return only one record at a time
I am new to crystal reports so any help would be appreciated. I have a .net app that is a order processing system. When the user is in a record, they want to be able to click on a button an open a crystal report showing only that orders details. I created a crystal report that has the following fields:
Order ID, Product ID, Unit Price, Sell Price, Hours.
The Order ID is the primary key in the database. The report runs fine when clicking the report button in the app, but returns the details for every order in the database. We just need the details of the order that the user is processing. How do I setup the report to only show that order's details? I am using VB 2005 and Crystal v9.
Edited by: sking on Mar 6, 2009 1:12 AMBrian,
Thank you for all your help. I have been able to setup the report to return only one record at a time. In my app, when I click the report button the PDF opens perfectly with only one record. However, when I go to another record and open the PDF it returns the information from the record id that was set as the default parameter value (crReportDocument.SetParameterValue("Orders", 67). How do I get it to return the report for a different record? Here is the code I'm using. I think I'm really close with your suggestions but I'm just missing one step.
#Region "CrystalReport"
''' <summary>
'''Override the CrystalReportButton_Click and call DisplayReportAsPDF_CrystalReportButton function
''' </summary>
Public Sub CrystalReportButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim crReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim fileName As String = "test.rpt"
Try
If fileName.Substring(1).StartsWith(":\") Then
crReportDocument.Load(fileName)
Else
crReportDocument.Load(Me.Page.MapPath(fileName))
End If
Catch ex As Exception
Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
errMsg += " Please make sure the dlls for Crystal Report are compatible with the Crystal Report file."
BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
End Try
Try
Dim paramValue As CrystalDecisions.Shared.ParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue()
paramValue.Value = "67"
crReportDocument.SetParameterValue("Orders", 67)
DisplayReportAsPDF_CrystalReportButton(crReportDocument)
Catch ex As Exception
Dim errMsg As String = ex.Message.Replace(Chr(13).ToString(), "").Replace(Chr(10).ToString(), "")
errMsg += " If this is a deployment machine, make sure network service has permissions to read or write to the windows\temp folder."
BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", errMsg)
End Try -
How do I import or move multiple selected photos to an existing album in iPhoto 9.6? In previous versions I could select and drag multiple photos into an album. Now I can only move one photo at a time. Help!
Try this general troubleshooting procedure:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home/Library/ Preferences folder.
2 - delete the contents the following folder: User/Library/Containers/com.apple.iPhoto
3 - reboot, launch iPhoto and try again.
NOTE: For Mavericks and Yosemite, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
where you can check the Show Library Folder checkbox. -
Challenge involving creating a file on GUI & seeing one record at a time...
Hi,
If anyone can help me with this project I'd be most appreciative. I'll try and explain the problem the best I can. I'm adding students to a database at a university they're either a Graduate or an Undergraduate. I'm taking in first, lastname's, ssn, & ACT/SAT/GMAT test results. I have a GUI called StudentRecord that has all the JTextFields, JButton's, etc. I'm also writing it to a .txt file called StudentDA. For this I used a BufferedFile reader.
What I really need is on my StudentRecord when I click the display button I want it to show one record at a time in another JFrame. This other JFrame I named it display. I'm trying to create an instance of JFrame inside of the actionPerformed for StudentRecord but when I click display nothing happens.
I adding the students with a vector that I'm calling v. I want the Display to read from the .txt file and display one at a time hence next, and previous. I'm going to post the tidbit of relevant code. If anyone can help me you'd be my hero for the day for all time I've tried to get this to work.
Here's the StudentRecord (GUI) display part:
public void actionPerformed( ActionEvent event )
try {
Display d = new Display(StudentDA.v);
}//end try
//catch right here no problems with this..Here's the DataAccess part:
public class StudentDA{
static Vector v = new Vector();;
static String pathName = "a:/Final Project/test1.txt";
static File studentFile = new File(pathName);
static String status;
public StudentDA() {}
public static void initialize() {
if (studentFile.exists() && studentFile.length() !=0) {
try{
BufferedReader in = new BufferedReader(new
FileReader(studentFile) );
do{
status = in.readLine();
if(status.equals ("uGrad")) {
uGrad u = new uGrad();
u.setFName(in.readLine() );
u.setLName(in.readLine() );
u.setssNum(Integer.parseInt(in.readLine()) );
u.setACT(Integer.parseInt(in.readLine() ));
v.add(u);
System.out.println(u + "inside ugrad");
}//end if uGrad
else{
if(status.equals("Grad")) {
//same process as uGrad
v.add(g);
}//end else Grad
}while (status != null);
}//end try statement
catch (Exception e) {
}//end catch
}//end if there's something there
}//end method initialize
//creating the terminate method
public static void terminate() {
try{
PrintStream out = new PrintStream ( new
FileOutputStream (studentFile) );
for (int i = 0; i < v.size(); i++) {
Student s = (Student) v.elementAt(i);
String p = s.printRecord();
StringTokenizer rt = new StringTokenizer(p, "\t");
while (rt.hasMoreTokens() ) {
out.println(rt.nextToken() );
}//end while
}//end for loop
}//end try loop
catch (Exception e){
}//end catch
}//end terminate
public static void add(Student s){// throws DuplicateException{
boolean duplicate = false;
for(int i = 0; i < v.size(); i++){
if(s.getssNum() == ((Student)(v.elementAt(i))).getssNum()){
duplicate = true;
break;
if(duplicate){
throw new DuplicateException("Student Already Exists");
else{
v.add(s);
}//end add method
}//end classHere's the display class:
public class Display extends JFrame {
private JButton Next, Previous;
private JTextField statusField, firstField, lastField, socialField, advPlacementField, actField;
private JLabel statusLabel, firstLabel, lastLabel, socialLabel, advPlacementLabel, actLabel;
private JPanel fieldPanel, buttonsPanel;
private JTextArea displayArea;
static int count = 0;
static String status;
public Display(){}
public Display(Vector v){
//setting up the GUI components for the display class here
//JTextAreas & JLabels
buttonsPanel = new JPanel();
buttonsPanel.setLayout(new GridLayout(1,2));
Next = new JButton("Next");
buttonsPanel.add(Next);
Next.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent event )
//try to catch display errors
try {
count++;
displayData(count);
//displayData();
}//end try
catch {
}//end catch
} // end actionPerformed
} // end anonymous inner class
); // end call to addActionListener
buttonsPanel.add(Next);
Previous = new JButton("Previous");
buttonsPanel.add(Previous);
Previous.addActionListener(
new ActionListener() {
public void actionPerformed( ActionEvent event )
//try to catch display errors
try {
count--;
displayData(count);
//displayData();
}//end try
catch {
}//end catch
} // end actionPerformed
} // end anonymous inner class
); // end call to addActionListener
}//end display() constructor
public void displayData(int count) {
StudentDA.initialize();
if (status.equals ("uGrad")) {
//these are all part of the StudentRecord GUI not Display GUI
fieldPanel.setVisible(true);
buttonsPanel.setVisible(true);
actLabel.setVisible(true);
actField.setVisible(true);
advPlacementLabel.setVisible(false);
advPlacementLabel.setVisible(false);
}//end if
else {
if(status.equals ("Grad")) {
fieldPanel.setVisible(true);
buttonsPanel.setVisible(true);
actLabel.setVisible(false);
actField.setVisible(false);
advPlacementLabel.setVisible(true);
advPlacementLabel.setVisible(true);
}//end if
}//end else
}//end method displayData()
public static void main ( String args[] )
Display application = new Display();
application.addWindowListener(
new WindowAdapter(){
public void windowClosing( WindowEvent e)
System.exit(0);
application.setSize( 300, 200);
application.setVisible( true );
};//end main
}//end class Display{}I know this is long but if anyone can help I'd greatly appreciate it. Please ask me if you need me to clarify something, I tried to not make it way too long. --rockbottom01
I'm not really too sure what it is that you are after, but here is some code, that loads up an array with each line of a .txt file, then displays them. I hope you can make use of a least some of it.
just ask if you don't understand any of the code.
String array[];
int i;
public Test() {
readFile("file.txt");
i = 0;
nextEntry();
public void nextEntry() {
Display display = new Display();
display.show();
class Display extends JFrame implements ActionListener {
JLabel label1;
JButton button;
public Display() {
label1 = new JLabel(array);
button = new JButton("OK");
getContentPane().setLayout(new FlowLayout());
getContentPane().add(label1);
getContentPane().add(button);
button.addActionListener(this);
public void actionPerformed(ActionEvent e) {
setVisible(false);
i++;
if(i < array.length) {
nextEntry();
public void readFile(String fileName) {
String s, s2 = "";
int lineCount = 0;
BufferedReader in;
try {
in = new BufferedReader(new FileReader(fileName));
while((s = in.readLine()) != null) {
lineCount++;
array = new String[lineCount];
in.close();
in = new BufferedReader(new FileReader(fileName));
int j = 0;
while((s = in.readLine()) != null) {
array[j] = s;
j++;
catch(IOException e) {
System.out.println("Error"); -
How to select only one record at a time in ALV
Hi all,
I have to use ALV report. Each record on the report output should have a button (or radio button) which will allow the record to be selected. My requirement is to select only one record at a time.
please guide me how to proceed further.
regards
manishhi
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/sampleCheckBoxProgram
Regards
Pavan -
Cfloop query only finding one record
I can't figure this out. My query is only finding one record
(in certain instances), but there are more records in the table. It
seems to the the problem when I use "LIKE". Everything prints fine
if I use equals.
Here's my code:
<cfparam name="form.kword" default="">
<cfparam name="form.fyear" default="2008">
<cfparam name="form.fnum" default="">
<cfparam name="form.titlew" default="">
<cfparam name="form.doctrak" default="">
<cfparam name="url.sterm" default="">
<cfparam name="url.fyear" default="">
<cfparam name="url.qtype" default="">
<!---Queries--->
<!---From FORM Query the forms table--->
<cfquery name="displayformresults"
datasource="#mydatasource#">
SELECT fstrkeywords, fstrdoctrak, fstrformnum, fstryear,
fstrtitle, fstrfilesize, fstrfiletype, fdtmrevdt, fblnfillin,
fstraddendum
FROM tblext_forms
WHERE fstrkeywords LIKE '%#form.kword#%' AND fstryear =
'#form.fyear#' AND fstrformnum LIKE '%#form.fnum#%' AND fstrtitle
LIKE '%#form.titlew#%' AND fstrdoctrak LIKE '%#form.doctrak#%'
ORDER BY fstrtitle, fstryear ASC
</cfquery>
<cfdump VAR="#displayformresults#"><!---Variable anyyeardisplay has been declared within a
<cfif> tag so where the necessary condition is not met it
means it would not been declared yet before you ask ColdFusion to
output it on the table... trouble!
So amend as below. If for any reason you need to put variable
nicefdtmrevdt within a conditional statement as well, just do the
same (as shown) --->
<cfloop query="displayformresults">
<cfif "#displayformresults.fstryear#" IS "">
<cfset #displayformsesults.fstryear# = "2008">
<cfelse>
<cfset anyyeardisplay = #displayformresults.fstryear#>
</cfif>
<cfset nicefdtmrevdt =
#DateFormat(#displayformresults.fdtmrevdt#, "mm-dd-yyyy")#>
<cfoutput>
<tr>
<td
class="fifteen">#displayformresults.fstrformnum#</td>
<td class="fifteen"><cfif isDefined
("anyyeardisplay")>
#anyyeardisplay#
</cfif></td>
<td class="fortyfive"><a href=""
title="#displayformresults.fstrdoctrak#">#displayformresults.fstrtitle#</a></td>
<td class="twentyfive"><cfif isDefined
("nicefdtmrevdt")>
#nicefdtmrevdt#
</cfif>
<br />
(#displayformresults.fstrfiletype#,
#displayformresults.fstrfilesize#)</td>
</tr>
</cfoutput> -
Call the webdynpro appl while creating one record using itemDetail iView
Dear Expert,
I have one scenario where in the user want to create one record in MDM table using itemDetai iView. When the user clicks on one custom button in this itemDetais iView say validate one webdynpro applicatio should be called and this applicaiton should validate the user input depending on business requirement.
Thanks and Regards,
M.D.Sahuthanks John for your valuable input.
In my requirement user don't want to touch the MDM repository or don't want the serve side eventing. After giving the user input in Item detail Iview the user will click on Validate button and one WDJ applicaiotn should be called to validate the users input. Please guide me in achieving this result.
Thanks in advance.
Regards,
M.D.Sahu -
Master_detail for more than one record at a time
Hi,
How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
Thanks for your help.BcjThanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
data in table A,
username role
AAA R1
BBB R2
CCC R3
data in table B,
username profile
AAA P1
BBB P2
CCC P3
i wanted to display it on form like below,
username role profile
AAA R1 P1
BBB R2 P2
CCC R3 P3
Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
Thanks Again, Bcj -
ITunes 8.0 only Plays One Song at a Time, then Stops! AARGH!
Someone, please help. I have tried everything I can think of, to no avail.
For some reason, when I play a song in my Music Library on my laptop iTunes 8.0, it stops playing after each song. When the song ends, iTunes stops; it does not move to the next song in my library, it just stops. I have to click on the next song to play that song, and when that song is done it stops.
I have tried creating Music Playlists, does not help. I have tried checking and unchecking the Repeat and Shuffle options, still nothing.
This does not happen on my iPods, only when I play songs in my Music Library on iTunes from my laptop.
If you have any suggestions for a solution, please tell me. I am beyond frustrated having to click on the next song every time.I have the same problem with iTunes only playing one track at a time. It didn't use to be this way ... and seems to have developed after one of the recent updates (late December 2008).
I did, however, find that the problem was "solved" by checkmarking all the tracks that I expect to hear played. However, this won't work for me because ... as it has always been in the past ... I use these check boxes to tell iTunes which tracks to synchronize to my iPod. Since my desktop library is many times larger than can be loaded onto my iPod, I obviously cannot check all of the tracks.
Since when did these check marks become **ALSO** a signal to tell iTunes what tracks to play continuously on iTunes?!?
Previously, I have **ONLY** used these check-marks to signal to iTunes the tracks that should be synchronized to my iPod.
If the foregoing advice (check-marking all songs to be played continuously on **iTunes** ... then it would appear that the programmers have introduced a conflict of functions in the iTunes user interface.
The check-mark system is a simple and intuitive method to select which tracks to synchronize to the iPod ... it is not at all intuitive that you would be expected to check these **SAME** check-boxes to play tracks on the iTunes desktop.
Generally, when listening to music at home on iTunes, I prefer to listen to albums as published from the first track to the last track. Occasionally, I may wish to shuffle tracks within an album or within a genre.
However, when on the go, I sometimes shuffle music entirely. In any event, I cannot possibly download my entire library onto my iPod because of memory limitations.
In conclusion, I do not wish to tamper with my check-marks ... I know, at any time, how much memory is currently in use on my iPod and so can add and/or delete check-boxes to adjust the tracks from my iTunes main library that are played on my iPod.
Of course, then, I am massively frustrated that I cannot listen to albums continuously without messing-up my iPod library selections.
This was never a problem before ... why has this behavior changed?
This could, of course be resolved if the Apple development team added a command "Continuous Play" [On] or [Off] ... say under the [Controls] menu, logically placed above the "Shuffle" menu item.
Comments?
Does anyone on the Apple iTunes development team monitor this discussion? -
Hi !
One of our Java folks here need at function where he reads one record at at time in id order;
create table url_recs (id number, url varchar2(4000));
insert into url_recs values(1,'www.fona.dk');
insert into url_recs values(2,'www.dr.dk');
insert into url-recs values(17,'www.ihk.dk');
select read_rec() from dual; - get id 1
select read_rec() from dual; - get id 2
select read_rec() from dual; - get id 17
select read_rec() from dual; - get id 1 - "no more rows - start all over again)
select read_rec(45) from dual; - get NULL (no rows with that id)
select read_rec(1) from dual; - get id 1
The purpose id for some "round robin" trying to get to some internal URL's.
Can you give me a hint for creating the function(s)
best regards
MetteWill successive calls come on the same Oracle session? Or across different Oracle sessions?
If you're going to call the function multiple times within the same Oracle session, you could store the last value returned in a package variable and select the record whose ID is greater than that value every time the function is called. That's unlikely to do exactly what the Java developer is hoping, though, because the Java calls are likely to bounce between multiple Oracle sessions due to connection pooling. And it'll likely require that the Java developer (or app server admin) adds some code when they get a connection from the pool where they reset the package state. Or it'll require that someone develop a method to keep the Java and Oracle session state in sync.
Justin -
How to create Child record at the time of master record creation.
Hi,
I have MasterVO and ChildVO. And association between both are 1 to *. I have a requirement like, I need to create row in ChildVO at the time of MasterVO row creation.
I have used entity based association to create view link. This view link created ChildVO accessor in MasterRowImpl as type RowIterator.
Actually my idea is to override create method in MasterVORowImpl and call ChildVO ViewObject and call .createRow() method on it. But I don't have access to ViewObject, instead it gave access to RowIterator.
Could you please provide any pointer to achieve above functionality?
Many thanks in advance.
Jdev version - 11.1.1.7.0
Regards,
Dileep.Hi Tim,
Now it is creating child record at the time of master row creation. But it is working only through BC tester. But when I drag the child VO instance in the jsff page, only master is get created as editable only, child is displayed as read only without populating any default values like child VO surrogate key and other default attributes. But through BC tester it is working fine.
Am I missing anything here while implementing in UI?
Thanks,
Dileep. -
How to delete one record at a time
hi all,
Please tell me how i do delete only one record at a time.After deleting the record the jsp page should show only the remining items to be deleted.Where do u want to delete the record - database?
If so use the rpimary Screen identifying each record and use that to delet that record -
ITunes can only perform one thing at a time
Ever since updating to the latest version of iTunes on my dual core mac mini, iTunes can only perform one task at a time beach balling the entire time. For example if it is downloading a podcast, and I try and watch something off my apple tv via home sharing on this library, it fails to load. Same thing if it is syncing my iPhone.
Importing new media into my library also seems to take much longer than it did before, for instance importing a 700mb movie takes ~20 hours.
What can cause such a degrade in performance?Back up your drive now. Slow copying may be one sign a drive is about to fail, because it is having to repeat a lot of actions many times.
What does Disk Utility say about the SMART status in get info? Have you verified the hard drive with DU's first aid? -
ITunes only plays one song at a time
After much toing and froing on my new computer, I now have all my songs re-imported into the library. However, iTunes will now only play one song at a time: after it plays one song it just halts; the forward arrow is just greyed out. Any ideas would be most welcome!
Try checking all of those little boxes. To check all at once, hold ctrl while checking one.
Maybe you are looking for
-
When I decide to save a file or a image on any site, The window that comes up to "save to" never stays in the center where I want it, It will always open on the top-left portion. How can I make it save its windows setting?
-
Possible to use Apple ID balance to gift apps?
I have $10 on my Apple ID balance, and I wanted to use $2.99 to gift an app to a friend, but I can´t see how - iTunes only asks me to enter my credit card info (or, ironically, a new giftcard-code) but not draw from my existing amount. Is it even pos
-
Please can someone tell me how to do a tabular report ? I have the following data in the table User_id Date 111 10-JAN-06 13:33:00 112 11-JAN-06 14:33:00 113 11-JAN-06 14:33:00 114 13-JAN-06 13:33:00 115 13-JAN-06 16:33:00 116
-
i need to be able to write to the parallel port on a desktop computer to control a stepper motor. I need to be able to write logic high and low at certain pins that go to a stepper motor driver. The writing to the port needs to be done so many time
-
Dear experts, One of companies is using new ledger, 0L is leading ledger, and anther ledger is ZL. Right now ,we have a requirement .We hope ,for example ,during we book a FI document with G/L account 1160,we want to it is replaced with 9260 into ZL