1067: coercion of a value of type String to an unrelated type flash.display:DisplayObject.

Hi guys. I build games never anything too big. I'm having fun.

I get the following error message

1067: coercion of a value of type String to an unrelated type flash.display:DisplayObject.

He got to do with the varObject variable, that I convey in the hitTestObject (at the end of the code)

a. I exported the moveclip for actionscript and it has given an instance name so, what's the problem?

stage.addEventListener (MouseEvent.CLICK, myClickReaction);
speeds the LONG NYPOTENUSE
var v: Number = 5;
var varObject:String;
var i: Number;
var arrayObjects:Array;

complete table and initialize the variables i and varObject
arrayObjects is ['chocolate', 'ice', 'pizza', 'Burger', 'sandwich', 'egg'];.
i = 1;
varObject = arrayObjects [i - 1];
trace (varObject);


mouse click point
var clickPoint:Point = new focus();
function myClickReaction(e:MouseEvent):void {}
clickPoint.x = mouseX;
clickPoint.y = mouseY;
addEventListener (Event.ENTER_FRAME, onEnterFrame);
}
function onEnterFrame(event:Event):void {}
var xDistance:Number = clickPoint.x - sunny.x;
var yDistance:Number = clickPoint.y - sunny.y;
var angle: Number = Math.atan2 (yDistance, xDistance);
Sunny.x += v * Math.cos (angle);
Sunny.y += v * Math.sin (angle);
If (clickPoint.x > = sunny.x) {}
sunny.gotoAndPlay ("walk straight");
trace (Math.ABS (xDistance));
}
If (sunny.x > = clickPoint.x) {}
sunny.gotoAndPlay ("left foot").
trace (Math.ABS (xDistance));
}
If (Math.abs (xDistance) < = 10) {}
trace ("Works");
sunny.gotoAndPlay ("static");
removeEventListener (Event.ENTER_FRAME, onEnterFrame);
}
}
addEventListener (Event.ENTER_FRAME, enterFrameHandler);
function enterFrameHandler(e:Event):void {}
If (sunny.hitTestObject (hotspot_pizza)) {}
If (sunny.hitTestObject (varObject)) {}
trace ("Yes boy");
}
}

If you have objects with references (in the current scope) which correspond to these channels, you can use:

stage.addEventListener (MouseEvent.CLICK, myClickReaction);
speeds the LONG NYPOTENUSE
var v: Number = 5;
var varObject:String;
var i: Number;
var arrayObjects:Array;

complete table and initialize the variables i and varObject
arrayObjects is ['chocolate', 'ice', 'pizza', 'Burger', 'sandwich', 'egg'];.
i = 1;
varObject = arrayObjects [i - 1];
trace (varObject);

mouse click point
var clickPoint:Point = new focus();
function myClickReaction(e:MouseEvent):void {}
clickPoint.x = mouseX;
clickPoint.y = mouseY;
addEventListener (Event.ENTER_FRAME, onEnterFrame);
}
function onEnterFrame(event:Event):void {}
var xDistance:Number = clickPoint.x - sunny.x;
var yDistance:Number = clickPoint.y - sunny.y;
var angle: Number = Math.atan2 (yDistance, xDistance);
Sunny.x += v * Math.cos (angle);
Sunny.y += v * Math.sin (angle);
If {(clickPoint.x>=sunny.x)}
sunny.gotoAndPlay ("walk straight");
trace (Math.ABS (xDistance));
}
If {(sunny.x>=clickPoint.x)}
sunny.gotoAndPlay ("left foot").
trace (Math.ABS (xDistance));
}
If (Math.abs (xDistance)<=10)>
trace ("Works");
sunny.gotoAndPlay ("static");
removeEventListener (Event.ENTER_FRAME, onEnterFrame);
}
}


addEventListener (Event.ENTER_FRAME, enterFrameHandler);
function enterFrameHandler(e:Event):void {}
If (sunny.hitTestObject (hotspot_pizza)) {}
  If (sunny.hitTestObject (this [varObject])) {}
trace ("Yes boy");
}
}

Tags: Adobe Animate

Similar Questions

  • 1067: coercion of a value of type String to a type unrelated with

    Hello

    I created a Web service that is based on sql server 2005 with several methods with success.

    I have a headach now just trying to make a few simple tests with Flex :-(

    I used the "import Web service", he created some code "generated Web services."

    My test p_SEARCH_NAME_SOUNDEX method is based on a decision of wich procedure sql varchar (128) as a parameter = > NAL_NOM.

    I'm just trying to debug this function (error on line in red)

    service public searchEntry(name:String):void
    {
    Save the event listener for the findEntry operation.
    agenda.addfindEntryEventListener (handleSearchResult);
    myWS.addp_SEARCH_NAME_SOUNDEXEventListener (handleSearchResult);

    Call the operation if we have a valid name.
    If (name! = null & & name.length > 0)

    myWS.p_SEARCH_NAME_SOUNDEX (name);

    }

    I got this error message:

    067: constraint implied to a value of type String to type without generated report. Web services: NAL_NOM_type1.

    FLEX has creaetd a type called NAL_NOM_type1 for my class:

    /**
    * NAL_NOM_type1.as
    * This file was automatically generated from WSDL by the Apache Axis2 generator modified by Adobe
    * Any changes made to this file is overwritten when the code is regenerated.
    */


    package generated.webservices
    {
    Import mx.utils.ObjectProxy;
    import flash.utils.ByteArray;
    Mx.rpc.soap.types import. *;
    /**
    * Wrapper for a type of operation required class
    */

    public class NAL_NOM_type1
    {
    /**
    * Constructor, initializes the class type
    */
    public void NAL_NOM_type1() {}

    public var varchar:String; public function toString (): String
    {
    Return varchar.toString ();
    }

    }
    }

    I tried to do myWS.p_SEARCH_NAME_SOUNDEX (NAL_NOM_type1 (name());

    and also reported as NAL_NOM_type1 ' name'... but I still get this error.

    It's how he said my Web service method:

    public void p_SEARCH_NAME_SOUNDEX(nAL_NOM:NAL_NOM_type1):AsyncToken
    {
    var _internal_token:AsyncToken = _baseService.p_SEARCH_NAME_SOUNDEX (nAL_NOM);
    _internal_token.addEventListener ("result", _P_SEARCH_NAME_SOUNDEX_populate_results);
    _internal_token.addEventListener ("Fault", throwFault);
    Return _internal_token;
    }

    I'm not even on the level of trust the data on my grid... I just want to see how he gets the first data in the debugging.

    Thanks in advance for you help.

    KR,

    Meta

    Hi Meta,

    function p_SEARCH_NAME_SOUNDEX(nAL_NOM:NAL_NOM_type1) need of a parameter with the NAL_NOM_type1 type.

    you call

    myWS.p_SEARCH_NAME_SOUNDEX (name); where name is a string

    You can change constuctor for the string parameter

    public void NAL_NOM_type1 (str:String = "") {}

    varchar = str;

    }

    After this call myWS.p_SEARCH_NAME_SOUNDEX (new NAL_NOM_type1 (name));

    The second alternative is to create NAL_NOM_type1 variables, register name varchar.

    var t = new NAL_NOM_type1 ();

    t.varchar = name;

    myWS.p_SEARCH_NAME_SOUNDEX(t);

  • 1067: coercion of a value of type qnx.ui.data &amp; colon; DataProvider of a type unrelated fl.data &amp; colon; DataProvider

    Hi guys...

    I have my project with included payment services...

    but I also have a table of scores with a shared object and a data grid...

    The problem is that I received this error when the DataGrid must recover the data :

    private function addingScore()
            {
                var data5:DataProvider = new DataProvider(scoreArray);
                var wholeScore: Array = new Array();
                var i:int = 0;
                StyleManager.setStyle("textFormat", tf);
                for (i = 0; i < sO.data.highscore.length; i++)
                {
                    wholeScore.push( {Name:String(sO.data.highscore[i].user), Score:String(sO.data.highscore[i].score)}   );
                }
    
                wholeScore.sortOn("Score", Array.NUMERIC | Array.DESCENDING);
                var scoreArray: Array = wholeScore.slice(0,5);
                dg_score.dataProvider = data5; // here is where I have the error
                dg_score.rowCount = dg_score.length;
    
            }
    

    How can I solve this problem? any ideas?

    Solved.

    I added

    import the fl.data.DataProvider in this function and

    Import qnx.ui.data.DataProvider; in the service of payment...

    Everything seems to work now... so see I´ll

  • Help with "1067: Implicit coercion of a value of type int to a type String unrelated."

    Hello

    I'm developing my first game.  I can get everything works except what should be the part more simple that is the transition from the stage of introduction, titled sceneOne, for the game scene, labelled sceneTwo.  I have a button on the sceneOne called goButton_mc that would take the user to sceneOne sceneTwo but I get this error message: 1067: Implicit coercion of a value of type int to a type unrelated to String.

    The format of play/stop is:

    gotoAndPlay (iFrame, sScene);

    integer value for iFrame and a string value for sScene. I'm guessing you had an integer value for the 2nd parameter instead of a string, so the error of a constraint forced your type of spent (an integer) to a string that is not allowed. Use:

    gotoAndPlay ("sceneTwo", 1);

  • 1067: constraint implied a value of class type to a type unrelated to flash.display:MovieClip

    Hello, I have a class named geeklog with the code:

    package

    {

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    import flash.events.Event;

    import flash.display.Loader;

    SerializableAttribute public class extends MovieClip geeklog

    {

    private var _root:MovieClip = new MovieClip();

    public void geeklog (numImages:Number, rt:MovieClip)

    {

    ...

    and I have a second class named MainJogo, that the appeal of geeklog:

    package

    {

    import flash.events. *;

    import flash.display.Loader;

    import flash.display.MovieClip;

    import flash.display.Stage;

    import of geeklog;

    public class MainJogo

    {

    #error

    private var imgMc:LoadImages = new LoadImages(2,this);

    #error

    public void MainJogo(url:String)

    {

    ...

    If I just post the MainJogo class code in the Assembly, there is no problem, but if I run the app like this with 2 classes I get the error message

    1067: constraint implied a value of class type to a type unrelated to flash.display:MovieClip.

    Can someone help me please?

    Thank you

    MainJogo is not a Movieclip, so "this" (in MainJogo) is not a MovieClip.

    If MainJogo extends the movieclip class, you will probably still 'this' thrown like a MovieClip.

    You can use:

    package

    {

    import flash.events. *;

    import flash.display.Loader;

    import flash.display.MovieClip;

    import flash.display.Stage;

    import of geeklog;

    SerializableAttribute public class MainJogo extends MovieClip

    {

    private var imgMc:LoadImages = new Loadimages() (2, MovieClip (this));

    public void MainJogo(url:String)

    {

  • Implicit coercion of a value of type fl.controls:ComboBox to a type unrelated to XMLList

    Hi, new to Flash and working at school and don't understand the error in yellow below.  Here are excerpts from two function code involved.  Thank you, Joe

    Error:

    Implicit coercion of a value of type fl.controls:ComboBox to a type unrelated to XMLList.

    Code:

    private var _feed_list:ComboBox;

    private void done_loading(e:Event) {}

    var feed_xml:XML = new XML (e.target.data);

    var feed_items:XMLList = feed_xml.*;

    Populate (_feed_list);

    var match: Boolean = false;

    for (var i = 0; i < _feeds_dp.length; i ++) {}

    If (_feeds_dp.getItemAt (i) .link == feed_xml.@link) {}

    match = true;

    }

    }

    private void fill {(xml:XMLList)}

    var int count = 1;

    for each {var point: XML (in xml.item)}

    var t:String = item.title == "? Item.Link:Item.title;

    _feeds_entries_dp. AddItem({)

    label: t +', ' + item.date,.

    Link:item. Link,

    Preview:item. Preview,

    Description: Item. Description,

    Date: Item.date,

    Time:item. Time,

    Author:item. Creator,

    Media:item. Media

    });

    _feed_entry_list.labelField = "label";

    _feed_entry_list. DataProvider = _feeds_entries_dp;

    }

    }

    The error message indicates the problem clearly enough.  _feed_list is defined as a ComboBox in your first line of code.  You who pass as an argument in your line to populate (_feed_list) of code.  However, the populate function expects a XMLList object to pass, not a ComboBox control.

    You're probably really saying to use...

    Populate (feed_items);

    Since it is the only one not found XMLList

  • Implicit coercion of a value of type __AS3__.vec:Vector to a __AS3__.vec:Vector. unrelated type &lt; int

    I have the following code:

    I get this error:

    Scene 1, Layer 'layer 1', frame 1, line 35.1067: constraint implied a value of type __AS3__.vec:Vector to a type unrelated to __AS3__.vec:Vector. < int >.

    import flash.display.Shape;

    import flash.events.MouseEvent;

    import flash.events.Event;

    var g:Shape = new Shape();

    var stageCenterX:Number = stage.stageWidth / 2;

    var stageCenterY:Number = stage.stageHeight / 2;

    var radius: Number = 50;

    var circumf:Number = Math.PI * 2;

    ask = 0;

    var degrees: Number = 360;

    g.graphics.lineStyle(2,0xcc0000);

    addChild (g);

    g.graphics.moveTo (stageCenterX, stageCenterY + RADIUS);

    btn.addEventListener (MouseEvent.CLICK, onBtnClick);

    function onBtnClick(e:MouseEvent):void {}

    addEventListener (Event.ENTER_FRAME, onEnterFrameEvent);

    }

    function onEnterFrameEvent(e:Event):void {}

    += circump. 1;

    var vectorcommands:Vector = new Vector. < int >; / / (360, true);

    for (var vcmd:int = 0; vcmd < 360; vcmd ++) {}

    vectorcommands.push (vcmd);

    }

    var vectorargs:Vector = new Vector. < number >; / / (720, true);

    for (var vargs:int = 0; < 720 vargs; vargs ++) {}

    vectorargs.push(math.Sin(vargs/degrees)*RADIUS);

    vectorargs.push(math.cos(vargs/degrees)*RADIUS);

    }

    for (var i: int = 0; i < degrees * circump; i ++) {}

    g.graphics.lineTo (Math.sin (i/degrees) * radius + stageCenterX, Math.cos (i/degrees) * RADIUS + st ageCenterY);

    g.graphics.drawPath (vectorcommands, vectorargs);   LINE WITH ERROR

    }

    }

    The question is, how I push correctly vectors?  I'm much more familiar with the berries, but the drawPath method uses vectors.

    I think its because you have to say moveTo the last position if not starting from the position of the original.

  • 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    I tried this code:

    http://help.Adobe.com/en_US/AS3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e08.html

    but it displays error: 1119: access of nativeWindow property possibly not defined through a reference with static type flash.display:Stage.

    package

    {

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    SerializableAttribute public class MinimizeExample extends Sprite

    {

    public void MinimizeExample (): void

    {

    var minTextBtn:TextField = new TextField();

    minTextBtn.x = 10;

    minTextBtn.y = 10;

    minTextBtn.text = "minimize";

    minTextBtn.background = true;

    minTextBtn.border = true;

    minTextBtn.selectable = false;

    addChild (minTextBtn);

    minTextBtn.addEventListener (MouseEvent.CLICK, onMinimize);

    var maxTextBtn:TextField = new TextField();

    maxTextBtn.x = 120;

    maxTextBtn.y = 10;

    maxTextBtn.text = "zoom";

    maxTextBtn.background = true;

    maxTextBtn.border = true;

    maxTextBtn.selectable = false;

    addChild (maxTextBtn);

    maxTextBtn.addEventListener (MouseEvent.CLICK, onMaximize);

    var restoreTextBtn:TextField = new TextField();

    restoreTextBtn.x = 230;

    restoreTextBtn.y = 10;

    restoreTextBtn.text = "restore";

    restoreTextBtn.background = true;

    restoreTextBtn.border = true;

    restoreTextBtn.selectable = false;

    addChild (restoreTextBtn);

    restoreTextBtn.addEventListener (MouseEvent.CLICK, onRestore);

    var closeTextBtn:TextField = new TextField();

    closeTextBtn.x = 340;

    closeTextBtn.y = 10;

    closeTextBtn.text = 'close this window ';

    closeTextBtn.background = true;

    closeTextBtn.border = true;

    closeTextBtn.selectable = false;

    addChild (closeTextBtn);

    closeTextBtn.addEventListener (MouseEvent.CLICK, onCloseWindow);

    }

    function onMinimize(event:MouseEvent):void

    {

    this.stage.nativeWindow.minimize ();

    }

    function onMaximize(event:MouseEvent):void

    {

    this.stage.nativeWindow.maximize ();

    }

    function onRestore(event:MouseEvent):void

    {

    this.stage.nativeWindow.restore ();

    }

    function onCloseWindow(event:MouseEvent):void

    {

    this.stage.nativeWindow.close ();

    }

    }

    }

    You can not force-close a browser with the exception of a window with javascript window.

  • 1067: constraint implied a value of type array

    package {}
    import flash.display.MovieClip
    import flash.events.Event

    public class maintest extends MovieClip {}
    private var animalsArray:Array = new Array ("Cat", "Dog", "Elephant", "Gorilla", "Hippo"
    "Lion", "Mouse1", "Ostrich");

    public int main (): void {}

    stage.addEventListener (Event.ENTER_FRAME, animals);
    }

    private void animals(evt:Event):void {}
    this.addChild (animalsArray);
    }

    }
    }

    is there a problem with my table? plsss help me with this...

    There is no problem with it but your table IS a table and a table isn't a displayobject.  so it cannot be added to the display list.  That is to say, delete the addChild() method.

  • 1119: access of bobin property possibly not defined through a reference with static type flash.display:DisplayObjectContain

    I'm working on a script that allows the user to move items on the screen. They do it to several tests. Each new trial, I would like to than the items to return to their original position. When I try to do, I get the error in the title above. I can't refer to these elements. I tried getChildByName, but this doesn't seem to work. The problem is in the test function.

    Any help would be appreciated.

    Russ

    If you remove the "DisplayObjectContainer (internship)." before the two lines of code in the test function, the errors disappear (except for another error related to the Next_mc, which apparently is not defined anywhere before trying to add an event listener).

    I can't tell what you're trying to where until the end of a trial being detected where things would be returned.

  • The migration to Flex 4.5.1 error (1067: Implicit coercion of a value...)

    I get the following error when migrating my application from Flex 3.6 to Flex 4.5.1:

    1067: coercion of a value of type __AS3__.vec:Vector. < object > to a type unrelated to table.

    The error is thrown on the piece of code:

    var list: collection ArrayCollection = new ArrayCollection (dgSoftwareTitles.selectedItems);

    dgSoftwareTitles is defined as:

    < s:DataGrid id = "dgShareCategoryForTransfer".

    x = "34".

    y = '369 '.

    requestedRowCount = '5 '.

    Width = "90%".

    selectedIndex = "-1".

    selectionMode = "multipleRows" >

    < s:columns >

    < s:ArrayList >

    < s:GridColumn headerText = "SoftwareTitle."

    dataField = "idSoftware".

    Visible = "false" / >

    < s:GridColumn headerText = 'SoftwareName.

    dataField = "softwareName.

    Visible = "false" / >

    .. more GridColumns

    < / s:columns >

    < / s:ArrayList >

    < / s:DataGrid >

    No idea why this would trow the "1067: Implicit coercion of a value of type __AS3__.vec:Vector.". "< object > to a type unrelated to Array" error?

    Thank you!

    Lee

    I think that dgSoftwareTitles.selectedItems is a type of vector while

    public void collection ArrayCollection (source:Array = null) expects an array as source.

  • 1067: constraint implied a value of void type to a type unrelated to table.

    public void helicopter (stageRef:Stage): void


    {
    this.stageRef = stageRef;
    addEventListener (Event.ENTER_FRAME, loop, false, 0, true);
    addEventListener (Event.ENTER_FRAME, background);

    key = new KeyObject (stageRef);

    x = stageRef.stageWidth/2;
    y = stageRef.stageHeight/2;

    }

    I'm going to basically the following error:

    1067: constraint implied a value of void type to a type unrelated to table.

    With regard to the event listener that calls the "canvas". Background is a public service in another class, but he always recognizes the backdrop in function. Any ideas on what could be the cause of this error?

    rather than use addChild() to add your DB instance using:

    addChildAt (bd, 0);

  • ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Hello

    I am facing infinity listagg that 4000 bytes in listagg issue, so I created a defined user aggregate function suggested by asking tom team,

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0% 3A % 3A % 3A % 3aP11_QUESTION_ID: 2196162600402

    But I am facing the error as "digital or value error: character string buffer too small" in the Type on line 27 when questioning this way

    Select stragg (val) in the dummy_tab;

    My table has a column and the data type is varchar2 (50) and he has more than 300 documents,.

    can someone here help me to solve this problem.

    Thanks and greetings

    Guru

    Now if you followed this link, so I hope that you:

    (a) set the attribute of the object type to be a CLOB

    (b) sets the return value of your Mapper function to be a CLOB

    and not as in the example (which is the time before the existence of LISTAGG) as a Varchar2...

    HTH

  • Can a dynamic action of type 'alert' display a value of field without javascript?

    Hello

    can a dynamic action of type 'alert' display a value of field without javascript ( alert ( $x (P '200_OP').value)); ?

    What should I write in the 'text' section to display in the alert, the value of P200_OP for example?

    Gianpaolo cordially

    Hi gianpagi,

    gianpagi wrote:

    I know that with "run JavaScript Code" works. My question is about action as 'alert '.

    Dynamic action "Alert" is expected to this only the string to display in the alert. May not be able to access the current value set in a page element.

    Therefore, "Run the Code JavaScript" only works in this case where your can integrate the current values of the DOM html elements

    If you notice that da 'Alert' request 'Text' and 'Execute JavaScript Code' DA 'Code' request to be executed.

    Kind regards

    Kiran

  • PL/SQL error: digital or value error: character string buffer too small

    HI gurus of the oracle,.

    I'm new to PL/SQL,

    my version of oracle's oracle 11g.

    I create a procedure to insert data from flat file to a table using UTL_FILE.

    The table is

    CREATE TABLE EXT_PERSON_INFO

    (

    ID_PERSON NUMBER (38),

    ID_BATCH NUMBER (38),

    ID_PERSON_NBR VARCHAR2 (3 BYTE),

    ID_AREA VARCHAR2 (5 BYTE),

    NM_FINAL VARCHAR2 (20 BYTE),

    NM_START VARCHAR2 (20 BYTE),

    DATE OF DT_DOB,

    ID_SERIAL VARCHAR2 (BYTE 9),

    DATE OF DT_RESPONSE,

    TRANS_TYPE VARCHAR2 (2 BYTE),

    REG_RESPONSE VARCHAR2 (1 BYTE),

    TM_RX TIMESTAMP (6)

    )

    My procedure is

    CREATE OR REPLACE PROCEDURE PROC_PERSON

    IS

    f_line VARCHAR2 (2000);

    f utl_file.file_type;

    f_dir VARCHAR2 (250);

    fname VARCHAR2 (50);

    F_ID_PERSON EXT_PERSON_INFO.ID_PERSON%type: = 1;

    F_ID_BATCH EXT_PERSON_INFO.ID_BATCH%type: = 1;

    F_ID_PERSON_NBR EXT_PERSON_INFO.ID_PERSON_NBR%type;

    F_ID_AREA EXT_PERSON_INFO.ID_AREA%type;

    F_NM_FINAL EXT_PERSON_INFO. Type of NM_FINAL %;

    F_NM_START EXT_PERSON_INFO. Type of NM_START %;

    F_DT_DOB EXT_PERSON_INFO. Type of DT_DOB %;

    F_ID_SERIAL EXT_PERSON_INFO.ID_SERIAL%type;

    F_DT_RESPONSE EXT_PERSON_INFO. Type of DT_RESPONSE %;

    F_TRANS_TYPE EXT_PERSON_INFO. Type of TRANS_TYPE %;

    F_REG_RESPONSE EXT_PERSON_INFO. Type of REG_RESPONSE %;

    BEGIN

    fname: = "D:\raj\raj.txt";

    f: = utl_file.fopen('RAJ',fname,'r');

    loop

    Start

    UTL_FILE.get_line (f, f_line);

    exception

    When no_data_found then

    "exit";

    end;

    F_ID_PERSON: = 1;

    F_ID_BATCH: = 1;

    F_ID_PERSON_NBR: = substr (f_line, 1, 3);

    F_NM_FINAL: = substr (f_line, 4, 22);

    F_NM_START: = substr (f_line, 23, 34);

    F_DT_DOB: = substr (f_line, 35, 44);

    F_ID_SERIAL: = substr (f_line, 45, 48);

    F_DT_RESPONSE: = substr (f_line, 49, 58);

    F_TRANS_TYPE: = substr (f_line, 59, 60);

    F_REG_RESPONSE: = substr (f_line, 61, 61);

    F_ID_AREA: = substr (f_line, 62, 64);

    insert into EXT_PERSON_INFO VALUES (F_ID_PERSON, F_ID_BATCH, F_ID_PERSON_NBR, F_ID_AREA, F_NM_FINAL, F_NM_START, F_DT_DOB, F_ID_SERIAL, F_DT_RESPONSE, F_TRANS_TYPE, F_REG_RESPONSE);

    end loop;

    UTL_FILE.fclose (f);

    commit;

    end;

    /

    am getting error

    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Please help me in this regard. Impossible to trace the issue.

    Thanks in advance

    Kind regards

    REDA

    The error message should include a line number to reference your code to see what line the error occurred on.

    That said, look at the documentation for SUBSTR as you incorrectly use the third parm.  It's length, no end of race.  That's your problem.

Maybe you are looking for

  • Up now ios10 problem

    Hallo! Can you tell me please if I can CANCEL the reminder to Wake IOS10 option? Thanks a lot for your help!

  • HP LJ M1530 MFP Scanner - scanner not seen

    I recently replaced my HP LJ M1530 MFP with a new HP LJ M1530 MFP... even at the same. I guess it was stupid to think that the computer accepts just the new machine... I reinstalled the drivers and cannot scan. The first time around, installation inc

  • Pavilion 15-e016tx: usb controller not installed or don't display does not correctly

    Two days back, I changed my windows 7 32-bit operating system. Everything is going well except the usb controller.  In the driver manager, it's show marks of yellow color. It is not installed display driver or does not properly. I could not find this

  • Look for the timestamp when the file is moved

    I want to find when my file is moved from one folder to another folder with in the same drive. Suppose I have a text file and I just cut this file to a folder and paste to another folder, but in the same drive then I see that none of the date changes

  • Why my text is written to a file on the SD card seems to be corrupted

    The files created by an application of BB on the SD card cannot be seen with the Windows Notepad. I have an application that has created some text on the SD card files. However, files seems to be corrupted under windows, but the BB app can read files