Database Initialiser does not create azure sql database
I have a WPF application In the OnStartup in the app.cs I set the Database initializer and forced the context the initialise my database:
Debug.WriteLine("Setting Initializer");
Database.SetInitializer<MyContext>(new MyDatabaseInitializer());
Debug.WriteLine("Declaring new context");
using (MyContext c = new MyContext("MyContext"))
Debug.WriteLine("Force the initialization");
c.Database.Initialize(true);
Debug.WriteLine("Done!");
I created a sql database in the management portal of the azure.
Copied the connectionstring it provided for ADO.net.
But my database is not created.
I also added a firewall rule but nothing happens. I Have no clue what to do.
Can anybody please help me with this?
If you need more information please ask i really have to get this sorted out.
Thanks in advance!
Hi Turkstra,
I have tried to use EF to create Azure SQL database, it works as expect, the database 'jambordbcreate' appear in my SQL Azure, below is the detailed codes.
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeFirst
class Program
static void Main(string[] args)
Database.SetInitializer(
new CreateDatabaseIfNotExists<SchContext>());
using (var db = new SchContext("Server=tcp:****.database.windows.net,1433;Database=jambordbcreate;User ID=vote@***;Password=***;Trusted_Connection=False;Encrypt=True;Connection Timeout=30"))
string name = "jambor";
var student=new Student(){Name=name, ID="1a"};
db.Students.Add(student);
db.SaveChanges();
db.Database.Initialize(true);
public class Student
public string ID { get; set; }
public string Name { get; set; }
public string age { get; set; }
public string sex { get; set; }
public class School
public string ID { get; set; }
public string Name { get; set; }
public virtual List<Student> Students { get; set; }
public class SchContext : DbContext
public SchContext(string connection):base(connection)
public DbSet<Student> Students { get; set; }
public DbSet<School> Schools { get; set; }
I suggest you check your SQL connection, after run your code, please refresh azure portal to see whether your database is exist. Hope this give you some help.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
SQLJ Translation does not create profile file
SQLJ Translation does not create profile file.
After translating a small file HelloWorld.sqlj
the following files are created:
HelloWorld_SJProfileKeys.class
HelloWorld.class
HelloWorld.java
Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
My environment variables were set up with instructions from:
http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
When I run java HelloWorld to run the .java file, I get the error:
SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
I searched the internet high and low for a similar error to mine but I could not find a match.
I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
but it does not help me.
"ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
If you see an exception such as:
java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
java.lang.ClassNotFoundException:
xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
Any ideas? Thanks in advance,
John
Helloworld.sqlj before translation:
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orac",
"scott",
"tiger"
// get the current date from the database
#sql { SELECT sysdate INTO :current_date FROM dual };
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
HelloWorld.java after translation:
/*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orcl",
"scott",
"tiger"
// get the current date from the database
/*@lineinfo:generated-code*//*@lineinfo:28^7*/
// #sql { SELECT sysdate FROM dual };
sqlj.runtime.profile.RTResultSet __sJT_rtRs;
sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
try
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
__sJT_rtRs = __sJT_result;
finally
__sJT_execCtx.releaseStatement();
try
sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
if (!__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
current_date = __sJT_rtRs.getDate(1);
if (__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
finally
__sJT_rtRs.close();
/*@lineinfo:user-code*//*@lineinfo:28^58*/
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
}/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
private static HelloWorld_SJProfileKeys inst = null;
public static java.lang.Object getKey(int keyNum)
throws java.sql.SQLException
if (inst == null)
inst = new HelloWorld_SJProfileKeys();
return inst.keys[keyNum];
private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
private java.lang.Object[] keys;
private HelloWorld_SJProfileKeys()
throws java.sql.SQLException
keys = new java.lang.Object[1];
keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
}SQLJ Translation does not create profile file.
After translating a small file HelloWorld.sqlj
the following files are created:
HelloWorld_SJProfileKeys.class
HelloWorld.class
HelloWorld.java
Although there is a HelloWorld_SJProfileKeys.class, profile file HelloWorld_SJProfile0.ser has NOT been created.
The starting file .sqlj file HelloWorld.sqlj is taken from O'Reilly book 'Java Programming with Oracle SQLJ' by Jason Price. The file contains a valid SQL statement to display the date.
My environment variables were set up with instructions from:
http://www.onjava.com/pub/a/onjava/2001/12/05/learning_sqlj.html
When I run java HelloWorld to run the .java file, I get the error:
SQLException java.sql.SQLException: profile HelloWorld_SJProfile0 not found: java.lang.ClassNotFoundException: HelloWorld_SJProfile0
I searched the internet high and low for a similar error to mine but I could not find a match.
I read the following text from http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/faq.html#translationerrors
but it does not help me.
"ClassNotFoundException: xxx.yyy_SJProfile0 for class xxx.yyy_SJProfileKeys
If you see an exception such as:
java.sql.SQLException: profile xxx.yyy_SJProfile0 not found:
java.lang.ClassNotFoundException:
xxx.yyy_SJProfile0 for class xxx.yy_SJProfileKeys
then you must ensure that the SQLJ profile(s), such as xxx/yyy_SJProfile0.ser, is available in the SQLJ runtime environment. This includes JARing this file as part of an applet deployment, or publishing it to the server via loadjava.
Any ideas? Thanks in advance,
John
Helloworld.sqlj before translation:
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orac",
"scott",
"tiger"
// get the current date from the database
#sql { SELECT sysdate INTO :current_date FROM dual };
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
HelloWorld.java after translation:
/*@lineinfo:filename=HelloWorld*//*@lineinfo:user-code*//*@lineinfo:1^1*//*
The program HelloWorld.sqlj illustrates how to connect to a
database, and display the words "Hello World" along with
the current date.
// import required packages
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
public class HelloWorld {
public static void main(String [] args) {
java.sql.Date current_date;
try {
// connect to the database
Oracle.connect(
"jdbc:oracle:thin:@localhost:1521:orcl",
"scott",
"tiger"
// get the current date from the database
/*@lineinfo:generated-code*//*@lineinfo:28^7*/
// #sql { SELECT sysdate FROM dual };
sqlj.runtime.profile.RTResultSet __sJT_rtRs;
sqlj.runtime.ConnectionContext __sJT_connCtx = sqlj.runtime.ref.DefaultContext.getDefaultContext();
if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
synchronized (__sJT_execCtx) {
sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, HelloWorld_SJProfileKeys.getKey(0), 0);
try
sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
__sJT_rtRs = __sJT_result;
finally
__sJT_execCtx.releaseStatement();
try
sqlj.runtime.ref.ResultSetIterImpl.checkColumns(__sJT_rtRs, 1);
if (!__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_NO_ROW_SELECT_INTO();
current_date = __sJT_rtRs.getDate(1);
if (__sJT_rtRs.next())
sqlj.runtime.error.RuntimeRefErrors.raise_MULTI_ROW_SELECT_INTO();
finally
__sJT_rtRs.close();
/*@lineinfo:user-code*//*@lineinfo:28^58*/
// display message
System.out.println("Hello World! The current date is " +
current_date);
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} finally {
try {
// disconnect from the database
Oracle.close();
} catch ( SQLException e ) {
System.err.println("SQLException " + e);
} // end of main()
}/*@lineinfo:generated-code*/class HelloWorld_SJProfileKeys
private static HelloWorld_SJProfileKeys inst = null;
public static java.lang.Object getKey(int keyNum)
throws java.sql.SQLException
if (inst == null)
inst = new HelloWorld_SJProfileKeys();
return inst.keys[keyNum];
private final sqlj.runtime.profile.Loader loader = sqlj.runtime.RuntimeContext.getRuntime().getLoaderForClass(getClass());
private java.lang.Object[] keys;
private HelloWorld_SJProfileKeys()
throws java.sql.SQLException
keys = new java.lang.Object[1];
keys[0] = sqlj.runtime.ref.DefaultContext.getProfileKey(loader, "HelloWorld_SJProfile0");
} -
Impdp does not create user/schema
I'm an Oracle noob. I'm trying to copy (expdp/impdp) schema (no data) from one machine to another. I do not want any remapping. I just want empty table structure created on targetHOST.
Error I get is:
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-31625: Schema ZABBIX is needed to import this object, but is unaccessible
ORA-01435: user does not exist
My understanding is that if the user performing import has 'IMPORT FULL DATABASE' privilege, it'll create the users/schemas in the targetHOST. I granted it to 'scott' and tried with that too, same error.
- DB version: SQL*Plus: Release 11.2.0.1.0 Production on Thu Oct 24 14:27:41 2013
- If it matters the DB version on sourceHOST is 11.2.0.***3***
- OS: Linux targetHOST 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Import errors:
(0)oracle@targetHOST$ sqlplus system/manager
SQL*Plus: Release 11.2.0.1.0 Production on Thu Oct 24 14:27:41 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> select * from session_privs;
PRIVILEGE
IMPORT FULL DATABASE
CREATE SESSION
.......200 other privileges.......
202 rows selected.
SQL> ^D
(0)oracle@targetHOST$
(0)oracle@targetHOST$ impdp system/oracle123 directory=TEST_DIR dumpfile=ZABBIX.dmp logfile=impdpZabbix.log
Import: Release 11.2.0.1.0 - Production on Thu Oct 24 14:14:51 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** directory=TEST_DIR dumpfile=ZABBIX.dmp logfile=impdpZabbix.log
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-31625: Schema ZABBIX is needed to import this object, but is unaccessible
ORA-01435: user does not exist
Failing sql is:
BEGIN
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'XXX.YYY.COM', inst_scn=>'7788478540892');COMMIT; END;
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39083: Object type TABLE:"ZABBIX"."TABLE1" failed to create with error:
ORA-01918: user 'ZABBIX' does not exist
Failing sql is:
CREATE TABLE "ZABBIX"."TABLE1" ("COLUMN1" VARCHAR2(20 BYTE) NOT NULL ENABLE, "COLUMN2" VARCHAR2(20 BYTE), "COLUMN3" VARCHAR2(20 BYTE)) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAU
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 2 error(s) at 14:14:53
(5)oracle@targetHOST$
Export was done using following command (on a different machine)
(0)oracle@sourceHOST$ expdp zabbix/zabbix schemas=ZABBIX content=METADATA_ONLY directory=TEST_DIR dumpfile=ZABBIX.dmp logfile=expdpZABBIX.log
Complete export log available here.:I figured it out on my own. Required privilege is 'CREATE USER'. I don't have system's password so I granted CREATE USER to zabbix, made it DBA and it seems to be exporting more than it did last time:
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Yet to import but looks good so far..
Appreciate you taking the time..
Thanks... -
save as does not Create PDF Compatible File even when the creare pdf compatible files is on, Illustrator CC 2014
When I open is adobe acrobat I get this message.
"This is an Adobe® Illustrator® File that was
saved without PDF Content.
To Place or open this le in other
applications, it should be re-saved from
Adobe Illustrator with the "Create PDF
Compatible File" option turned on. This
option is in the Illustrator Native Format
Options dialog box, which appears when
saving an Adobe Illustrator le using the
Save As command." -
MRP does not creates Shcedule Line
I have a valid scheduling agreement LPA in place. Scheduling Agreement is approved and released status.
I have source list also maintained for same scheduling agreement with long validity and MRP indicator as 2 - Create Schedule line automatically.
I am running MRP using following parameters in MD02.
Processing key NETCH Net Change in Total Horizon
Create purchase req. 3 Planned orders
Delivery schedules 3 Schedule lines
Create MRP list 1 MRP list
Planning mode 3 Delete and recreate planning data
Scheduling 2 Lead Time Scheduling and Capacity Planni
Even schedule line and other parameters maintained properly, MRP creates planned order and does not creates Schedule Line automatically. Material Master is maintained MRP Type PD, Lot Size as Replenishment to maximum stock level, Safety stock, No strategy and availability on.
What I am doing wrong? With same setting in other system it is working perfectly fine.
Any feedback appreciated.
Thanks
PPHi
Check whether the Agreement Open Target value .
If the target quantity was completed . so system will not create the Schedule lines for the material
2. If you mainatian the open period in the smk.
so system will create the planned order instead of schedule agreement. check -
Add does not run with sql server 2008
Hi all,
My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B.
On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY"
we are trying this scenario on a test machine where SAP B1 2007B with temporary license for one month and SQL server 2008
is installed.
Help needed.
Thanking you
PradnyaHi Use this
Dim i as integer
i=oCompany.Connect()
if i<> 0 Then
msgbox(ocompany.GetLastErrorDescription ())
end if
the you will get the error description also use try catch wherever necessary
Alternatively you can use
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
Set SboGuiApi = New SAPbouiCOM.SboGuiApi
sConnectionString = Command
SboGuiApi.Connect sConnectionString
Set SBO_Application = SboGuiApi.GetApplication()
Set ocompany = New SAPbobsCOM.Company 'initialate DI company object
ocompany = SBO_Application.Company.GetDICompany
HTH,
Atul -
Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)
The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
Ernie -
Adobe After Effects CC 2014 Multi-machine rendering does not create RCF after Collect-File
This was working in the previous release. After going through all of the steps to perform a multi-machine render, not only does it say it is limiting it to 5 machines instead of the usual 99 (and I have over 100 cores on the render farm) but "Collect Files" (File/Dependencies/Collect Files) does not create the Render Control File (RCF) that kicks off the process on the other machines, like it did before and is supposed to do.
This release was supposed to fix the 32 core limitation on render nodes (my server has 48), but now does nothing at all.
Anyway, I assume there is a check box somewhere that says "do something" that hasn't been checked and another that says "Maybe my machine has more than 5 cores", and I would appreciate being steered in the direction of these new mis-features.
Just as background, the 48 core server does show the little TV screen that monitors the watch folder, and I know for a fact that process looks for the "RCF" file. Looking at the directory specified for "collect files", I can see that no RCF file is created, only 1 file, a report.txt file which contains this information is produced:
Report created:
7/9/2014 1:54:12 AM
Project name: highup.aep
Source files collected to:
P:\temp\highup folder
Source files collected: All
Collected comps:
Thomas Falke - High Again High On Emotion)
Number of collected files: 1
Size of collected files: 63.4 MB
Collected source files:
C:\Users\Jeff K\Videos\Down\2014-2015\Thomas Falke - High Again High On Emotion).mp4
Rendering plug-ins:
Classic 3D
Effects used: 1
Effect: Detail-preserving UpscaleThe dialog box has been slightly refactored. You must click "Allow watch folder rendering" and then all is good. Hope this helps anyone else. Thanks to Rafil at customer support chat for this.
-
Payment Wizard Does not create the File
Hi I am trying to run the payment wizard and in the final step it says it ran successful and create the outgoing payments but it does not create the payment file for the bank.
Step 1
Start a new Payment run
Step 2
payment type : out going
payment method : bank transfer
File Path : Go to Desktop and file name is test
Step3
Select the business partner
Step 4
Select the date range
Step 5
Select the payment method
Step 6
Select the Invoices
Step 7
Execute
It says successfully Executed the payment and create outgoing payment for the business partner.
But it does not create the payment file (test in the Desktop)
Please help me!!!
Thanks
SanjayaHi Sanjaya,
Check the link
Payment Wizard
Payment Wizard Run does not create Payment/Check
Payment Wizard/Engine - creation of Bank File
*Close the thread if issue solved.
Regards
Jambulingam.P -
MS Outlook 2010 Add in Create pdf - does not create pdf of draft emails- Adobe Acrobat Pro X
In MS Outlook 2010 Add in Create pdf- does not create pdf of draft emails- this maybe the case, but just wanted to make sure this is normal for the program- though I guess one can print as an Adobe pdf but it does not maintain the hyperlinks of email addresses etc. the functionality is compromised in a print vs create a pdf.
Here's a workaround by the team:
Right click on the message from Explorer list view or folder view and chose the option to convert to PDF. -
Need to create a sales order that does not create demand
Hi,
We need to create a no cost sales order - that does not create demand
In our current set-up when we try to create a no cost sales order with a material ( It Cat = Norm) we see demand being created in MD04
What configuration settings will allow us a deliverable order - that does not create demand (no MRP run?)
Thanks,
SMHello,
For this set of requirement i think the best option would be to configure a New Sales Order Type and a new Schedule Line Category. In VOV6, While you are defining a new Schedule line category in the transaction flow make sure to switch off the three check box.
Transfer of requirements / Begin assembly order from SD
Availability check for sales
Product allocation active
Then when we are assigning this newly defined Schedule line Category to Item category, make sure to leave the field of MRP Type as blank in VOV5.
Regards,
Sarthak -
Server does not create ois ?
Hi folks !
At first I wanted to send some Strings via the Client to the Server and print them onto the screen. On a specific String "antwort" I would like to send an Object k from the Server to the Client and prove on the Client the correctness of the object by reading the attribute set on the serverside before sending.
But somehow the server does not create the ObjectInputStreams and I don�t know why.
That�s the code:
// Server:
public class Server {
public Server() {
try{
String input = new String();
ServerSocket sock = new ServerSocket(16348);
Socket socket = sock.accept();
System.out.println("socket"); // this line is printed on connection
ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream());
System.out.println("objectinputstream"); // but this one never appears
ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
Kunde k = new Kunde();
k.setNummer(13);
while(!input.equals("Ende")){
input = sockin.readObject().toString();
if(input.equals("antwort")){
sockout.writeObject(k);
sockout.flush();
sockout.reset();
System.out.println(input);
socket.close();
catch(Exception e){
public static void main(String[] args) {
// TODO code application logic here
new Server();
// The Client
public class Client {
public Client() {
try{
Socket sock = new Socket("localhost",16348);
// System.out.println(sock.isOutputShutdown());
sock.setSoTimeout(5000);
System.out.println("socket hergestellt");
ObjectInputStream sockin = new ObjectInputStream(sock.getInputStream());
System.out.println("sockin");
ObjectOutputStream sockout = new ObjectOutputStream(sock.getOutputStream());
System.out.println("sockout");
String eing = "";
System.out.println("vor while");
while(!eing.equals("close")){
eing = erwarteEingabe();
System.out.println("Sende:"+eing);
if(eing.equals("antwort")){
sockout.writeObject(eing);
Kunde k = (Kunde)sockin.readObject();
System.out.println("Nummer des Kunden: "+k.getNr());
else{
sockout.writeObject(eing);
sockout.flush();
sockout.reset();
catch(Exception e){
System.out.println(e);
public static void main(String[] args) {
// TODO code application logic here
new Client();
private String erwarteEingabe(){
String eing = "";
System.out.println("nehme Eing entgegen");
try{
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
return b.readLine();
catch(Exception e){
System.out.println(e);
return "";
}When you create an ObjectInputStream it tries to read the object stream header from the underlaying stream. In this case both your server and client are waiting for the other one to send the header before they can continue. This problem can be avoided by simply creating the object output streams first:ObjectOutputStream sockout = new ObjectOutputStream(socket.getOutputStream());
ObjectInputStream sockin = new ObjectInputStream(socket.getInputStream()); -
Transport Screen objects-GUI status(SAP does not create request, why)?
Hi experts,
I use SE80 to change GUI status, but system does not create a transport request for me to transfer? why?Hi,
Thanks for replay. Actually, the SE80->program->Gui status have some objects and they are already transfered. But I can't see them on target system. But When I create exactly the same name, the system tell me they are already created. I think it becuase the original language is 'DE' but I use default language 'EN' to modify and create the request? -
The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
It is not possible to set any switches in JDev.
Previous versions of the translated did produce the .SER files.
Is there a workaround possible?
Thanks,
RobertFo the answer and a workaround look here:
Re: A field is missing in my table.....
-Robert -
The SQLJ translater that comes with JDeveloper 9.0.3 preview does not create profiles (.SER) when running with -codegen=ansi or iso. Thus producing none runnable code.
It is not possible to set any switches in JDev.
Previous versions of the translated did produce the .SER files.
Is there a workaround possible?
Thanks,
Robert
P.S.: I posted this also in the SQLJ forum.Robert,
My mistake - you are correct, the change I mentioned was put in just after the Preview Release. The .ser files will go into the project source directory in the Preview Release. But this should be the same behavior as in previous releases - are you seeing a difference in behavior between a past release and the Preview Release? Everything up to and including the 9.0.3 Preview Release should put the .ser files in the project source directory. When the 9.0.3 Production Release is available, they will be put into the project output directory instead.
The fix to put the .ser files into the output directory is not in the translator.jar file. It is in the core JDeveloper code (in jdev.jar). So unfortunately it is not a fix that could be easily dropped into the Preview Release. However, it will be available in the 9.0.3 Production Release.
-Matt Hawkins, JDeveloper Team
Maybe you are looking for
-
Error while loading the data from excel to database.
Hi, I am using PL/SQL developer to load the data from excel to database. I will set the data source in the control panel and will proceed through ODBC importer in pl/sql developer to import the data. What exactly the error is when i click the filenam
-
Syncing iPod Classic with iTunes on MacBook Air and QNAP NAS
Not sure what section this would sit under, but as it is primarily about getting my iTunes to work, I'll post it here, for now: For various reasons, I'm going to be switching most of my home computer usage from my PC to my Macbook Air (2010). I have
-
Adobe Download Assistant says to close Adobe Bridge CS.5
I am trying to download Adobe Flash and everytime it is about to start downloading, it stops and says to close Adobe Bridge CS.5 when the program isn't even open. How can I fix or remove this?
-
I have a Mac Book pro that I purchased August of 2011 running 10.7.3 and I can't find iDVD. Anyone else have this problem?
-
Data warehouse Admin Console - MySQL Physical Data Source
We have some tables on a MySQL database that we'd like to include in our ETL process. The data is to be loaded into our Oracle 11g R1 data warehouse after the transformations are completed. Everything works with the exception of adding a physical dat