If you are working with sharepoint, there will be a day that you'll
have to confront an error like this: "Sharepoint error One of more
field types are not installed properly" or in the portuguese version:
"Um ou mais tipos de campo não estão instalados corretamente".
If
this happens to you, it is like the problem says, a field type error,
but sometimes it has nothing to do with installed field types.
So
first of all, you should check if there is on the list any field that
is a lookup field linked to another list. After that you must check one
by one the target list of those fields, to see if they exist, because
one of the reasons of this error is because there is a lookup field
pointing to a list that does not exist anymore.
There is another
reason that throws this error, and it is when you change the name of a
field, it doesn't change the internal name of the field. So if you use
a CAML query in which there is a field name, you should allways use
the internal name instead of the Name of the field. You can find more
information about this error and the solution in this blog: http://www.sharepoint-tips.com/2007/04/one-of-more-field-types-are-not.html
Any comments, questions and suggestions, fell free to contact me at: mpaterlini (at) gmail (dot) com
Hope That Helps A Little!!!
Matias Paterlini
Manas Technology Solutions
You can't solve a problem with the same kind of thinking that created it. — Albert Einstein (1879-1955)
Yesterday I spent a lot of time trying to get a speed radar to work on my .NET application. Every test was giving us diferent results. We made hundreds of tests, but every time we thought we found the problem, then the results of the test changed again.
So If you're working with USB to Serial ports using some devices (like a Decatur speed radar in my case), and you're getting some difficulties, there are some things that you can do to isolate the problem
FIRST OF ALL: Test the application on a computer that has a serial port, and connect the device directly without the USB to SERIAL adapter.
If the problem is sitll in there, well, you should check the power of the device, or some kind of bug in the program.
BUT if the problem is gone, there are two things that you should know.
1) For some reason, some adapters can add some caracters like "\r" right before or after the content that is sent from the device.
So, as a rule, every time you make a ReadLine through a Serial port connection you should trim the data received.Example:
String data = sp.ReadLine().Trim(); // (Where sp is the serial port connection)
sp.ReadExisting();
2) Some devices can connect with different baud speeds, but after
the tests, we came to the conclusion that In spite of using the same model of devices, some of them should be connected with
different baud Speeds. So, How do we know which speed we should use? we just keep testing! :).
When you connect to a serial port with a baud speed that is not the one that likes to the device, probably it will let you open the port without any error, warning or exception, but once you're connected, if you try to make a sp.ReadLine() it will throw an Exception like System.TimeOutException (then you know you're probably working on a wrong baud speed).
SO, What do we do? ...well, you can try something like this
try
{
String data = sp.ReadLine().Trim();
sp.ReadExisting();
// Here you process the information received.
}
catch (TimeoutException tex)
{
String p = tex.Message;
try
{
// here you close the connection, and open it again with a different baud speed
if (sp.IsOpen)
sp.Close();
if (sp.BaudRate == 9600)
sp.BaudRate = 115200;
else
sp.BaudRate = 9600;
sp.Open();
}
catch
{
}
}
catch (Exception exc)
{
Debug.WriteLine(exc.Message);
}
Any comments, questions and suggestions, fell free to contact me at: paterlinimatias (at) gmail (dot) com
Hope That Helps A Little!!!
Matias Paterlini