CF do not return the correct results

I have a column that has positive and negative numbers and I'm trying to separate these numbers in a separate column for each. "My code below works if each barcode has both a positive and negative number to compare, but mistakes lifted as"cannot convert"numerical value" if I just all the positive numbers in the colum. Which, in some casees, I get because I import a CSV file. Can someone help with the code? -Thank you.

<! - SUM POSITVE AMOUNT - >
< cfquery name = "SumPositiveTemp" datasource = "inventory" >
SELECT the barcode, Sum (Quantity) as quantitysumPositive
TEMP
WHERE quantity > 0
GROUP BY barcode
< / cfquery >

<!--> SUM QUANTITY NEGATIVE
< cfquery name = "SumNegativeTemp" datasource = "inventory" >
SELECT the barcode, Sum (Quantity) as quantitysumNegative
TEMP
WHERE quantity < 0
GROUP BY barcode
< / cfquery >

<!-SUBTRACT QUANTITY ISSUED LESS QUANTITY RECEIVED IN QUANTITY SOLD-> GET
< cfset QuanitySold = ' #SumPositiveTemp.quantitysumPositve - SumNegativeTempquantitysumNegative #' >

<! - INSERT POSITVIE/NEGATIVE NUMBERS INTO TABLE - >
< cfoutput query = "SumPositiveTemp" >
< cfquery name = "InsertPositiveIntoCart" datasource = "inventory" >
INSERT INTO Cart1 (barcode, QuantityOut, QuantityIn, QuantitySold)
VALUES (#SumPositiveTemp.barcode #, #SumPositiveTemp.quantitysumPositive #, #SumNegativeTemp.quantitysumNegative #, #QuantitySold #)
< / cfquery >
< / cfoutput >

Yes, I found that if the barcode was not POS and NEG numbers it returns a null value. After more research, I found that was the solution to avoid a null value and use in this situation.

Tags: ColdFusion

Similar Questions

  • % ROWCOUNT SQL does not return the expected result

    I have the following function within a package:

    --Update APPERY_JTI_deleted_USERS table:
    FUNCTION fn_updt_app_jti_dlt_usr(
        p_update_co      IN VARCHAR2,
        p_appery_user_id IN APPERY_JTI_deleted_USERS.appery_user_id%TYPE,
        p_outlet_code    IN APPERY_JTI_deleted_USERS.outlet_code%TYPE)
      RETURN NUMBER
    AS
    lv_sql       VARCHAR2(4000);
    lv_rowcount  NUMBER := 0;
    BEGIN
    
    lv_sql := 'UPDATE APPERY_JTI_deleted_USERS SET '||p_update_co||' = 1 WHERE '||p_update_co||' = 0 AND OUTLET_CODE = '''||p_outlet_code||''' AND APPERY_USER_ID = '''||p_appery_user_id||'''';
    
    --EXECUTE IMMEDIATE lv_sql;
    EXECUTE IMMEDIATE 'BEGIN ' || lv_sql || '; :z := sql%rowcount; END; ' USING OUT lv_rowcount ;
    
    RETURN lv_rowcount;
      
    EXCEPTION
    WHEN OTHERS THEN
      RETURN -1;  
    END fn_updt_app_jti_dlt_usr;
    
    

    The function called several times as part of a job. Basically, the main function (Say M), call a few functions (for example A1... A9). Each of these functions is to do something and updated the application using the above function. Therefore, each of the nine functions will call the above function with different parameters.

    The problem that I am facing is:

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same. I'm really confused, what Miss me here.

    I don't know if this is relevant. But for what it's worth, invoking the function above updates the SAME lines in the table appery_jti_deleted_users that the columns are different. So for all the work, the same lines need to be updated. Each function (A1... A9) will call the above function to update a different column of these lines.

    If you REALLY want to help you having US SHOW, not tell us:

    1. WHAT you do

    2. HOW to

    3. WHAT results you get

    4. WHAT results you expect to get

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    Perhaps that the foregoing is true and maybe he's not. We have NO WAY of knowing because you don't SHOW US anything.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same.

    Yet once you showed us NOTHING >

    You do NOT FOLLOW best practices when you use dynamic sql statements: the sql statement real so that you can print:

    1 SEE what's running - make sure there are no syntax errors, and it seems to be what you wanted

    2 EXECUTE/TEST manually - to see if he really runs without error and see what results it really give.

    3. FIX any syntax or other problems and retest it

    Instrument properly your code and you won't have the problems you are having.

    You should know by now what are the parameters are transmitted when you run the function. So, there are at least three sets of these parameters.

    So you should be able to:

    1 run the instrumented manually function three times

    2. see that all three SQL statements are

    3 manually run these instructions

    4. see that the number of lines is after each execution

    We have no idea of what the output of the function is every time you call it. Apparently, you have, if you save the results of the function somewhere, but you didn't post any of this info.

    We need real details to help you - just listen to your story is not enough.

  • When prefWidth() and prefHeight() return the correct results

    The functions Node.prefWidth () and Node.prefHeight () return 0 after a node is created (for example after the new Button("xyz"). - then "suddenly" (for example when being positioned in layoutChildren() of a component) they return correct return values.)

    That is the trigger to make the knots return a correct result of prefWidth/prefHeight? Is there a way to directly get the correct prefWidth/prefHeight just after creating an instance of the component?

    Thanks for any indication on that!



    A few examples: an extension component for the simple layoutChildren() method in which the three buttons are added. The prefWidth/prefHeight is output to the console:
    public class Test_39_PrefWidth extends Application
    {
        public static void main(String[] args) { launch(args); }
    
        class MyPane extends Pane
        {
            protected void layoutChildren()
            {
                double y = 0;
                sysoutNodePrefSizes("----- doing the layout");
                for (Node child: getChildren())
                {
                    double childWidth = child.prefWidth(-1);
                    double childHeight = child.prefHeight(-1);
                    child.resizeRelocate(0,y,childWidth,childHeight);
                    y = y + childHeight;
                }
            }
        }
        
        MyPane m_pane;
        
        public void start(Stage primaryStage)
        {
            final Scene scene = SceneBuilder.create()
                 .root
                 (
                     m_pane = new MyPane()
                 )
                 .build();
            for (int i=0; i<3; i++)
            {
                Button b = new Button("Hello " + i);
                m_pane.getChildren().add(b);
            }
            sysoutNodePrefSizes("------ having created and added the buttons");
            primaryStage.setScene(scene);
            sysoutNodePrefSizes("------ having assigned the scene");
            primaryStage.show();
            sysoutNodePrefSizes("------ having called stage.show");
        }
        
        private void sysoutNodePrefSizes(String title)
        {
            System.out.println(title);
            for (Node child: m_pane.getChildren())
                System.out.println(child.prefWidth(-1) +  "/" + child.prefHeight(-1));
        }
    }
    The result in the console is:
    -have created and added the buttons
    0.0/0.0
    0.0/0.0
    0.0/0.0
    -have assigned to the scene
    0.0/0.0
    0.0/0.0
    0.0/0.0
    -do the page layout
    58.0/20.9609375
    58.0/20.9609375
    58.0/20.9609375
    -calling stage.show
    58.0/20.9609375
    58.0/20.9609375
    58.0/20.9609375
    -do the page layout
    58.0/20.9609375
    58.0/20.9609375
    58.0/20.9609375

    Published by: user10257069 on 09.11.2012 00:48 - reformatted the code...

    user10257069 wrote:

    That is the trigger to make the knots return a correct result of prefWidth/prefHeight? Is there a way to directly get the correct prefWidth/prefHeight just after creating an instance of the component?

    The size of a knot is not known, until it has been laid out. It is not arranged until after it has been added to the scene. Setting in page happens during a pulse, so you add the node to the stage and then is placed on the next pulse.

    Because a node could be affected by a CSS style and the styles that apply to a dependent node when the node is in the graphic scene, it is not possible to get prefWidth/prefHeight without adding the node to the graphic scene. This is a problem and there must be a method 'size this node as if it was added to that parent in the scene graph', but it is not one now.

  • Oracle text index does not return the expected results.

    Hello

    My project requires a generic search on 5 different columns and all the VARCHAR2 data type.
    As performance is very slow with AS % search, I try to use for the multi_column_datastore that is recommended for this.

    Here's what I did.

    1 - Create table.
    CREATE TABLE BILLING_SCHEMA.NAMES_TABLE ( 
        ID                  NUMBER(9,0) NOT NULL,
        ENTITY_NUMBER         VARCHAR2(30) NOT NULL,
        GIVEN_NAMES         VARCHAR2(50) NULL,
        SURNAME             VARCHAR2(30) NULL,
        ORGANISATION_NAME     VARCHAR2(60) NULL,
        DISPLAY_NAME        VARCHAR2(100) NULL 
        )
    /
    
     
    My search must be made on the columns ENTITY_NUMBER, GIVEN_NAMES, surname, ORGANISATION_NAME and DISPLAY_NAME.

    2. - insert values into the table
    INSERT INTO NAMES_TABLE VALUES(1, 'GH', NULL, NULL, NULL, 'GROUP OF HOSPITAL')
    /
    INSERT INTO NAMES_TABLE VALUES(2, 'DH', NULL, NULL, NULL, 'DEPARTMENT OF HEALTH')
    /
    INSERT INTO NAMES_TABLE VALUES(3, 'REC', NULL, NULL, NULL, 'DEBTOR FOR RECEIPTS')
    /
    INSERT INTO NAMES_TABLE VALUES(4, 'UN_REC', NULL, NULL, NULL, 'DEBTOR FOR UNMATCHED RECEIPTS')
    /
    INSERT INTO NAMES_TABLE VALUES(5, 'SAM_FUND', NULL, NULL, NULL, 'THE S FUND')
    /
    
     
    3 - create context multi_column_datastore index
    BEGIN
    CTX_DDL.CREATE_PREFERENCE('NAMES_TABLE_MULTI', 'MULTI_COLUMN_DATASTORE');
    CTX_DDL.SET_ATTRIBUTE('NAMES_TABLE_MULTI', 'COLUMNS', 'ENTITY_NUMBER, GIVEN_NAMES, SURNAME, ORGANISATION_NAME, DISPLAY_NAME');
    END;
    
    CREATE INDEX NAMES_TABLE_IDX
    ON NAMES_TABLE(ENTITY_NUMBER)
    INDEXTYPE IS   CTXSYS.CONTEXT
    PARAMETERS ('DATASTORE NAMES_TABLE_MULTI')
    
     
    4 - create the trigger that should update the column ENTITY_NUMBER if everything is inserted/updated
    CREATE OR REPLACE TRIGGER NAMES_TABLE_TRIGGER
    BEFORE INSERT OR UPDATE OF GIVEN_NAMES, SURNAME, ORGANISATION_NAME, DISPLAY_NAME  ON NAMES_TABLE
    FOR EACH ROW
    BEGIN
      :NEW.ENTITY_NUMBER := :NEW.ENTITY_NUMBER;
    END
     
    5. the search query
    SELECT *
    FROM NAMES_TABLE
    WHERE  CONTAINS(ENTITY_NUMBER,'%TH%') > 0
     
    I am so very confused here because the result returned is only
    ID     ENTITY_NUMBER     GIVEN_NAMES     SURNAME     ORGANISATION_NAME     DISPLAY_NAME         
     2      DH                  (null)        (null)         (null)          DEPARTMENT OF HEALTH 
     
    When I wait for him that the 5th inserted record is returned too as it contains "THE S FUND" that begins with "TH".

    When I use the search string '% %' and %, no results are returned, although I expect at least two records in each case.

    I would appreciate help with this.

    Thanks in advance,
    Marilyn

    Published by: user5615580 on 08/03/2011 21:35

    Published by: user5615580 on 08/04/2011 16:33
  • OraDynaSet not returning the correct number of records.

    Hello everyone, I write the VB code in Excel 2007 and recovery of Oracle 9i data records. When I launch my application of TOAD or any other sql application I get 56 records returned for some queries. However, when I do from VB in excel and write the values to the excel file, it is not the 3 latest reviews, suggestions? Here's the part of my code:

    Worksheets ("Report"). Range ("a3"). Value = «»
    Worksheets ("Report"). Range ("B3"). Value = 'period '.
    Worksheets ("Report"). Range ("C3"). Value = 'Budget '.
    Worksheets ("Report"). Range ("D3"). Value = "projected."

    strSQL = "select GroupName, period_name, budget_value, budget_value nlas_bdgt_loading_stg project where to plant =" & plant & "and group_number = 1 order by group_number, period_num.

    Set OraDynaSet = objDataBase.DBCreateDynaset (strSQL, 0 &)

    If OraDynaSet.RecordCount > 0 Then

    OraDynaSet.MoveFirst
    "The recordset for the rows returned in a loop
    For i = 4-OraDynaSet.RecordCount
    ' Put the results in columns
    ActiveSheet.Cells (i, 1) = OraDynaSet.Fields (0). Value
    ActiveSheet.Cells (i, 2) = OraDynaSet.Fields (1). Value
    ActiveSheet.Cells (i, 3) is OraDynaSet.Fields (2). Value
    ActiveSheet.Cells (i, 4) = OraDynaSet.Fields (3). Value
    OraDynaSet.MoveNext
    Next I
    End If

    Thank you
    Chris

    Hello.

    For i = 4-OraDynaSet.RecordCount

    I believe that you start on the fourth record...

    Octavio

  • Function does not return the correct value

    Hi, I'm having a strange problem and hope someone knows how to solve this problem...

    I try to send a string to a function in another class and do return to a textfield, so I can add it to a movieclip and on the stage. I use it for several buttons. The problem is when I put that a string in it value returns a string for the previous call to the function that is not the string value that I want to use. Here's the function:

    public void replaceMCTxt (mcString:String, xPos:Number,

    yPos:Number, rolloverText:Boolean, newFontSize:uint, height: uint, width: uint = false): {TextField

    var newMCTxt:TextField = new TextField();

    newMCTxt.x = xPos;

    newMCTxt.y = yPos;

    newMCTxt.width = width;

    newMCTxt.height = Height;

    var textFormat:TextFormat = new TextFormat();

    textFormat.align = _gameModel.screenFontAlign;

    textFormat.size = newFontSize;

    textFormat.font = _gameModel.screenFont;

    textFormat.color = _gameModel.screenFontColor;

    newMCTxt.defaultTextFormat = textFormat;

    newMCTxt.text = _languageClass.getTranslation (mcString);

    newMCTxt.selectable = false;

    Return newMCTxt;

    }

    I try to call with this statement in another class:

    _moreGamesTxtField = _updateLanguageClass.

    ("MORE GAMES", _gameModel.moreGamesTxtXPos, replaceMCTxt

    _gameModel.moreGamesTxtYPos, _gameModel.moreGamesTxtWidth,

    (_gameModel.moreGamesTxtHeight, _gameModel.moreGamesTxtFontSize);

    Instead of giving me a movieclip "MORE GAMES", it gives me a 'PLAY' movieclip, which is what the previous call to the function used. I also had a similar problem in another function where he did the same thing with filtering of different buttons, so I think the problem is in the service, but I'm not programmer to know that it's good enough. If anyone has an idea please let me know. Thank you...

    Start the survey using the trace() function to see what value is passed to and returned by some _languageClass.getTranslation ().

  • query with outer join not dispalying the correct results

    Hi all

    I have a table that has a column called State it may be null or has the code that comes from the research b.When I use this query
    Select a b.menaing
    where a.status = b'lookup_code (+)
    AND b.lookup_type = 'MTH_BUSINESS_FUNCTION'
    AND b.LANGUAGE = USERENV ('LANG')

    so I don't understand the lines of table a, where the status is null

    and if I use the condition:
    Select a b.menaing
    where ((a.status IS NULL) OR)
    (a.status = b.lookup_code
    AND b.lookup_type = 'MTH_BUSINESS_FUNCTION'
    AND b.LANGUAGE = USERENV ('LANG')))

    Then, I get a lot of additional lines. You can soemone please tell me hwo to do (my query should display the menaing if the status column is empty, then it must show empty if not after to join the lookup table, it should show some sense)

    I don't get the rows in the table a, where the status is null

    You must outerjoin each predicate referencing table b.:

    select  b.menaing
      from  a,b
      where a.status=b.lookup_code(+)
        AND b.lookup_type(+)='MTH_BUSINESS_FUNCTION'
        AND b.LANGUAGE(+) = USERENV('LANG')
    /
    

    Or use:

    select  b.menaing
      from  a left join b
        on  a.status=b.lookup_code(+)
        and b.lookup_type='MTH_BUSINESS_FUNCTION'
        and b.LANGUAGE = USERENV('LANG')
    /
    

    SY.

  • printer Lexmark Pro 200. Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Printer Lexmark Pro 200.  Does not print the correct colors. I restarted my computer and the printer is off but get the same result.

    Hello

    • What were the changes made before the problem occurred?

    You try to run this fix and check.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    If above does not work, try contacting Lexmark support for assistance.

    http://www1.Lexmark.com/en_US/global-services/customer-support-services/index.shtml

  • GetDeviceCaps does not give the correct pixel factor in windows 7.

    GetDeviceCaps does not give the correct pixel factor in windows 7, if I use 96 dpi settings means it gives the pixel as 1 factor and if I user the 120 dpi settings means that he must give the factor 1.25 pixel, in windows xp, I had good factor with GetDeviceCaps but in window7, it returns 1 instead of 1.25 pixel factor can someone help me with this problem

    ScreenDPI.x = GetDeviceCaps (ScreenDC, LOGPIXELSX);
    float PixelX = (float) ScreenDPI.x/96;

    Hello

    I would like you to post your question in the TechNet forum.

    http://social.technet.Microsoft.com/forums/en-us/w7itproui/threads

    I hope this helps.

  • MobileMe will not let me that post us because that seems to me not having the correct password which I thought to be the same pw for iCloud, but not so much.  How can I me Mail online?

    Product name: MobileMe

    Computer: iMac system 10.7.5 Lion

    Story: My drive hard Snow Leopard is dead, but have an external drive on which I have installed Lion, then Mail began requiring a MobileMe password that I do not have.  MobileMe won't let me use Mail because I do not have the correct password which I thought to be the same pw for iCloud, but not so.  How can I me Mail online?

    MobileMe was discontinued on June 30, 2012.  There is no more MobileMe e-mail.  Go to the preferences panel accounts Mail and remove any MobileMe account which is there.  That should get rid of these messages.

  • I am trying to install a D-Link router, but it will not designate the correct IP address.

    Im trying to install a d-link router and it will not get the correct ip address. I then tested on my roommates with a newer version of windows laptop and the router has worked. d-link technology says I may new new setting lan drivers installed for this problem. help someone?

    original title: router problems

    Make sure that this adapter you set obtain IP and DNS addresses automatically.  Go to your network connections and right click on your internet connection and select 'Properties', then click on (highlighted) Protocol Internet (TCP/IP) and then click on the properties button and make sure that the IP address and DNS are both set to obtain automatically addresses.

    Go to the Services management console (type services.msc in the box run from the start menu) and make sure that the DHCP Client service is set to automatic startup.  Restart the computer and see if things improve.

    John

  • Rules are configured to my e-mail go to a certain folder, but it is not in the correct folder.

    original title: send rules

    I know exactly how to set up the rules for my email destinations.  Why will they not in the correct folders?

    I come back and check again until the last letter/number shipper address, etc... and they're always in the
    bad record.
    I use Windows Mail.  I can't find any option as shown above.

    This is a screenshot of Vista's Windows Mail message rules. Look in box 2.

  • Windows Media Center EPG does not have the correct data

    Windows Media Center EPG on my computer is so ugly!

    Description is separated in two, and it's always the last part that displays first, so you'll have to roll down to the bottom to read the description.

    The series is difficult to use, because the series 1) is not always marked as series (so you can select 'plain' Record), and 2) the title contains often series of numbering (e.g. "the bodyguards (1:6)"), so even if it is marked as a series, it will record ever "Guards body (2:6)" or other titles (the Media Center will just try to record any episode of "Bodyguards (1:6)").

    It is the broadcaster who create * data, and then displays in Media Center via Broadcasting Dataservices Ltd., or who are the last to blame?

    What is MS Media Center that does not have the correct data?

    I am in Denmark, if this has an impact on the response.

    Thank you and best regards!

    Hello

    Thank you for your response. I appreciate your time.

    I suggest you to post your query on our MSDN Forums, as this issue should be better there.

    Please refer to the reference to the link below to send your request:

    http://social.msdn.Microsoft.com/forums/en-us/home

    Hope this information helps.

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • Why "bgp bestpath missing-as-worst med" command does not produce the desired result?

    Can dear all, someone tell me why "bgp bestpath missing-as-worst med" command does not produce the desired result?
    And I use GNS3 to this practice, the IOS Version: 12.4 (3)
    TKS...

    Back to the beginning:
    192.168.23.0/24 192.168.12.0/24
    RA(F0/0)-(f0/0) RB (s2/0) - RC (s2/0)
    [AS1]                    [AS2]                    [AS3]

    Configuration:
    * RA *:
    A #do sh run (config - router). b r b
    router bgp 1
    no synchronization
    The log-neighbor BGP-changes
    1.1.1.0 netmask 255.255.255.0
    192.168.12.2 neighbor remote-2
    setmed map of nearby route 192.168.12.2 out
    No Auto-resume

    IP route 1.1.1.0 255.255.255.0 Null0

    setmed allowed 10 route map
    the metric value 20

    * RB *:
    B (config - router) #do sh run | b r b
    router bgp 2
    no synchronization
    BGP always-compare-med
    The log-neighbor BGP-changes
    BGP bestpath missing-as-worst med
    neighbor 192.168.12.1 distance-1
    neighbour 192.168.23.3 distance-3
    No Auto-resume

    * RC *:
    C (config - router) #do sh run | b r b
    router bgp 3
    no synchronization
    The log-neighbor BGP-changes
    1.1.1.0 netmask 255.255.255.0
    neighbour 192.168.23.2 distance-2
    No Auto-resume

    IP route 1.1.1.0 255.255.255.0 Null0

    But when I checked out table RB bgp, as below:

    B (config - router) #do sh ip bgp
    BGP table version is 2, local router ID is 192.168.23.2
    Status codes: deleted, cushioning d s, history of h, * valid, > best, i - internal.
    r SIDE-failure, stale S
    Source codes: i - IGP, e - EGP,? -incomplete
    Network Next Hop path metrics LocPrf weight
    * > 1.1.1.0/24 192.168.23.3 0 0 3 I
    *                          192.168.12.1            20                         0  1 i

    The prefix is assigned a MED of 0, but also the best path value when I use "bgp bestpath missing-as-worst med" in how to configure bgp... :-(

    Please take a look at the discussion on the configuration of drugs to an eBGP neighbor:

    https://supportforums.Cisco.com/thread/343397?TSTART=0

    Note that BGP MED is set to 0 even if the injected BGP route from a connected route.

    The first time I came across this problem sending MED was there in a picture of 5-6 years service provider. Routes were injected into BGP with the command 'network', has been validated by OSPF routes or static to null0. Involuntary consignment of drugs was mess with load balancing between 2 links of our inbound traffic from the same upstream service provider.

    Also note that if a route is learned via iBGP, border router removes MED before the road to advertising for an eBGP peers (i.e. the above comments apply a when a route is injected locally into the border and then router BGP sent to an eBGP peer).

    I don't know what the cause of the problem that you said in your last post. It delivers last for a long time or that it does not change after a while?

    p.s. Sorry, I edited post because I said "iBGP" instead of "eBGP" at some point.

Maybe you are looking for

  • Update for Windows XP

    When I go to Windows Update in Windows XP for the PowerPoint 2003 Viewer security update will not be installed. What could be causing it not to install?

  • Windows 7 installation stuck on windows startup

    I have a laptop pro 64-bit of windows 8.1 and I installed windows 7 ultimate on it, and when I run the installation from the cd it happens to a screen like this and he's stuck there. My laptop is preinstalled with windows 8, then I upgraded to 8.1 pr

  • create a calendar of webworks app OS 6, 7 event

    Hello I want to know if it is possible to create an event from a webworks application based on BB OS 7 and 6 in the calendar feature, is it feasible? If so can I have a link to the appropriate API or a sample of how to do it? Thank you

  • Compaq Presario problem re-imaging

    Hey there. Here the first time so please be gentle. My uncle gave me his Compaq Presario after buying a new computer. The recovery disks were conducted (four in total + the repair disc) and I went to do a clean install. He went through the first two

  • Electrocuted by a BB blackBerry smartphones. Entire blog.