Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import data problem: Unexpected number of fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Import data problem: Unexpected number of fields

    Hello.

    I trying to import tick data.
    Now file contains 2 lines only:

    20130114 184723;14.53;2
    20130114 195056;14.53;2


    File name: EURUSD.Last.txt

    When try to import as Tick data LLC get these 2 error messages in log tab:

    8/4/2018 12:39:45 AM NinjaScript Import type 'Tick Data, LLC': Error on calling 'OnNextDataPoint' method: System.InvalidOperationException: Operation is not valid due to the current state of the object. at NinjaTrader.NinjaScript.ImportTypes.TickDataImport Type.OnNextDataPoint() in c:\Users\av240\Documents\NinjaTrader 8\bin\Custom\ImportTypes\@TickDataImportType.cs:li ne 106 at NinjaTrader.NinjaScript.ImportTypes.ImportType.Imp ort(MarketDataType marketDataType, TimeZoneInfo sourceTimeZoneInfo, Boolean generateMinuteBars, Boolean generateDailyBars, IProgress progress)


    and

    8/4/2018 12:39:45 AM Default EURUSD: Unexpected number of fields in line '0', should be 3, 5 or 6

    I tried to replace semicolon to comas - same result.
    I tried to re-enter lines in new file manually - same result.

    What I did wrong?
    And what does LLC abbreviation means in "Tick Data, LLC"?
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    I was able to import this file.

    Below is a public link to a video that demonstrates.


    What version of NinjaTrader 8 are you using?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea, thank You, I can import it today too.

      I have about 5 different files with tick historical data (all of them caused same error messages) - and all of them were imported with no problem today.

      May be, I need just to restart NT instead of hours of tries.
      Last edited by fx.practic; 08-06-2018, 07:48 AM.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Sorry, have continuation of this adventure.
        Today tried to import attached file.
        Got same problem.

        At this time VisualStudio was running and catch exception.

        File looks ok, separators ";" - ok.
        Space between date and time looks ok too: x20.


        8/8/2018 11:30:16 PM Default BTCUSD: Unexpected number of fields in line '0', should be 3, 5 or 6


        8/8/2018 11:51:54 PM NinjaScript Import type 'Tick Data, LLC': Error on calling 'OnNextDataPoint' method: System.InvalidOperationException: Operation is not valid due to the current state of the object. at NinjaTrader.NinjaScript.ImportTypes.TickDataImport Type.OnNextDataPoint() in c:\Users\av240\Documents\NinjaTrader 8\bin\Custom\ImportTypes\@TickDataImportType.cs:li ne 106 at NinjaTrader.NinjaScript.ImportTypes.ImportType.Imp ort(MarketDataType marketDataType, TimeZoneInfo sourceTimeZoneInfo, Boolean generateMinuteBars, Boolean generateDailyBars, IProgress progress)
        Attached Files
        Last edited by fx.practic; 08-09-2018, 01:22 AM.
        fx.practic
        NinjaTrader Ecosystem Vendor - fx.practic

        Comment


          #5
          Hello fx.practic,

          I was able to import the new file BTCUSD without error on my end.

          I was not able to confirm the version of NinjaTrader you are using.

          Please send an email to platformsupport [at] ninjatrader [dot] com so that we may request your log and trace files. In the email please include a link to this forum thread.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Email sent.
            fx.practic
            NinjaTrader Ecosystem Vendor - fx.practic

            Comment


              #7
              Want to say many thanks to Chelsea for remote help.
              fx.practic
              NinjaTrader Ecosystem Vendor - fx.practic

              Comment


                #8
                I'm currently having the same issue that fx.practice was having. I'm unable to open the video link that NinjaTrader_ChelseaB posted for fixing this issue. Here is the link https://drive.google.com/file/d/1qFK...w?usp=drivesdk​.

                Comment


                  #9
                  Hello rjm1903,

                  Videos of simple tests are typically deleted after 1 year.

                  May I have the text file you are trying to import to try importing on my end?
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    I keep getting an error when I try to upload the attachment. It says Error uploading image. I don't know if it is because the file is too large. What do you recommend that I do?

                    Comment


                      #11
                      Hello rjm1903,

                      Please use a web transfer service such as wetransfer.com, google drive, dropbox, etc.

                      Then post the link in your next post.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        Thank you! Here is the link to the file:

                        Comment


                          #13
                          Hello rjm1903,

                          To confirm, this is historical tick data?

                          This does not have the correct format.


                          The correct format for tick data is:

                          yyyyMMdd HHmmss;price;volume

                          The data from your file is:

                          20180101;170000092;6405.00;147

                          I think possibly the data should look like:

                          20180101 170000;6405.00;147
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #14
                            The extra numbers are likely milliseconds. I'm using TickWrite to format the data with the provided NinjaTrader.twj file so I don't understand how this issue is happening. I've uploaded data from TickWrite in the past without issue.

                            Comment


                              #15
                              Hello rjm1903,

                              You are using 3 semicolons while the required format is 2.

                              The format for sub second granularity is:

                              yyyyMMdd HHmmss fffffff;price;volume

                              It must be the right format or you are going to get the errors you are getting.
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              69 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              42 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              24 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              27 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              54 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X