Sukanlaya posted on Sunday, August 14, 2011 - 7:39 pm
Tried to run a simple regression model as below but it kept saying dat file has a problem. Read the disucssion and tried to solve problem per previous post (e.g. remove the variable names etc...) still not working. Please advice. ------------------------------
ITITLE: CAUSEE interaction DATA: FILE IS W123MPlusv04.xls; VARIABLE: NAMES ARE change renew different costlead sales experience industry profit bizoutcome; ANALYSIS: TYPE = RANDOM; ALGORITHM = INTEGRATION; MODEL: change ON different; change on costlead; renew on different; renew on costlead; different on profit; different on bizoutcome; costlead on profit; costlead on bizoutcome; sales on different costlead; experience on different costlead; indusrty on different costlead;
OUTPUT: sampstat stdyx ;
*** ERROR The number of observations is 0. Check your data and format statement. Data file: \mplus\W123MPlusv04 *** ERROR Invalid symbol in data file: "ÐÏà¡±á" at record #: 1, field #: 1
It sounds like you have an invalid symbol in the data set. Perhaps the first record contains names of variables or some other characters. Open the data set and see if you can find the problem. If not send the data, output, and your license number to firstname.lastname@example.org.
Jahun Kim posted on Friday, May 10, 2013 - 10:52 am
I tried to run GMM but encountered error message saying dat file includes invalid symbol. I checked dat file but there is no symbol shown below.
*** ERROR The number of observations is 0. Check your data and format statement. Data file: C:\Documents and settings\administrator\desktop\DPP\Discrepancy LCM.dat *** ERROR (Err#: 64) Invalid symbol at record #: 1 The record is shown below this message
The data record is too long to print. Refer to your data file. The first 70 characters of the data record is printed below: "癤? 11001 3.00 .00 3.92 16.00 999.00 14.00 999.00 9"
*** ERROR The number of observations is 0. Check your data and format statement. Data file: /Users/Desktop/pc.dat *** ERROR (Err#: 64) Invalid symbol at record #: 1 The record is shown below this message "Ôªø1114111111121312"
- I am using the SPSS20 and I working on a Mac. However, the rest of my datasets work fine
Margarita posted on Monday, February 24, 2014 - 10:24 am
Oh I corrected the problem!
I opened the dat. file using Mac TextEdit, and even though I could not see the "Ôªø" I deleted the empty space anyway, and the problem was fixed. Why is that? Was the symbol there, but could not read it in the TextEdit?
Yes, the symbol was there but you could not see it. You did the correct thing. It seems to be related to a change in the last version of SPSS.
Margarita posted on Monday, February 24, 2014 - 10:46 am
I see.. I will keep that in mind.
Thank you so much for your reply!
Sharon kwan posted on Wednesday, February 26, 2014 - 8:51 pm
I have the same problem as well. I have tried many times but still failed. I am trying to do EFA for 19 items. Below is the output.
TITLE: efa bull DATA: FILE IS C:\Users\kwass004 \Desktop\efa.bul.dat; VARIABLE: NAMES ARE BUL1-BUL19; ANALYSIS: TYPE = EFA 1 4; OUTPUT: MODINDICES;
*** ERROR The number of observations is 0. Check your data and format statement. Data file: C:\Users\kwass004\Desktop\efa.bul.dat *** ERROR Invalid symbol in data file: "ï»¿" at record #: 1, field #: 1
sample file in dat. file (open with note pad) 1.00 1.00 1.00 1.00 1.00 2.00 1.00 2.00 1.00
I am trying to deleted the space to 1.00 1.00 1.00 1.00 1.00 as suggested in above messages but I still can't get the result. I am a PhD scholar. All my analysis depend to Mplus. Can you please advice me about this error? Thanks a lot!
Open the data file in the Mplus Windows Editor. Delete the invalid character and resave the data. You can only see this character in the Mplus Editor.
Sharon kwan posted on Thursday, February 27, 2014 - 7:43 am
Thanks prof for your reply. Do you mean that I open the dat.file through the mplus editor? I have tried to open the data file in mplus editor but couldn't. It only displayed the syntax file not the data file. Please advice. Thank you!
You must be using the Mac version. Open the data file in MS Word. It will ask you about file conversion for the file. Choose the default text encoding (not Unicode (UTF-8) format). Then delete the invalid characters at the beginning of the first line.
Sharon kwan posted on Thursday, February 27, 2014 - 6:29 pm
Daria Bakina posted on Thursday, February 05, 2015 - 7:32 am
I am having similar issues with Mplus not reading my data file. I have saved it in multiple formats, checked the data and I cannot find a reason why there would be an unrecognized value. Any assistance would be extremely helpful. Thank you!
SABA posted on Tuesday, December 08, 2015 - 6:34 am
Hi, I tried to run a multiple group analysis. The data set I am using is imputed and in that imputed data sets all the IDs like teacher id, student id are changed to ******. Now when I run a model, I get this error message. Could you please tell me why the imputation is changing these auxiliary (id variables to ****)
*** ERROR The number of observations is 0. Check your data and format statement. Data file: C:/Users/ba8bt1/Desktop/mplus.new/missimp1.dat *** ERROR Invalid symbol in data file: "**********" at record #: 1, field #: 32 Thank you for your help
I'm using 100 imputed datasets to run a mediation analysis, but I keep getting the invalid character error message. I made sure that I saved my original datafile (pre-imputation) without variable names in a way that I have done with other datafiles with not problems. However, following imputation, the imputed datasets all come with hundreds of stars in each one, and therefore I get the error message when I try to run an analysis on them. I tried to manually replace all the stars in each of the 100 datasets with a blank space or delete the stars without replacing them with a blank space, but in both cases when I try to run the program I then get the "*ERROR Unexpected end of file reached in data file" message. Do you have any suggestions?
I guess that the answer on my question is simple, but I can't find it...
I try to run a syntax and get the following answer:
: ERROR The number of observations is 0. Check your data and format statement. Data file: C:\Users\mdwilde\Dropbox\databestand_nomissings'.dta.inp *** ERROR Invalid symbol in data file: "conversion" at record #: 1, field #: 3"
Thank you very much! I indeed found this solution in previous answers and tried to do it, but after doing so I still encountered problems, so I got lost.
What I get now is this: *** ERROR The length of the data field exceeds the 40-character limit for free-formatted data. Error at record #: 1, field #: 6 *** ERROR The number of observations is 0. Check your data and format statement. Data file: C:\Users\mdwilde\Dropbox\data.dta.inp
Sorry, this is probably too obvious, but I have no clue what this means.
Any variable on the BETWEEN list must have the same value for all cluster members. This is violated for ancp in the clusters mentioned.
lucia parry posted on Thursday, August 09, 2018 - 8:11 pm
It looks like I'm having the same type of problem as some of the people on this message board. I'm getting the same error message (*** ERROR Invalid symbol in data file: "***" at record #: 8, field #: 27), but my problem is that there are two participant IDs that are coming up with *** at the end (and in the middle of the file, not the beginning). I can't see these symbols in my SPSS file, so I'm not sure how to get rid of them correctly. I've saved my file as a Fixed ASCII and am opening it in Mplus editor.