4.0 generation of DDL EA3 lost trigger code formatting


Hello

I'm using DM 4.0.0.825.

In the physical model of a table, I added a plsql code in the body of the trigger. The code has been formatted. When you generate the DDL of the table using the DOF preview, the formatting is partially missing.

Example in trigger's body:

Start

/*

|| Trigger is activated?

*/

If cb_trigger_is_enabled ('CBS' $$ plsql_unit)

then

If: new.content_clob is not null

then

If sf_ctr_chk_html_ok(:new.content_clob) = ' don't

then

raise_application_error (-20000, 'CBS-00208 #1' |: new.pide_id |) '#2' || (: new.csrt_id);

end if;

end if;

end if;

end;

Occur in the DOF Preview:

CREATE OR REPLACE TRIGGER CNTT_BIR BEFORE

INSERT THE CONTENT FOR EACH START OF LINE

/*

|| Trigger is activated?

*/

IF cb_trigger_is_enabled ('CBS' $$ plsql_unit) SO if: new.content_clob IS NOT NULL THEN if sf_ctr_chk_html_ok(:new.content_clob) = ' only THEN raise_application_error ("-20000, ' CBS-00208 #1")

|| : new.pide_id

|| « #2 »

|| (: new.csrt_id);

END IF;

END IF;

END IF;

END;

The plsql formatting should be preserved.

Joop

Hi Joop,

This is because the SQL Developer trainer has reformatted the statement.

If you unset using SQL Developer trainer option in the preferences of Modeler/DDL Data your formatting must be preserved.

David

Tags: Database

Similar Questions

  • Bad generation of DDL for indexes primary key partitioned - lost partitions

    Hello

    In our design of the database, we want to divide some tables and their indexes. The partition type is hash indexes must be local, also divided No problem affecting storage of the table partitions. Also no aucun probleme problem with the index partitions, not included the primary key.

    Our problem appears in the generation of DDL: partitions of tables and indexes are generated fine except the primary partitions it shows key - phrase-'alter table' primary key as if it was not partitioned.

    Apparently indexes primary keys must be generated as the other indices, is it not?

    Thanks in advance,

    Bernat Fabregat

    Published by: Berni 11/29/2010 12:37

    Hello Bernat,

    for local partitioning, you need to create indexes separated on column PK (if you do not already). Set partitioning for this index, and then in the dialog box for the primary key in the physical model:
    (1) in the 'Général' tab, clause "with the help of the index' - select 'by the name of the index.
    (2) in tab 'using Index' - 'Existing Index' drop-down list box - select defined index.

    Global partitioning can be created directly on the primary key in the physical model.

    Philippe

  • How to specify a script of overall pre for all generations of ddl

    Hello world

    I use SQL Developer Modeler data to generate both create and modify ddl scripts.

    These scripts can be quite long, if several objects are affected.

    When I run these scripts, because they are generated, I might lack of errors produced, as the

    These scripts execution simply continues to the next step.

    So what I do, is add "when sqlerror exit rollback" manually at the beginning of the script.

    I know, it is possible to specify a script for an object (e.g. table) before.

    What will answer me, because is an option to specify such a 'global' Pre script, which is automatically added to the

    the start of any product create or modify the script.

    Is there a way to do this?

    Kind regards

    J.P..

    Hi JP,

    There is no support for global Pre script.

    end your problem - you can define that behavior in your execution environment depending on how you run generated DDL, or you can try the generation 'Advanced DDL' option - it you can also set errors to be ignored and more options for unloading data to the filesystem if the table is re-created.

    Philippe

  • I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    Sorry, but the restriction password cannot be reset, it is part of the backup and restore a backup that was taken after the restrictions were activated, restore this code again.

    You will have to start without the help of the data backup, configure the phone to factory settings and start over. Follow the steps mentioned in this article:

    Use iTunes to restore your device to factory settings - Support Apple iOS

    If you lose or forget your password restriction, you must erase your device and then put it up as a new device to remove the restriction password. Restore the device by using a backup does not delete the access code.

    copied from: Sur les Restrictions (parental control) on iPhone, iPad and iPod touch - Apple Support

  • the value of overflow from the stage of the trigger code

    Cannot find out how to change the value of the trigger code overflow. I can't read yet.


    Alert (sym.getComposition () .getStage (). CSS ("overflow"));

    No code of the trigger after the above line will run. Lines before running.

    By using this link as a reference, I thought that I could do:

    sym.getComposition () .getStage () .css ("overflow", "visible");


    I tried to use an intermediate variable. No dice. Any ideas?

    Use like this:

    sym.getComposition () .getStage (). getSymbolElement().css ("overflow", "visible");

    HTH,

    Vivekuma

  • SQLDeveloper 3.2 - I can't see trigger code

    Hi people

    In some cases, I can't see the trigger code.
    I did find a model to determine what type of trigger is an invisible code.
    For example, in my case, I can't see code of SCOTT. Trigger AFTER_INS_UPD_ON_EMP, but I see the tab of SQL for SCOTT. EMP table.
    I had to copy from there and recreate the trigger. Is now visible

    I work with EBS R12, and follows a list of some triggers to this problem:
    AR_RECEIVABLE_APPLICATIONS_BRI
    AS_JTF_RS_GROUP_MEM_BI
    FND_FLEX_VAL_RULE_LINES_T1
    FND_FLEX_VALIDATION_RULES_T1
    FND_SECURITY_GROUPS_IL
    HR_LOCATIONS_ALL_OVN
    PAY_TEMPLATE_EXCLUSION_RUL_WHO
    PER_ALL_PEOPLE_F_OVN
    PER_PERSON_ANALYSES_OVN
    PER_PSV_OVN
    WIP_DISCRETE_JOBS_BRD

    My Info:
    Developer SQL 3.2.09.30
    Oracle Database 10 g Enterprise Edition Release 10.2.0.4.0 - 64 bit

    Thank you
    Oscar

    Hi Oscar,.

    Perhaps your problem may be the same as this bug fixed and connected very recently:
    Bug 14530780 - TRIGGERCODE of ANOTHER SCHEMA NOT VISIBLE IN THE BROWSER, HOWEVER SEARCHABLE IN SQLWORK

    But the story of bug never pretends it's a regression, so presumably that also it would have been a problem in previous versions.

    Kind regards
    Gary

  • Trigger code of the report to the data model

    Hi all

    I inserted a report trigger in a data model and created the desired in my database function. Everything works as expected.

    My question is, is it possible to write trigger report within the data model? Given the choice, I'd rather have the trigger code integrated within the data model itself rather than in a separate package.

    I have found no examples of this, but I just wanted to confirm that it is impossible.

    Thank you.

    Published by: jasonr on May 17, 2011 07:39

    No,

    The code must be executed by the trigger will be a PL/SQL package, and he resides in DB only.

  • Generation of DDL works do not, after restart Open-Petite not found

    I'm STROKE again by misfortune and hoping to get aid.

    by: Oracle SQL Data model; 3.1.1.703 in 64 Bit version

    First matrix DDL are not generated. Same situation as in Re: DDL generation does not.

    I close SDM and reopen it, most of the menus have disappeared. According to another post SQLDeveloper Data Modeler corrupted - no option to open a design , it can help to remove all the files in the file system < version number >.

    But
    1. I didn't wan't to delete all these files. Obviously SDM Store there preferences, etc., he don't want to waste all that time each this bug hits (see 2)
    2. as this seems to be a very common error - happens to me the third time, each time in a row that I use SDM - it should be, are a more specific solution for this error.

    If this file is exactly causing the error with the missing FILE > OPEN MENU and everything what another menu corruption?

    Here I give you all the content in the path:

    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\content.txt
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\.issplash
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.datamodeler
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.audit.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.ceditor.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.db.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.diffmerge.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.gallery.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.help.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.importexport.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.indexing.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.inspector.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.log.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.navigator.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.peek.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.persistence.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.quickdiff.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.replace.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.runner.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.vfs.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.vhv.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.webbrowser.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ideimpl.apple.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ideimpl.indexing-migrator.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.javacore.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.db.connection.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.history.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.vcs.11.1.1.4.37.59.48
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\oracle.javatools.cache
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.datamodeler\ide.properties
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.datamodeler\preferences.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.datamodeler\product-preferences.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48\.oracle_javatools_msgdlg.properties
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48\dtcache.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48\Editing.layout
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48\settings.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.ide.11.1.1.4.37.59.48\windowinglayout.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\auth
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\config
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\preferences.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\README.txt
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\repositories.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\servers
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\vcs.log
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\auth\svn.simple
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.subversion.11.1.1.4.37.59.48\auth\svn.simple\154365ece4d08699db0df8ef0c7235ea
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\o.jdeveloper.vcs.11.1.1.4.37.59.48\preferences.xml
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\oracle.javatools.cache\00000000
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\oracle.javatools.cache\00000000\00000000.jdb
    C:\Users\thisUser\AppData\Roaming\Oracle SQL Developer data Modeler\system3.1.1.703\oracle.javatools.cache\00000000\je.lck


    Thank you

    Edited by: LPNO on 24.05.2012 12:58

    So I guess that
    * Use when not TORTOISE SVN to work with SDM intergrated SDM - SVM tool

    No problem to use it if it is in the same SVN version 1.6 of the customer. If you want to do it using other tools, then follow Re: cannot use directory already versioned
    Otherwise, we recommend Data Modeler to be used for the validation, update and merge operations. Particularly early stages for the design to enter the version control repository.

    * Must not order a TRUNK in a no working directory blank.

    The best scenario is to have 'types of system data' directory and the design itself in separate directories in the repository or in separate directories in the local file system. For local files:
    -C:\tmp\21\system_data_types - here are types.xml, defaultRDBMSSites.xml, defaultdomains.xml, dr_custom_scripts.xml
    -C:\tmp\21\FICO_Model - here you can save design - FICO_Model_V20.dmd file and directory of design FICO_Model_V20

    Philippe

  • Reconfiguration of alarm / lost trigger

    Hello everyone!

    I use the reconfigureAlarm method of the object of the alarm to remove the Action of my definition of the alarm.

    There is no problem, when I used to set my alarm

    but when I use it with a blank action parameter, the reconfiguration work but lose all the relaxation and become no longer editable manually (with the vSphere client)

    Someone at - it an idea on how I can disable alert with PowerCLI without losing these triggers?

    And can anyone help me to reset my definition of the default alarm, because it is impossible to manually reconfigure as these trigger does not seem to exist in the vSphere client.

    (for example, in order to recreate the alarm 'Output sleep error', on the hosts, how can I get the relaxing "Cannot leave the sleep mode"?)

    Thank you very much for your help

    You must specify the EventType property in both expressions as well.

    And the objectType needs to be managed.

    The Status property is not required for this type of trigger.

    Try it like this

    $expression1 = New-Object VMware.Vim.EventAlarmExpression
    $expression1.EventType = "ExitStandbyModeFailedEvent"
    $expression1.eventTypeId = "vim.event.ExitStandbyModeFailedEvent"
    $expression1.objectType = "HostSystem"
    $expression1.status = $null
    
    $expression2 = New-Object VMware.Vim.EventAlarmExpression
    $expression2.EventType = "DrsExitStandbyModeFailedEvent"
    $expression2.eventTypeId = "vim.event.DrsExitStandbyModeFailedEvent"
    $expression2.objectType = "HostSystem"
    $expression2.status = $null
    
    $alarm.expression = New-Object VMware.Vim.OrAlarmExpression
    $alarm.expression.expression += $expression1
    $alarm.expression.expression += $expression2
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Generation of DDL dimension

    When generating the DDL for a dimension of attribute Clauses are repeated. For example:

    ATTRIBUTE city LEVEL city DETERMINES
    CITY_NAME_STR
    State LEVEL ATTRIBUTE DETERMINES the State
    STATE_NAME_STR
    Country LEVEL DETERMINED ATTRIBUTE
    COUNTRY_NAME_STR
    ATTRIBUTE LEVEL County DETERMINES
    COUNTY_NAME_STR
    State LEVEL ATTRIBUTE DETERMINES the State
    STATE_NAME_STR

    Hi DW,.

    Thanks for your comments. I was able to reproduce after dimensional model to model physical Oracle engineering. Problem appears where there is more then a dimension set hierarchy.
    I logged a bug for this.

    Philippe

  • SQL datamodeler: generation of DDL

    Hello
    Can someone explain the difference between the interactive DOF, advanced and advanced CL DDL?
    best regards Erik

    Erik,

    they should do the same job, the gap is explained at the beginning of scripts (see below) - interactive c. command line parameters. The second option is oriented to be run by other tools.

    Best regards
    Philippe

    -The advanced ODM of script with the support of
    -interactive (SQL/Plus or SQLDeveloper)
    -settings of the input parameters for:
    -starting stage, off stage, log file and the level of logging (1,2 or 3)

    =========================

    -The advanced ODM of script with the support of
    -the command line (SQL/Plus only)
    -settings of the input parameters for:
    -starting stage, off stage, log file and the level of logging (1,2 or 3)

    -The script can be executed as follows (all parameters are mandatory):
    --
    -sqlplus user/passw@name @script_name start_step stop_st log_file log_level
    --
    -Examples:
    --
    -sqlplus scott/tiger@orcl @e:\adv_script.sql 0 e:\adv_script.log 0 2
    --

  • My market has lost its CSS formatting! How can I get this back/install the new market?

    Hello

    in recent weeks, when I start the Firefox Os market, I see an HTML formatted without any layout. Somehow, I lost the page layout information. How can I get it back? The first idea was reinstalled on the market. But this isn't an app on the market...

    Please help me. using the market without layout may not be used for long periods.
    Other applications all work correctly. The market had a layout, when I bought the smartphone (ZTE C open).

    concerning
    AK

    Hi page,.

    I understand you are having problems viewing the content on Firefox market, and that the CSS formatting seems to be missing.

    Can you please attach a screenshot of what you feel?

    What happens when you try to access the market via the browser, clicking on [marketplace.firefox.com]?

    We can't wait to hear back on your part.

    Thank you

    -Ralph

  • Lost key Code

    I have 2 copies of XP Professional and I lost the container that was on both key code. I bought these, and they were on my machines at the same time. I have one using Vista and windows 7 now.

    I want to install the XP systems on a couple of old computer, but do not have the codes. How can I get these codes for these 2 CD?

    Except for the above work for you, you can try to communicate directly with Microsoft, if you indeed save the software. If you can find a proof of purchase, you can use here to get a new one:

    http://support.Microsoft.com/kb/326246/en-GB

  • Lost network Code

    I have a WRT54G version 6.  I'm trying to get a new computer connected to the network and I lost my network code.  Everything I read says I need to get the original computer I used to set up the network, open the network control application and then go to 192.168.1.1.  I did this original computer more and can't find any 'network control app' of any kind.

    How can I get connected?

    Thanks in advance for your help.

    Rick

    Since you are finally in the routers administration pages I bet that you have not clicked on each tab to see what information is there.

    Try here for your wireless settings...

  • BlackBerry - lost password code signing

    Could someone recover password lost for the signatory to the code? The PDF provides links to a support email where nobody has the faintest idea how to do that?

    No chance, someone of you found any help on the site of bb or service customer? It has been a month since I've been chasing these people for one simple password reset question.

    This is an old thread... but since it's one of the first results in a Google search, I wanted to bring an answer here.

    It is not possible to recover your password for BlackBerry Code signing keys.  However, you can choose a new if you reinstall your keys.  The first thing you need to do is to order a new set of keys (free) using the form below.

    https://www.BlackBerry.com/SignedKeys/

    Before installing your keys, find and delete the files below that will be present in the various BlackBerry development tools installation directories (location varies by tool).

    sigtool.DB

    sigtool. CSK

    sigtool. Set

    You will now be able to install your new CSI files and choose a new password.

Maybe you are looking for

  • How to make the tank table in the array of integers

    Hello If I give the input array unsigned char as a [] = {12, 45, 89, 00, 45, 12, 67, 12}; I want to exit as follows in the table int unsined [b] = {12458900, 45126712}; Thanks in advance, Kind regards Harish. G.

  • No sliding bar

    Dear, all the I 'get control topane"and after that, the scroll bars Horizontal and Vertical disappeared. I can't get these bars. Someone help me get the bars? Thank you.

  • DeskJet 1510 work not as a shared printer

    Just install a new DJ 1510 in PC WINXP successfully. It can print normally. I shared the printer to the network, an other PC WINXP connected printer. I have the page a test page for the client computer, but nothing happens in the printer. I checked t

  • Laser Jet Pro 200 color MFP m2: yet another scan inaccessible victom!

    Like many people here, my HP Lj200 M276 Scan software decided to stop working. I have installed and reinstalled the software, running printing HP Scan doctor, arrested and and started WIA and practically everything else except the reinstallation of t

  • Impossible to send the output of the supplier portal

    Hello I'vfe tried to present my new version, but see only 'Edit' on the project output option in versions. Then I looked in the history of the changes and see a great other bugs of BlackBerry. Why should I spend hours to find why I could not not to s